GlobeEngine
geGIS::ModelLayer Class Reference

#include <ModelLayer.h>

Public Member Functions

 ModelLayer ()
 
 ~ModelLayer ()
 
void clear ()
 
void clearInitial ()
 
void deleteShader ()
 
void create (std::shared_ptr< SceneBlueprint > _sceneBlueprint, GlobeEngine *_engine)
 
void update ()
 
void loadModelByBlueprint (enum ModelLayerCategories::MODELTYPE _type, std::shared_ptr< FeatureBlueprint > _blueprint)
 
void loadFromModelMap ()
 
std::shared_ptr< ge::ShaderloadShaderFromBlueprint (std::shared_ptr< ge::ShaderBlueprint > const &_blueprint)
 
void updateModels (enum ModelLayerCategories::MODELTYPE _type)
 
void updateNames (vmml::Vector3d _center)
 
void bundleObject (ModelLayerSelection _selection, enum BundlingCategories::BUNDLINGTYPE _bundlingType=BundlingCategories::NONE, int _index2=0, enum ModelLayerCategories::MODELTYPE _type2=ModelLayerCategories::NONE)
 
int addBundlingObject (vmml::Vector3f _pos)
 
void doModelAnimationStep (ModelLayerSelection _selection)
 
void setObjectExtrusionXZ (float _input, ModelLayerSelection _selection)
 
void setObjectExtrusionY (float _input, ModelLayerSelection _selection)
 
void setObjectVisibility (bool _value, ModelLayerSelection _selection)
 
void setObjectVisualizationMode (int _value, enum ModelLayerCategories::MODELTYPE _type)
 
void setObjectThickness (float _in, ModelLayerSelection _selection)
 
vmml::Vector2d getObjectMinMax (ModelLayerSelection _selection)
 
void updateCommuterObjectBundlingProperty (ModelLayerSelection _selection, BundlingPropertyUpdate _input)
 
void updatePickingState (int _groupID, int _objID, int _entID, int _prev_groupID, int _prev_objID, int _prev_entID)
 
void setModelLayerSelection (ModelLayerSelection _selection)
 
void setHeightScaleForAllLayers (float _input)
 
void setHeight (ModelLayerSelection _selection, double _input)
 
void setObjectPosition (ModelLayerSelection _selection, vmml::Vector3d _in)
 
std::shared_ptr< FeatureObjectgetWritableFeature (ModelLayerSelection _selection)
 
std::shared_ptr< LineFeatureObjectgetWritableLineFeature (ModelLayerSelection _selection)
 
std::shared_ptr< PointFeatureObjectgetWritablePointFeature (ModelLayerSelection _selection)
 
const std::shared_ptr< FeatureObjectgetFeature (ModelLayerSelection _selection)
 
const std::shared_ptr< LineFeatureObjectgetLineFeature (ModelLayerSelection _selection)
 
const std::shared_ptr< ge::DrawableComponentgetObject (ModelLayerSelection _selection)
 
std::shared_ptr< ge::DrawableComponentgetWritableObject (ModelLayerSelection _selection)
 
ModelLayerObjectInformation getObjectInfo (ModelLayerSelection _selection)
 
unsigned int getObjectListSize (ModelLayerSelection _selection)
 
void setObjectColor (ModelLayerSelection _selection, vmml::Vector3f _in)
 
ge::DrawableComponent::RENDERSTATE drawModels (enum ModelLayerCategories::MODELTYPE _type, enum ge::DrawableComponent::RENDERSTATE _state, std::shared_ptr< ge::Camera > _cam)
 
void setSplinesSegmentsDistance (ModelLayerSelection _selection, float _in)
 
void switchColorisationEditor ()
 
void setObjectColorRamp (ModelLayerSelection _selection, const std::shared_ptr< geData::ColorisationTable > &_colorTable)
 
void setColorEditorColorisation (ModelLayerSelection _selection, unsigned char *_transferFunctionData)
 
void moveCameraToObject (ModelLayerSelection _selection)
 
void addPath (geData::DouglasPeuckerDrawablePath *_pathLine, vmml::Vector3d _pos, int _bundlingIdx)
 
int addPathObject (std::shared_ptr< geData::PolyLine > _path, std::string _name, bool inLocalCoordinates)
 
int addMultiLineObject (std::shared_ptr< geData::MultiLineObject > _object)
 
int addMultiLineObject ()
 
int addPointCloud (std::shared_ptr< geData::PointCloud > _pointCloud)
 
int addPointCloud (int _size)
 
std::shared_ptr< geGIS::GlobeRasterModulegetTerrainModule ()
 
void saveObject (ModelLayerSelection _selection, std::string _path, std::string _ext)
 
void triangulateObject (ModelLayerSelection _selection)
 
void setInitialScan (double _minHeight, double _maxHeight, double _interval)
 
void performScanStep (double _height)
 
void updateInitialScanning ()
 
bool isInitialScanOn ()
 
std::shared_ptr< geData::PointCloudgetPointCloud (int _id)
 
std::shared_ptr< geData::MultiLineObjectgetMultiLineObject (int _id)
 
double getScanHeight ()
 
double getHeightScale ()
 
const std::shared_ptr< ReferenceSystemgetReferenceSystem ()
 
bool currentlyPicking ()
 
ModelLayerSelection getPickedSelection ()
 

Constructor & Destructor Documentation

geGIS::ModelLayer::ModelLayer ( )
geGIS::ModelLayer::~ModelLayer ( )

Member Function Documentation

int geGIS::ModelLayer::addBundlingObject ( vmml::Vector3f  _pos)
int geGIS::ModelLayer::addMultiLineObject ( std::shared_ptr< geData::MultiLineObject _object)

add a pointcloud.

Parameters
[in]_pointCloudthe new pointcloud.
Returns
ID of the pointcloud.
int geGIS::ModelLayer::addMultiLineObject ( )

creates a new pointcloud with standard shader

Parameters
[in]_intsize.
Returns
ID of the pointcloud.
void geGIS::ModelLayer::addPath ( geData::DouglasPeuckerDrawablePath _pathLine,
vmml::Vector3d  _pos,
int  _bundlingIdx 
)
int geGIS::ModelLayer::addPathObject ( std::shared_ptr< geData::PolyLine _path,
std::string  _name,
bool  inLocalCoordinates 
)
int geGIS::ModelLayer::addPointCloud ( std::shared_ptr< geData::PointCloud _pointCloud)

add a pointcloud.

Parameters
[in]_pointCloudthe new pointcloud.
Returns
ID of the pointcloud.
int geGIS::ModelLayer::addPointCloud ( int  _size)

creates a new pointcloud with standard shader

Parameters
[in]_intsize.
Returns
ID of the pointcloud.
void geGIS::ModelLayer::bundleObject ( ModelLayerSelection  _selection,
BundlingCategories::BUNDLINGTYPE  _bundlingType = BundlingCategories::NONE,
int  _index2 = 0,
ModelLayerCategories::MODELTYPE  _type2 = ModelLayerCategories::NONE 
)
void geGIS::ModelLayer::clear ( )
void geGIS::ModelLayer::clearInitial ( )
void geGIS::ModelLayer::create ( std::shared_ptr< SceneBlueprint _sceneBlueprint,
GlobeEngine _engine 
)
bool geGIS::ModelLayer::currentlyPicking ( )
void geGIS::ModelLayer::deleteShader ( )
void geGIS::ModelLayer::doModelAnimationStep ( ModelLayerSelection  _selection)
ge::DrawableComponent::RENDERSTATE geGIS::ModelLayer::drawModels ( ModelLayerCategories::MODELTYPE  _type,
ge::DrawableComponent::RENDERSTATE  _state,
std::shared_ptr< ge::Camera _cam 
)
const std::shared_ptr< FeatureObject > geGIS::ModelLayer::getFeature ( ModelLayerSelection  _selection)
double geGIS::ModelLayer::getHeightScale ( )
inline
const std::shared_ptr< LineFeatureObject > geGIS::ModelLayer::getLineFeature ( ModelLayerSelection  _selection)
std::shared_ptr< geData::MultiLineObject > geGIS::ModelLayer::getMultiLineObject ( int  _id)
const std::shared_ptr< ge::DrawableComponent > geGIS::ModelLayer::getObject ( ModelLayerSelection  _selection)
ModelLayerObjectInformation geGIS::ModelLayer::getObjectInfo ( ModelLayerSelection  _selection)
unsigned int geGIS::ModelLayer::getObjectListSize ( ModelLayerSelection  _selection)
vmml::Vector2d geGIS::ModelLayer::getObjectMinMax ( ModelLayerSelection  _selection)
ModelLayerSelection geGIS::ModelLayer::getPickedSelection ( )
std::shared_ptr< geData::PointCloud > geGIS::ModelLayer::getPointCloud ( int  _id)
const std::shared_ptr< ReferenceSystem > geGIS::ModelLayer::getReferenceSystem ( )
double geGIS::ModelLayer::getScanHeight ( )
inline
std::shared_ptr< geGIS::GlobeRasterModule > geGIS::ModelLayer::getTerrainModule ( )
std::shared_ptr< FeatureObject > geGIS::ModelLayer::getWritableFeature ( ModelLayerSelection  _selection)
std::shared_ptr< LineFeatureObject > geGIS::ModelLayer::getWritableLineFeature ( ModelLayerSelection  _selection)
std::shared_ptr< ge::DrawableComponent > geGIS::ModelLayer::getWritableObject ( ModelLayerSelection  _selection)
std::shared_ptr< PointFeatureObject > geGIS::ModelLayer::getWritablePointFeature ( ModelLayerSelection  _selection)
bool geGIS::ModelLayer::isInitialScanOn ( )
inline
void geGIS::ModelLayer::loadFromModelMap ( )
void geGIS::ModelLayer::loadModelByBlueprint ( ModelLayerCategories::MODELTYPE  _type,
std::shared_ptr< FeatureBlueprint _blueprint 
)
std::shared_ptr< ge::Shader > geGIS::ModelLayer::loadShaderFromBlueprint ( std::shared_ptr< ge::ShaderBlueprint > const &  _blueprint)
void geGIS::ModelLayer::moveCameraToObject ( ModelLayerSelection  _selection)
void geGIS::ModelLayer::performScanStep ( double  _height)
void geGIS::ModelLayer::saveObject ( ModelLayerSelection  _selection,
std::string  _path,
std::string  _ext 
)
void geGIS::ModelLayer::setColorEditorColorisation ( ModelLayerSelection  _selection,
unsigned char *  _transferFunctionData 
)
void geGIS::ModelLayer::setHeight ( ModelLayerSelection  _selection,
double  _input 
)
void geGIS::ModelLayer::setHeightScaleForAllLayers ( float  _input)
void geGIS::ModelLayer::setInitialScan ( double  _minHeight,
double  _maxHeight,
double  _interval 
)
void geGIS::ModelLayer::setModelLayerSelection ( ModelLayerSelection  _selection)
void geGIS::ModelLayer::setObjectColor ( ModelLayerSelection  _selection,
vmml::Vector3f  _in 
)
void geGIS::ModelLayer::setObjectColorRamp ( ModelLayerSelection  _selection,
const std::shared_ptr< geData::ColorisationTable > &  _colorTable 
)
void geGIS::ModelLayer::setObjectExtrusionXZ ( float  _input,
ModelLayerSelection  _selection 
)
void geGIS::ModelLayer::setObjectExtrusionY ( float  _input,
ModelLayerSelection  _selection 
)
void geGIS::ModelLayer::setObjectPosition ( ModelLayerSelection  _selection,
vmml::Vector3d  _in 
)
void geGIS::ModelLayer::setObjectThickness ( float  _in,
ModelLayerSelection  _selection 
)
void geGIS::ModelLayer::setObjectVisibility ( bool  _value,
ModelLayerSelection  _selection 
)
void geGIS::ModelLayer::setObjectVisualizationMode ( int  _value,
ModelLayerCategories::MODELTYPE  _type 
)
void geGIS::ModelLayer::setSplinesSegmentsDistance ( ModelLayerSelection  _selection,
float  _in 
)
void geGIS::ModelLayer::switchColorisationEditor ( )
inline
void geGIS::ModelLayer::triangulateObject ( ModelLayerSelection  _selection)
void geGIS::ModelLayer::update ( )
void geGIS::ModelLayer::updateCommuterObjectBundlingProperty ( ModelLayerSelection  _selection,
BundlingPropertyUpdate  _input 
)
void geGIS::ModelLayer::updateInitialScanning ( )
void geGIS::ModelLayer::updateModels ( ModelLayerCategories::MODELTYPE  _type)
void geGIS::ModelLayer::updateNames ( vmml::Vector3d  _center)
void geGIS::ModelLayer::updatePickingState ( int  _groupID,
int  _objID,
int  _entID,
int  _prev_groupID,
int  _prev_objID,
int  _prev_entID 
)

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