![]() |
VR-Forces 4.5 Class Documentation
|
Implementation of a Triton waterImpact model. More...

Public Member Functions | |
| DtTritonWaterImpactModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtTritonWaterImpactModelInstance () |
| DTOR. | |
| virtual void | setVisible (bool isVisible) |
| Set whether the waterImpact is visible or not. | |
| virtual bool | visible () const |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume - in this, returns false. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Process the model definition and call createEffect() | |
| virtual void | createEffect () |
| Create the effect. | |
| virtual void | setImpactLocation (const DtVector &location) |
| Set/get the location of the water impact. | |
| virtual const DtVector & | impactLocation () const |
| virtual void | setMunitionSpeed (double speed) |
| Set/get the speed of the munition as it enters the water. | |
| virtual double | munitionSpeed () const |
| virtual void | setImpactDiameter (double diameter) |
| Set/get the impact diameter. | |
| double | impactDiameter () const |
| virtual void | setSprayScale (double scale) |
| Set/get the spray scale. | |
| double | sprayScale () const |
| virtual void | setMunitionMass (double mass) |
| Set/get the munition mass. | |
| double | munitionMass () const |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtModelInstance () |
| DTOR. | |
| const std::string & | realizedDefinitionName () const |
| Get the name of the definition that this model instance was realized with. | |
| virtual bool | saveModelToFile (const std::string &filename) const |
| Attempt to save the model to a file. | |
| 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. | |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableColorBlending (bool b) |
| 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. | |
Protected Member Functions | |
| virtual void | slot_tritonAboutToBeDeleted () |
| Called by signal when triton is being deleted. | |
Protected Attributes | |
| Triton::Impact * | myWaterImpact |
| bool | myVisible |
| DtVector | myImpactLocation |
| double | myImpactDiameter |
| double | myMunitionSpeed |
| double | mySprayScale |
| double | myMunitionMass |
| DtSignalConnectionManager | mySignals |
Protected Attributes inherited from makVrv::DtModelInstance | |
| DtDe & | myDe |
| std::string | myRealizedModelDefinitionName |
| DtVector | myBoundingBoxCenter |
| DtVector | myBoundingBoxExtents |
| DtVector | myBoundingBoxMinimum |
| DtVector | myBoundingBoxMaximum |
| bool | myContributesToBound |
| bool | myColorBlendingEnabled |
| float | myBlendRed |
| float | myBlendBlue |
| float | myBlendGreen |
| float | myBlendAlpha |
Friends | |
| class | DtTritonWaterImpactModel |
| Allow the waterImpact model to use our protected methods. | |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
Implementation of a Triton waterImpact model.
DtTritonWaterImpactModelInstance provides the implementation of a water impact effect represented by a DtTritonWaterImpactModel, using the Triton Ocean interface.
| makVrv::DtTritonWaterImpactModelInstance::DtTritonWaterImpactModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set whether the waterImpact is visible or not.
Implements makVrv::DtModelInstance.
|
virtual |
|
virtual |
Set/get the location of the water impact.
|
virtual |
|
virtual |
Set/get the speed of the munition as it enters the water.
|
virtual |
|
virtual |
Set/get the impact diameter.
| double makVrv::DtTritonWaterImpactModelInstance::impactDiameter | ( | ) | const |
|
virtual |
Set/get the spray scale.
| double makVrv::DtTritonWaterImpactModelInstance::sprayScale | ( | ) | const |
|
virtual |
Set/get the munition mass.
| double makVrv::DtTritonWaterImpactModelInstance::munitionMass | ( | ) | const |
| bool makVrv::DtTritonWaterImpactModelInstance::contributesToBound | ( | ) | const |
Get whether this model instance contributes to an object's overall bounding volume - in this, returns false.
Reimplemented from makVrv::DtModelInstance.
|
virtual |
Process the model definition and call createEffect()
Reimplemented from makVrv::DtModelInstance.
|
virtual |
Create the effect.
|
protectedvirtual |
Called by signal when triton is being deleted.
|
friend |
Allow the waterImpact model to use our protected methods.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |