Helios++
Helios software for LiDAR simulations
|
Abstract class defining asset loading filters common behavior. More...
#include <AbstractGeometryFilter.h>
Public Member Functions | |
AbstractGeometryFilter (ScenePart *parts_) | |
Base constructor for asset loading filters. More... | |
virtual ScenePart * | run ()=0 |
Abstract method to run the filter and obtain the output. More... | |
std::shared_ptr< Material > | getMaterial (std::string materialName) |
Retrieve requested material by name. More... | |
std::vector< std::shared_ptr< Material > > | parseMaterials () |
Parse materials specified through "matfile", which can be concreted through "matname" parameter. It can also handle random materials when parameter "randomMaterials" is set. More... | |
Public Attributes | |
OGRSpatialReference * | sourceCRS |
std::map< std::string, ObjectT > | params |
Available parameters. | |
std::map< std::string, Material > | materials |
Available materials. | |
ScenePart * | primsOut = nullptr |
ScenePart used to build the output. Not strictly necessary for any filter. | |
Abstract class defining asset loading filters common behavior.
|
inline |
Base constructor for asset loading filters.
parts_ | Instance to be used as primsOut |
std::shared_ptr< Material > AbstractGeometryFilter::getMaterial | ( | std::string | materialName | ) |
Retrieve requested material by name.
materialName | Name of material to be retrieved |
std::vector< std::shared_ptr< Material > > AbstractGeometryFilter::parseMaterials | ( | ) |
Parse materials specified through "matfile", which can be concreted through "matname" parameter. It can also handle random materials when parameter "randomMaterials" is set.
|
pure virtual |
Abstract method to run the filter and obtain the output.
Implemented in ScaleFilter, DetailedVoxelLoader, XYZPointCloudFileLoader, WavefrontObjFileLoader, TranslateFilter, RotateFilter, and GeoTiffFileLoader.