10 #include "maths/Rotation.h" 13 #include <ogr_spatialref.h> 23 OGRSpatialReference* sourceCRS;
28 std::map<std::string, ObjectT>
params;
48 {
if(primsOut ==
nullptr) primsOut =
new ScenePart();}
50 {
if(primsOut !=
nullptr)
delete primsOut;}
70 std::shared_ptr<Material>
getMaterial(std::string materialName);
AbstractGeometryFilter(ScenePart *parts_)
Base constructor for asset loading filters.
Definition: AbstractGeometryFilter.h:47
std::map< std::string, ObjectT > params
Available parameters.
Definition: AbstractGeometryFilter.h:28
ScenePart * primsOut
ScenePart used to build the output. Not strictly necessary for any filter.
Definition: AbstractGeometryFilter.h:38
std::map< std::string, Material > materials
Available materials.
Definition: AbstractGeometryFilter.h:32
virtual ScenePart * run()=0
Abstract method to run the filter and obtain the output.
Class representing a scene part.
Definition: ScenePart.h:16
Abstract class defining asset loading filters common behavior.
Definition: AbstractGeometryFilter.h:18
std::vector< std::shared_ptr< Material > > parseMaterials()
Parse materials specified through "matfile", which can be concreted through "matname" parameter...
Definition: AbstractGeometryFilter.cpp:19
std::shared_ptr< Material > getMaterial(std::string materialName)
Retrieve requested material by name.
Definition: AbstractGeometryFilter.cpp:5