![]() |
VR-Forces 5.0.2 Developer's Guide
|
The base class for all model instances.
The details required to draw a model, such as geometry, filename, scale, or texture are provided by a DtModelDefinition. A DtModelDefinition is a set of parameters, whose names and types are defined by a DtSchema. The DtModelDefinitionManager saves and loads model-definitions and schemas and maintains settings for model instancing and caching. Model-definitions and schemas are distributed, but not by the usual agent mechanism. Instead, the DtDeSharedState distributes them directly.

Static Public Member Functions | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| makVrv::DtModelInstance::DtModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false.
Reimplemented in makVrv::DtSpiderWebModelInstance, makVrv::DtAttachableEllipsoidArcModelInstance, makVrv::DtArcModelInstance, makVrv::DtOsgOverlayEllipseArcModelInstance, makVrv::DtOsgOverlayDirectionLineModelInstance, makVrv::DtOverlaySegmentedLineModelInstance, makVrv::Dt3DSegmentedLineModelInstance, makVrv::DtOsgModelInstance, makVrv::DtExtrudedLineModelInstance, makVrv::DtTritonWaterImpactModelInstance, makVrv::DtFxParticleSystemModelInstance, makVrv::Dt3DTextModelInstance, makVrv::DtArticulatingCylinderModelInstance, makVrv::DtEllipsoidArcModelInstance, makVrv::DtPolygonModelInstance, makVrv::DtCuboidModelInstance, makVrv::DtCylinderModelInstance, makVrv::DtEllipsoidModelInstance, makVrv::DtCubeModelInstance, makVrv::DtParticleSystemModelInstance, makVrv::DtRibbonModelInstance, makVrv::DtRectangularPyramidModelInstance, makVrv::DtTacticalSmokeModelInstance, makVrv::DtDecalModelInstance, makVrv::DtOverlayGreatCircleArcModelInstance, makVrv::DtDiGuyModelInstance, makVrv::Dt3DGreatCircleArcModelInstance, and makVrv::DtOsgSimpleModelInstance.
|
virtual |
Attempt to clone the basic geometry. Can be done in the background. If the model instance can't clone the definition it should return false.
Reimplemented in makVrv::DtOsgModelInstance, and makVrv::DtOsgSimpleModelInstance.
| const std::string& makVrv::DtModelInstance::realizedDefinitionName | ( | ) | const |
Get the name of the definition that this model instance was realized with.
|
virtual |
Attempt to save the model to a file.
Reimplemented in makVrv::DtOsgModelInstance.
| const DtVector& makVrv::DtModelInstance::boundingBoxExtents | ( | ) | const |
Get the bounding box extents of the model instance.
Get the bounding box extents of the model instance.
| const DtVector& makVrv::DtModelInstance::boundingBoxCenter | ( | ) | const |
Get the bounding box center of the model instance.
Get the bounding box center of the model instance.
Get the bounding box min/max of the model instance.
| const DtVector& makVrv::DtModelInstance::allGeometryboundingBoxExtents | ( | ) | const |
functions for getting the allGeometry versions of the extents (they are calculated by traversing as if all switch paths are active)
Get the all geometry version of bounding box extents of the model instance
| void makVrv::DtModelInstance::getAllGeometryBoundingBoxExtents | ( | double & | x, |
| double & | y, | ||
| double & | z | ||
| ) | const |
Get the all geometry version of bounding box extents of the model instance.
| const DtVector& makVrv::DtModelInstance::allGeometryboundingBoxCenter | ( | ) | const |
Get the all geometry version of bounding box center of the model instance.
| void makVrv::DtModelInstance::getAllGeometryBoundingBoxCenter | ( | double & | x, |
| double & | y, | ||
| double & | z | ||
| ) | const |
Get the all geometry version of bounding box center of the model instance.
| void makVrv::DtModelInstance::getAllGeometryBoundingBoxComponents | ( | DtVector & | minimum, |
| DtVector & | maximum | ||
| ) |
Get the all geometry version of bounding box min/max of the model instance.
|
virtual |
Set whether this model instance contributes to an object's overall bounding volume.
Reimplemented in makVrv::DtCubeModelInstance.
| bool makVrv::DtModelInstance::contributesToBound | ( | ) | const |
Get whether this model instance contributes to an object's overall bounding volume.
|
pure virtual |
Set whether the model is visible or not.
Implemented in makVrv::DtAttachableEllipsoidArcModelInstance, makVrv::DtExtrudedLineModelInstance, makVrv::DtExtrudedModelInstance, makVrv::DtOsgOverlayPolygonModelInstance, makVrv::Dt3DSegmentedLineModelInstance, makVrv::DtOverlaySegmentedLineModelInstance, makVrv::DtArcModelInstance, makVrv::DtSpiderWebModelInstance, makVrv::DtFxParticleSystemModelInstance, makVrv::DtOsgOverlayEllipseArcModelInstance, makVrv::DtPolygonModelInstance, makVrv::DtTritonRotorWashModelInstance, makVrv::DtRibbonModelInstance, makVrv::DtParticleSystemModelInstance, makVrv::Dt3DTextModelInstance, makVrv::DtArticulatingCylinderModelInstance, makVrv::DtEllipsoidArcModelInstance, makVrv::DtDecalModelInstance, makVrv::DtCuboidModelInstance, makVrv::DtCylinderModelInstance, makVrv::DtEllipsoidModelInstance, makVrv::DtCubeModelInstance, makVrv::DtRectangularPyramidModelInstance, makVrv::DtTacticalSmokeModelInstance, makVrv::DtOsgOverlayDirectionLineModelInstance, makVrv::DtProjectedTextModelInstance, makVrv::DtDiGuyModelInstance, makVrv::DtOsgWidgetUpdater, makVrv::DtScribeBoxModelInstance, makVrv::DtTritonTidalStreamWakeModelInstance, makVrv::DtTritonWakeModelInstance, makVrv::DtTritonWaterImpactModelInstance, makVrv::DtOsgSimpleModelInstance, makVrv::DtDrawModelInstance, makVrv::DtParticleRotorWashModelInstance, makVrv::DtAttachedCylinderModelInstance, and makVrv::DtExampleModelInstance.
|
virtual |
set the model's color
Reimplemented in makVrv::DtOsgModelInstance.
|
virtual |
Enable / disable coloring on all models in the scene object Note about enableColorBlending: If this particular model has instancing enabled then this flag is set to false and color blending is handled by the instance manager. It should not be set to true if the model has instancing enabled.
Reimplemented in makVrv::DtOsgModelInstance, and makVrv::DtPolygonModelInstance.
|
static |
|
static |
| boost::signalslib::signal<void (DtModelInstance*)> makVrv::DtModelInstance::signal_modelInstanceChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |