Helios++
Helios software for LiDAR simulations
AbstractGeometryFilter Class Referenceabstract

Abstract class defining asset loading filters common behavior. More...

#include <AbstractGeometryFilter.h>

Inheritance diagram for AbstractGeometryFilter:
Collaboration diagram for AbstractGeometryFilter:

Public Member Functions

 AbstractGeometryFilter (ScenePart *parts_)
 Base constructor for asset loading filters. More...
 
virtual ScenePartrun ()=0
 Abstract method to run the filter and obtain the output. More...
 
std::shared_ptr< MaterialgetMaterial (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, Materialmaterials
 Available materials.
 
ScenePartprimsOut = nullptr
 ScenePart used to build the output. Not strictly necessary for any filter.
 

Detailed Description

Abstract class defining asset loading filters common behavior.

Constructor & Destructor Documentation

◆ AbstractGeometryFilter()

AbstractGeometryFilter::AbstractGeometryFilter ( ScenePart parts_)
inline

Base constructor for asset loading filters.

Parameters
parts_Instance to be used as primsOut
See also
AbstractGeometryFilter::primsOut

Member Function Documentation

◆ getMaterial()

std::shared_ptr< Material > AbstractGeometryFilter::getMaterial ( std::string  materialName)

Retrieve requested material by name.

Parameters
materialNameName of material to be retrieved
Returns
Requested material

◆ parseMaterials()

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.

Returns
Vector of shared pointers to parsed materials

◆ run()

virtual ScenePart* AbstractGeometryFilter::run ( )
pure virtual

Abstract method to run the filter and obtain the output.

Returns
Built scene part, if any. In most cases, the primsOut variable.
See also
AbstractGeometryFilter::primsOut

Implemented in ScaleFilter, DetailedVoxelLoader, XYZPointCloudFileLoader, WavefrontObjFileLoader, TranslateFilter, RotateFilter, and GeoTiffFileLoader.


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