![]() |
VR-Forces 4.6 Class Documentation
|
A model which owns a single model instance. More...

Classes | |
| struct | ObjectTransform |
Public Member Functions | |
| DtModel (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtModel () |
| DTOR. | |
| virtual void | setModelDefinition (const std::string &str) |
| Set the model definition. | |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual std::string | className () const |
| Get the class name of the model instance owner. | |
| unsigned int | transformSize () const |
| Get the number of position/orientations this model has. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Set the position of a control vertex in the model. | |
| virtual void | removePosition (int vtx) |
| Remove a transform at the given position. | |
| const DtVector & | position (int vtx=0) const |
| Get the Position of a given point. | |
| const DtTaitBryan & | orientation (int vtx=0) const |
| Get the Orientation of a given point. | |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| Set the orientation of a vertex in the model. | |
| virtual void | enableColorBlending (bool b) |
| Enable / disable color blending for this model. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| Set color to use if color blending is enabled. | |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| Returns the blend color. | |
| virtual bool | colorBlendingEnabled () const |
| Returns whether or not blending is enabled. | |
| virtual void | setColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableLighting (bool l) |
| set whether the model is lit; this may not be an option on all models | |
| virtual int | modelSet () const |
| Get the model set this model is part of. | |
| const DtVector & | boundingBoxExtents () const |
| Get the bounding box extents of the model instance. | |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| Get the bounding box extents of the model instance. | |
| const DtVector & | boundingBoxCenter () const |
| Get the bounding box center of the model instance. | |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| Get the minimum and maximum X,Y,Z components of the bounding box. | |
| void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume. | |
| DtDe & | de () |
| Get the DtDe object. | |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| Internally set the model instance pointer. | |
| virtual void | setVisible (bool isVisible) |
| Set the visible state of the model. | |
| virtual bool | visible () const |
| Get the visible state of the model. | |
| DtUniqueID | parentSceneObjectID () const |
| Parent of the model. | |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| Called when a scene object added the model as a prop. | |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| Called when a scene object added the model with the given model set and visualizer type. | |
| virtual void | setElementId (DtUniqueID id) |
| Called when the element ID of the model's parent object is set. | |
| virtual void | removedFromSceneObject () |
| Called when the model was removed from a scene object. | |
| virtual void | setIsSupportModel (bool isSupport)=0 |
| Is this model part of the support group? (determines whether or not other scene objects can ground clamp to this model) | |
| virtual void | setSolid (bool isSolid) |
| Set whether or not other this model is drawn filled in. | |
| virtual bool | isProp () |
| Return whether or not this model was added as a prop. | |
| virtual DtModelInstance * | modelInstance () |
| Get the model instance. | |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| The visualizer type determines which channel-specific group node this model will be parented to, and consequently, which observer setting will cause it to be rendered in which channel. | |
Public Attributes | |
| boost::signal< void(DtModel *)> | signal_modelToBeDestroyed |
| Signal emitted when the model is to be destroyed. | |
| boost::signal< void(DtModel *)> | signal_modelChanged |
| boost::signal< bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| Signal when the visibility has been requested, if any slot returns false, it will not change. | |
| boost::signal< void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| Signal emitted when the model instance is created. | |
| boost::signal< void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
| Signal emitted when the model instance is to be destroyed. | |
Protected Types | |
| typedef std::vector < ObjectTransform > | TransformList |
Protected Member Functions | |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)=0 |
| Virtual Functions to be implemented, add this model to the scene. | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| Add this model to the scene as a prop. | |
| virtual void | removeFromScene ()=0 |
| Virtual Functions to be implemented, remove this model from the scene. | |
| virtual void | initializeModelInstance () |
| Push any state maintained by the model to the model instance. | |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| Called when the model instance changed. | |
Protected Attributes | |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| bool | myColorBlendingEnabled |
Private Member Functions | |
| void | deleteModelInstance () |
| Delete the model instance (and emit signal_modelToBeDestroyed) | |
Private Attributes | |
| TransformList | myTransforms |
| We keep our own copy in case we get updates before we get a model instance. | |
| DtModelInstance * | myModelInstance |
| int | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| DtUniqueID | myParentSceneObjectID |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
A model which owns a single model instance.
A DtModel is a managing container for a single DtModelInstance, providing more attributes about how the DtModelInstance should be rendered. Initialization of a DtModel starts with giving it a model-definition. Unlike the DtModelInstance which can be handed a model-definition identifying the model to load, the DtModel retrieves a model-definition which has been pre-loaded into a definition-manager. Usually DtModelDefinition objects are automatically loaded from disk to populate the definition-manager.
|
protected |
| makVrv::DtModel::DtModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the model definition.
Reimplemented in makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtDiGuyCharacterModel, makVrv::DtOsgArticulatedModel, makVrv::DtOsgOverlayDirectionLineModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgProjectedWidgetModel, makVrv::DtArticulatedModel, makVrv::DtOsgSimpleModel, makVrv::DtTritonRotorWashModel, makVrv::DtTritonWakeModel, makVrv::DtTritonTidalStreamWakeModel, makVrv::DtTritonWaterImpactModel, makVrv::DtOsgRibbonModel, makVrv::DtOsgDecalModel, makVrv::DtParticleSystemModel, makVrv::DtRibbonModel, makVrv::DtWakeModel, makVrv::DtOsgParticleSystemModel, makVrv::DtDecalModel, makVrv::DtTidalStreamWakeModel, makVrv::DtRotorWashModel, and makVrf::DtVrfOsgArticulatedModel.
|
virtual |
|
virtual |
Get the class name of the model instance owner.
This is used to control how model instances are created.
Reimplemented in makVrv::DtCharacterModel, makVrv::DtDummyCharacterModel, makVrv::DtDiGuyCharacterModel, makVrv::DtOsgArticulatedModel, makVrv::DtArticulatedModel, makVrv::DtTritonWakeModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsgRibbonModel, makVrv::DtOsgDecalModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtOsgAnimationModel, makVrv::DtTacticalSmokeModel, makVrv::DtAnimationModel, makVrv::DtParticleSystemModel, makVrv::DtRibbonModel, makVrv::DtOsgParticleSystemModel, makVrv::DtRectangularPyramidModel, and makVrv::DtDecalModel.
|
virtual |
Get the model instance.
|
virtual |
Get the number of position/orientations this model has.
Set the position of a control vertex in the model.
Reimplemented in makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgArticulatedModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtDiGuyCharacterModel, makVrv::DtOsgScribeBoxModel, makVrv::DtOsgRectangularPyramidModel, makVrf::DtVrfOverlayEllipseArcModel, makVrv::DtMovablePolygonModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtEllipsoidArcModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtOsgProjectedWidgetModel, makVrv::DtOsgCylinderModel, makVrv::DtOsgParticleSystemModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgAnimationModel, makVrv::DtOsgRibbonModel, makVrv::DtOsgDecalModel, makVrv::DtOsgPolygonModel, makVrv::DtTacticalSmokeModel, makVrv::DtOsgSimpleModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgProjectedTextModel, makVrv::DtOsgDrawModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtExampleModel, and makVrv::DtOsgOverlayDirectionLineModel.
|
virtual |
Remove a transform at the given position.
Reimplemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgPolygonModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgOverlaySegmentedLineModel, and makVrv::DtOsgExtrudedLineModel.
Get the Position of a given point.
| DtCorruptedState | if the vtx is not with-in the normal bounds. |
| const DtTaitBryan& makVrv::DtModel::orientation | ( | int | vtx = 0 | ) | const |
Get the Orientation of a given point.
| DtCorruptedState | if the vtx is not with-in the normal bounds. |
|
virtual |
Set the orientation of a vertex in the model.
Reimplemented in makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsgArticulatedModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtDiGuyCharacterModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtOsgScribeBoxModel, makVrf::DtVrfOverlayEllipseArcModel, makVrv::DtOsgPolygonModel, makVrv::DtMovablePolygonModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtOsgCylinderModel, makVrv::DtTacticalSmokeModel, makVrv::DtOsgParticleSystemModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgSimpleModel, makVrv::DtOsgAnimationModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsgRibbonModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgDecalModel, makVrv::DtOsgProjectedTextModel, makVrv::DtOsgDrawModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsgOverlayGreatCircleArcModel, and makVrv::DtExampleModel.
|
virtual |
Enable / disable color blending for this model.
Reimplemented in makVrv::DtOsgArticulatedModel, makVrv::DtOsgSimpleModel, and makVrv::DtOsgPolygonModel.
|
virtual |
Set color to use if color blending is enabled.
Reimplemented in makVrv::DtOsgArticulatedModel, and makVrv::DtOsgSimpleModel.
|
virtual |
Returns the blend color.
|
virtual |
Returns whether or not blending is enabled.
|
virtual |
set the model's color
Reimplemented in makVrv::DtOsgArticulatedModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsgRibbonModel, makVrv::DtRectangularPyramidModel, makVrv::DtOsgDecalModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgScribeBoxModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::Dt3DVolumetricLineModel, makVrv::DtOsgCylinderModel, makVrf::DtVrfOverlayEllipseArcModel, makVrv::Dt2DVolumetricLineModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtEllipsoidArcModel, makVrv::DtOverlayEllipseArcModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgOverlayDirectionLineModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtAttachableCuboidModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtCylinderModel, makVrv::DtScribeBoxModel, makVrv::DtAttachableEllipsoidModel, makVrv::Dt3DTextModel, makVrv::DtArticulatingCylinderModel, makVrf::DtSensorContactLinesModel, and makVrv::DtLineModel.
|
virtual |
set whether the model is lit; this may not be an option on all models
Reimplemented in makVrv::DtOsgPolygonModel.
|
virtual |
Get the model set this model is part of.
| const DtVector& makVrv::DtModel::boundingBoxExtents | ( | ) | const |
Get the bounding box extents of the model instance.
Get the bounding box extents of the model instance.
| const DtVector& makVrv::DtModel::boundingBoxCenter | ( | ) | const |
Get the bounding box center of the model instance.
|
virtual |
Get the bounding box center of the model instance.
|
virtual |
Get the minimum and maximum X,Y,Z components of the bounding box.
Reimplemented in makVrv::DtOsgArticulatedModel, and makVrv::DtOsgSimpleModel.
| void makVrv::DtModel::setContributesToBound | ( | bool | trueOrFalse | ) |
Set whether this model instance contributes to an object's overall bounding volume.
| bool makVrv::DtModel::contributesToBound | ( | ) | const |
Get whether this model instance contributes to an object's overall bounding volume.
| int makVrv::DtModel::visualizerType | ( | ) | const |
The visualizer type determines which channel-specific group node this model will be parented to, and consequently, which observer setting will cause it to be rendered in which channel.
|
virtual |
Internally set the model instance pointer.
If an existing model instance is set, it will be deleted. To clear the current model instance only, passing a Null pointer 0 is supported.
| Input | |
| modelInstance | pointer to a model instance. |
Reimplemented in makVrv::MyParticleSystemModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgRibbonModel, and makVrv::DtOsgDecalModel.
|
virtual |
Set the visible state of the model.
| [in] | isVisible | is the new visible state; true = visible, false = hidden. |
Reimplemented in makVrv::DtTritonWakeModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgArticulatedModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtTritonTidalStreamWakeModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgRibbonModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgParticleSystemModel, makVrv::DtOsgAnimationModel, makVrv::DtOsgDecalModel, makVrv::DtTritonRotorWashModel, makVrv::DtOsgScribeBoxModel, makVrv::DtOsgCylinderModel, makVrv::DtOsgOverlayDirectionLineModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgProjectedWidgetModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtMovablePolygonModel, makVrv::DtOsgProjectedTextModel, makVrf::DtVrfOverlayEllipseArcModel, makVrv::DtMultiLineModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtOsgSimpleModel, makVrv::DtOsgDrawModel, makVrv::DtOsg3DTextModel, and makVrv::DtExampleModel.
|
virtual |
Get the visible state of the model.
| true | if set visible. |
| false | otherwise. |
| DtUniqueID makVrv::DtModel::parentSceneObjectID | ( | ) | const |
Parent of the model.
|
virtual |
Called when a scene object added the model as a prop.
|
virtual |
Called when a scene object added the model with the given model set and visualizer type.
|
virtual |
Called when the element ID of the model's parent object is set.
No-op by default
Reimplemented in makVrv::DtOsgArticulatedModel, and makVrv::DtOsgSimpleModel.
|
virtual |
Called when the model was removed from a scene object.
|
pure virtual |
Is this model part of the support group? (determines whether or not other scene objects can ground clamp to this model)
Implemented in makVrv::DtOsgArticulatedModel, makVrv::DtTritonWakeModel, makVrv::DtDiGuyCharacterModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtRectangularPyramidModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtDummyCharacterModel, makVrv::DtMultiLineModel, makVrv::DtTritonTidalStreamWakeModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgRibbonModel, makVrv::DtTritonWaterImpactModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgParticleSystemModel, makVrv::DtOsgAnimationModel, makVrv::DtOsgDecalModel, makVrv::DtOsgScribeBoxModel, makVrv::DtTritonRotorWashModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtOsgCylinderModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtOsgSimpleModel, makVrv::DtOsgProjectedWidgetModel, makVrv::DtOsgOverlayDirectionLineModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgProjectedTextModel, makVrv::DtOsgDrawModel, and makVrv::DtExampleModel.
|
virtual |
Set whether or not other this model is drawn filled in.
Reimplemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::Dt2DVolumetricLineModel, makVrv::Dt3DVolumetricLineModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayRectangleModel, and makVrv::DtExampleModel.
|
virtual |
Return whether or not this model was added as a prop.
|
protectedpure virtual |
Virtual Functions to be implemented, add this model to the scene.
Implemented in makVrv::DtOsgArticulatedModel, makVrv::DtTritonWakeModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgScribeBoxModel, makVrv::DtMultiLineModel, makVrv::DtOsgAnimationModel, makVrv::DtOsgParticleSystemModel, makVrv::DtTritonTidalStreamWakeModel, makVrv::DtDiGuyCharacterModel, makVrv::DtTritonWaterImpactModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtOsgCylinderModel, makVrv::DtOsgOverlayDirectionLineModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtOsg3DTextModel, makVrv::DtTritonRotorWashModel, makVrv::DtOsgProjectedTextModel, makVrf::DtVrfOverlayEllipseArcModel, makVrv::DtOsgRibbonModel, makVrv::DtOsgDecalModel, makVrv::DtOsgSimpleModel, makVrv::DtExampleModel, makVrv::DtOsgDrawModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtDummyCharacterModel, and makVrv::DtOsgProjectedWidgetModel.
|
inlineprotectedvirtual |
Add this model to the scene as a prop.
All models are not required to re-implement this
Reimplemented in makVrv::DtOsgScribeBoxModel, makVrv::DtOsgParticleSystemModel, and makVrv::DtOsgSimpleModel.
|
protectedpure virtual |
Virtual Functions to be implemented, remove this model from the scene.
Implemented in makVrv::DtOsgArticulatedModel, makVrv::DtTritonWakeModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedLineModel, makVrv::DtOsgOverlayGreatCircleArcModel, makVrv::DtOsgEllipsoidArcModel, makVrv::DtOsg3DGreatCircleArcModel, makVrv::DtOsg3DVolumetricLineModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsg3DSegmentedLineModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgOverlaySegmentedLineModel, makVrv::DtOsgOverlayEllipseArcModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgTacticalSmokeModel, makVrv::DtOsgScribeBoxModel, makVrv::DtMultiLineModel, makVrv::DtOsgParticleSystemModel, makVrv::DtOsgAnimationModel, makVrv::DtTritonTidalStreamWakeModel, makVrv::DtDiGuyCharacterModel, makVrv::DtTritonWaterImpactModel, makVrv::DtOsg2DVolumetricLineModel, makVrv::DtOsgAttachableCuboidModel, makVrv::DtOsgAttachableEllipsoidModel, makVrv::DtOsgCylinderModel, makVrv::DtOsgOverlayDirectionLineModel, makVrv::DtOsgArticulatingCylinderModel, makVrv::DtTritonRotorWashModel, makVrv::DtOsg3DTextModel, makVrv::DtOsgProjectedTextModel, makVrv::DtOsgRibbonModel, makVrv::DtOsgSimpleModel, makVrv::DtOsgDecalModel, makVrv::DtExampleModel, makVrv::DtOsgDrawModel, makVrv::DtOsgRectangularPyramidModel, makVrv::DtOsgProjectedWidgetModel, and makVrv::DtDummyCharacterModel.
|
protectedvirtual |
Push any state maintained by the model to the model instance.
Reimplemented in makVrv::DtOsgRibbonModel, makVrv::DtOsgDecalModel, and makVrv::DtOsgDrawModel.
|
protected |
Called when the model instance changed.
|
private |
Delete the model instance (and emit signal_modelToBeDestroyed)
| boost::signal<void (DtModel*)> makVrv::DtModel::signal_modelToBeDestroyed |
Signal emitted when the model is to be destroyed.
| boost::signal<void (DtModel*)> makVrv::DtModel::signal_modelChanged |
| boost::signal<bool (DtModel*,bool ), SlotReturnOR> makVrv::DtModel::signal_visibilityChangeRequested |
Signal when the visibility has been requested, if any slot returns false, it will not change.
| boost::signal<void (DtModelInstance*, DtModel*)> makVrv::DtModel::signal_modelInstanceCreated |
Signal emitted when the model instance is created.
| boost::signal<void (DtModelInstance*, DtModel*)> makVrv::DtModel::signal_modelInstanceToBeDestroyed |
Signal emitted when the model instance is to be destroyed.
|
protected |
|
protected |
|
protected |
|
private |
We keep our own copy in case we get updates before we get a model instance.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |