Helios++
Helios software for LiDAR simulations
HeliosTests::GroveTest Class Reference

Test for grove of trees. More...

#include <GroveTest.h>

Inheritance diagram for HeliosTests::GroveTest:
Collaboration diagram for HeliosTests::GroveTest:

Public Member Functions

bool run () override
 
- Public Member Functions inherited from HeliosTests::BaseTest
 BaseTest (std::string const &name)
 Base test constructor. More...
 
std::string getName ()
 Obtain the test name. More...
 
void operator() (std::ostream &out=std::cout, bool color=true)
 Another way to call test function. More...
 
bool test (std::ostream &out=std::cout, bool color=true)
 Perform the test and output its final status. More...
 

Protected Member Functions

bool testLoops ()
 Test the for, while and for-each loops of the grove. More...
 
bool testObserving ()
 Test observer pattern mechanics are working as expected. More...
 
void buildPrimitives ()
 Build the primitives that will be used to define trees. More...
 
void buildTrees ()
 Build the trees that will be contained in the grove. More...
 
void buildGrove ()
 Build the grove of trees to be tested. More...
 

Protected Attributes

KDGrove kdg
 The K-Dimensional Grove for testing purposes.
 
std::vector< std::shared_ptr< GroveKDTreeRaycaster > > trees
 Trees defining.
 
std::vector< std::vector< Primitive * > > primitives
 Primitives for each tree.
 
- Protected Attributes inherited from HeliosTests::BaseTest
std::string const name
 The name for the test.
 

Detailed Description

Test for grove of trees.

Author
Alberto M. Esmoris Pena
Version
1.0

Member Function Documentation

◆ buildGrove()

void HeliosTests::GroveTest::buildGrove ( )
protected

Build the grove of trees to be tested.

See also
HeliosTests::GroveTest::kdg

◆ buildPrimitives()

void HeliosTests::GroveTest::buildPrimitives ( )
protected

Build the primitives that will be used to define trees.

See also
HeliosTests::GroveTest::primitives

◆ buildTrees()

void HeliosTests::GroveTest::buildTrees ( )
protected

Build the trees that will be contained in the grove.

See also
HeliosTests::GroveTest::trees

◆ run()

bool HeliosTests::GroveTest::run ( )
overridevirtual
See also
BaseTest::run

Implements HeliosTests::BaseTest.

◆ testLoops()

bool HeliosTests::GroveTest::testLoops ( )
protected

Test the for, while and for-each loops of the grove.

Returns
True if passed, false otherwise

◆ testObserving()

bool HeliosTests::GroveTest::testObserving ( )
protected

Test observer pattern mechanics are working as expected.

Returns
True if passed, false otherwise

The documentation for this class was generated from the following file: