![]() |
VR-Forces 5.0.3 Developer's Guide
|
The interface for a model of a rotorWash.

Public Member Functions | |
| DtRotorWashModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtRotorWashModel () |
| virtual const std::string & | className () const |
| virtual void | setModelDefinition (const std::string &def) |
| virtual void | addToScene (const DtUniqueID &id, int modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | start () |
| virtual void | stop () |
| virtual void | setOffsetPos (const DtVector &offset) |
| virtual void | setVisible (bool isVisible) |
| virtual bool | isStopped () |
| virtual void | setIntensity (const float intensity) |
| virtual void | setRotorWashDir (const DtVector &dir) |
| virtual void | update () |
| virtual void | setRotorDiameter (double diameter) |
| virtual double | rotorDiameter () const |
| virtual void | setDefaultRotorDiameter (double diameter) |
| virtual double | defaultRotorDiameter () const |
| virtual void | setRotorWindSpeed (double speed) |
| virtual double | rotorWindSpeed () const |
| virtual void | setDefaultRotorWindSpeed (double speed) |
| virtual double | defaultRotorWindSpeed () const |
| virtual void | setHelicopterID (DtUniqueID helicopterID) |
| virtual DtUniqueID | helicopterID () |
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) |
| unsigned int | transformSize () const |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| 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 int | 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 |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | parentSceneObjectID () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| virtual void | setElementId (DtUniqueID id) |
| 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 () |
Protected Member Functions | |
| virtual DtRotorWashModelInstanceInterface * | rotorWashModelInstanceInterface () |
| virtual const DtRotorWashModelInstanceInterface * | rotorWashModelInstanceInterface () const |
| virtual DtVector | currentHeloPosition () const |
| virtual DtTaitBryan | currentHeloOrientation () const |
| virtual DtSceneObject * | sceneObject () const |
| virtual void | calcRotorWashSystemDefaults () |
| virtual void | setIsOverWater (bool overWater) |
| virtual bool | anyObserverMimic () |
| virtual void | slot_oceanAddedToScene () |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Protected Attributes | |
| DtSignalConnectionManager | myConnections |
| bool | myRotorWashStopped |
| DtUniqueID | myHelicopterID |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| int | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| DtUniqueID | myParentSceneObjectID |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
Friends | |
| class | DtRotorWashDistributor |
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 |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtRotorWashModel::DtRotorWashModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Return the class name of this model.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtOsgRotorWashModel.
|
virtual |
Override the set model definition function. Use this to parse a model after it is loaded.
Reimplemented from makVrv::DtModel.
|
virtual |
Set/get the diameter of the rotors (tip to tip)
|
virtual |
Set/get the diameter of the rotors (tip to tip)
|
virtual |
Set/get the default diameter of the rotors (tip to tip) if setRotorDiameter is not called (returns -1 if no rotor diameter or default diameter set)
|
virtual |
Set/get the default diameter of the rotors (tip to tip) if setRotorDiameter is not called (returns -1 if no rotor diameter or default diameter set)
|
virtual |
Set/get the speed of the down-draft created by the rotors.
|
virtual |
Set/get the speed of the down-draft created by the rotors.
|
virtual |
Set/get the default speed of the down-draft created by the rotors if setRotorWindSpeed is not called (returns -1 if no rotor wind speed or default rotor wind speed set)
|
virtual |
Set/get the default speed of the down-draft created by the rotors if setRotorWindSpeed is not called (returns -1 if no rotor wind speed or default rotor wind speed set)
|
virtual |
Attaches the model to the scene If this model has a modelinstance, it is attached to the scene.
Implements makVrv::DtModel.
Reimplemented in makVrv::DtOsgRotorWashModel.
|
virtual |
Detaches the model to the scene If this model has a modelinstance, it is detached to the scene.
Implements makVrv::DtModel.
Reimplemented in makVrv::DtOsgRotorWashModel.
|
virtual |
Unused, but required for all DtModels.
Implements makVrv::DtModel.
|
virtual |
Start the rotorwash effect.
|
virtual |
Stop the rotor wash effect.
|
virtual |
Position the rotor wash system via an offset vector (x,y,z)
|
virtual |
Set the visible state of the model.
| [in] | isVisible | is the new visible state; true = visible, false = hidden. There is a special case for mimic mode, we want the active rotor wash to continue being visible |
Reimplemented from makVrv::DtModel.
|
virtual |
Get whether the rotorwash has stopped.
|
virtual |
Set intensity of system 0 is no intensity, 1 is full intensity See.
|
virtual |
Set direction of coming out of the bottom of the helicopter to aid in positioning the rotorwash.
|
virtual |
For updating any values needed for rotor wash.
|
virtual |
Set/get the helicopter ID this rotorwash is attached to.
|
virtual |
Set/get the helicopter ID this rotorwash is attached to.
|
protectedvirtual |
Get a properly cast version of the model instance this model creates.
|
protectedvirtual |
Get a properly cast const version of the model instance this model creates.
|
protectedvirtual |
Get the helo's current position that this rotorWash is attached to.
|
protectedvirtual |
Ge the helo's current orientation that this rotorWash is attached to.
|
protectedvirtual |
Get the scene object that owns this model (and the ship's model)
|
protectedvirtual |
Set default values for rotor wash. Defaults can be set multiple times. If someone uses a set function (ex. setRotorDiameter) then setDefaultRotorDiameter doesn't do anything.
|
protectedvirtual |
Called by the rotorWash updater to tell us if we are over water.
|
protectedvirtual |
We don't want to hide the rotorwash when in mimic mode so check if any observer in is mimic or mimic track.
|
protectedvirtual |
If a rotorWash is requested and Triton hasn't been initialized, this model connects to the DtTritonManager's signal_addedToScene signal, and creates the rotorWash (and disconnects) when the signal is raised.
|
friend |
|
protected |
|
protected |
|
protected |