![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#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::Vector3d & | getPosition () const |
double | getModelRadius () |
void | updateModelTransform () |
const STK::Matrix4x4f & | getModelTransform () const |
const std::shared_ptr< STK::GraphicsModel > & | getModel () const |
std::shared_ptr< STK::GraphicsModel > | getModel () |
std::shared_ptr< GeoTransform > | geoTransform () |
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::MeshCollisionObject > | getOrCreateCollisionObject () |
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 |
ModelInstance - 3D model with a geographical location
|
inline |
Enable/disable footprint mask. If enabled, a hole is cut in the terrain matching the vertical footprint of the model.
|
inline |
Enable/disable footprint mask. If enabled, a hole is cut in the terrain matching the vertical footprint of the model.