Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::ModelInstance Class Reference

#include <M3DModelInstance.h>

Public Member Functions

 ModelInstance (const std::shared_ptr< LocalOrigin > &local_origin)
 
 ModelInstance (const std::shared_ptr< GeoTransform > geoTransform, const std::shared_ptr< STK::GraphicsModel > model)
 
const STK::Vector3dgetPosition () const
 
double getModelRadius ()
 
void updateModelTransform ()
 
const STK::Matrix4x4fgetModelTransform () const
 
const std::shared_ptr< STK::GraphicsModel > & getModel () const
 
std::shared_ptr< STK::GraphicsModelgetModel ()
 
std::shared_ptr< GeoTransformgeoTransform ()
 
const std::shared_ptr< GeoTransform > & getGeoTransform () const
 
void setGeoTransform (const std::shared_ptr< GeoTransform > &xfm)
 
void loadModel (const std::shared_ptr< Maria3D::ModelManager > &modelManager)
 
void releaseModel ()
 
bool intersects (const QuadCoo &tile, unsigned short renderMask)
 
void setScale (double scale)
 
double getScale () const
 
void setFootprintMask (bool footprint)
 
bool getFootprintMask () const
 
std::string getFootprintId () const
 
const std::shared_ptr< STK::MeshCollisionObjectgetOrCreateCollisionObject ()
 
bool calcTerrainDistance (const std::shared_ptr< Maria::ElevationData > &elevationData, double &lowerPointDistance, double &maxCountDistance)
 
STK::Vector3d getCenterPosGeocentric ()
 
void getCenterPosGeo (double &lat, double &lon, double &alt)
 

Protected Member Functions

bool calcModelWorldTransform (btTransform &t_transform, std::shared_ptr< STK::MeshGraphicsModel > &meshModel)
 

Protected Attributes

std::string _modelType
 
std::shared_ptr< STK::GraphicsModel_model
 
std::shared_ptr< GeoTransform_geoTransform
 
STK::Matrix4x4f _modelTransform
 
std::shared_ptr< STK::MeshCollisionObject_collisionObject
 
double _scale
 
bool _footprint_mask
 

Detailed Description

ModelInstance - 3D model with a geographical location

Member Function Documentation

◆ getFootprintMask()

bool Maria3D::ModelInstance::getFootprintMask ( ) const
inline

Enable/disable footprint mask. If enabled, a hole is cut in the terrain matching the vertical footprint of the model.

◆ setFootprintMask()

void Maria3D::ModelInstance::setFootprintMask ( bool  footprint)
inline

Enable/disable footprint mask. If enabled, a hole is cut in the terrain matching the vertical footprint of the model.


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