![]() |
VR-Forces Developer's Guide
|
A model of a triton tidalStreamWake is used to interface with the triton API to generate a Kelvin tidalStreamWake effect.

Public Member Functions | |
| DtTritonTidalStreamWakeModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtTritonTidalStreamWakeModel () |
| virtual void | setModelDefinition (const std::string &modelDef) |
| virtual std::string | modelDefinition () const |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setVisible (bool isVisible) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | setWakeLength (double wakeLength) |
| virtual double | wakeLength () const |
| virtual void | setWakeOffset (double wakeLength) |
| virtual double | wakeOffset () const |
| virtual void | setDraft (double draft) |
| virtual double | draft () const |
| virtual void | setMaxWaveAmplitude (double amplitude) |
| virtual double | maxWaveAmplitude () const |
| virtual void | setLodDistance (double lodDistance) |
| virtual double | lodDistance () const |
Public Member Functions inherited from makVrv::DtTidalStreamWakeModel | |
| DtTidalStreamWakeModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtTidalStreamWakeModel () |
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 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 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 |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| 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 | setElementId (DtElementID 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 DtTritonTidalStreamWakeModelInstance * | tidalStreamWakeModelInstance () |
| virtual DtTritonTidalStreamWakeModelInstance * | tidalStreamWakeModelInstance () const |
| virtual DtVector | currentPosition () const |
| virtual DtSceneObject * | sceneObject () const |
| virtual void | calcDefaults () |
| virtual void | setIsOverWater (bool overWater) |
| 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 | |
| boost::signalslib::connection | myTritonManagerConnection |
| double | myLodDistance |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| DtUniqueID | myElementId |
| DtUniqueID | myParentSceneObjectID |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
| bool | myRequireModelInstance = true |
Friends | |
| class | DtTritonTidalStreamWakeUpdater |
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::DtTritonTidalStreamWakeModel::DtTritonTidalStreamWakeModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Initialize this model from a model-definition.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Get the model definition name set, if any.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set /get the length of the wake generated.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set /get the length of the wake generated.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set /get an offset for the wake start in the direction opposite the wake motion (to move the wake at or even behind the object it is attached to.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set /get an offset for the wake start in the direction opposite the wake motion (to move the wake at or even behind the object it is attached to.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set / get the distance underwater this object extends.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set / get the distance underwater this object extends.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set / get the maximum wake wave amplitude generated by this object.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set / get the maximum wake wave amplitude generated by this object.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set / get the maximum wake wave amplitude generated by this object.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
Set / get the maximum wake wave amplitude generated by this object.
Implements makVrv::DtTidalStreamWakeModel.
|
virtual |
AddToScene is called by the scene object with which this model is associated after it has been initialized. If the tidalStreamWake should be visible, this will cause the triton tidalStreamWake object to be created.
Implements makVrv::DtModel.
|
virtual |
Destroy the triton tidalStreamWake object.
Implements makVrv::DtModel.
|
virtual |
Set the visible state of the model.
| [in] | isVisible | is the new visible state; true = visible, false = hidden. |
Reimplemented from makVrv::DtModel.
|
inlinevirtual |
Unused, but required for all DtModels.
Implements makVrv::DtModel.
|
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 object's current position that this tidal stream wake is attached to.
|
protectedvirtual |
Get the helo's current orientation that this tidalStreamWake is attached to.
Get the scene object that owns this model (and the ship's model)
|
protectedvirtual |
Calculate defaults for geometric parameters based on the ship model's bounding geometry.
|
protectedvirtual |
Called by the tidalStreamWake updater to tell us if we are over water.
|
protectedvirtual |
If a tidalStreamWake is requested and Triton hasn't been initialized, this model connects to the DtTritonManager's signal_addedToScene signal, and creates the tidalStreamWake (and disconnects) when the signal is raised.
|
friend |
Allow the updater to use our protected methods.
|
protected |
|
protected |
in meters; values <= 0 indicate no LOD (always show wake)