![]() |
VR-Forces Developer's Guide
|
This is a realization of DtModel. It is a model class that is used to create a simple, model definition-based modelInstance. Renaming (when the Attachable- is removed from the class name) is recommended.

Public Member Functions | |
| DtOsgSimpleModel (DtDe &de, DtUniqueID &id) | |
| virtual | ~DtOsgSimpleModel () |
| virtual void | setElementId (DtUniqueID id) |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | setModelScalingEnabled (bool b) |
| virtual bool | modelScalingEnabled () |
| virtual void | slot_atcModeEnableChanged (bool state) |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | setVisible (bool visible) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | removeFromScene () |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual const std::string & | className () const |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | enableLighting (bool l) |
| virtual DtModelSetId | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (const DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Private Member Functions | |
| DtOsgSimpleModel ()=delete | |
| DtOsgSimpleModel (const DtOsgSimpleModel &)=delete | |
| DtOsgSimpleModel & | operator= (const DtOsgSimpleModel &)=delete |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtOsgSimpleModel::DtOsgSimpleModel | ( | DtDe & | de, |
| DtUniqueID & | id | ||
| ) |
|
virtual |
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
virtual |
Set the model definition.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
set the visibility
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
set the position
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
set the orientation
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Set the position offset of the model. This offsets the position of the entire model.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Set the Orientation Offset of the model. This offsets the orientation of the entire model.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Add to scene (model set & visualizer type specified)
Implements makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Add to scene as a prop ( no model set / visualizer type specified )
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
remove from the scene
Implements makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Get opposite corners of the bounding box for this model.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the element ID for this model.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
enable color blending for the model
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Set the blend color for the model.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
Indicate whether or not this model may be model-scaled Default is false.
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
virtual |
getter for model scaling enabled flag
|
virtual |
slot for atc mode changed
Reimplemented in makVrv::DtDeprecatedOsgSimpleModel.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |