VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtOceanStateInterface Class Reference
Inheritance diagram for makVrv::DtOceanStateInterface:
Inheritance graph
[legend]

Public Member Functions

 DtOceanStateInterface (DtDe &de)
 CTOR.
virtual ~DtOceanStateInterface ()
 Virtual DTOR.
virtual bool getIsUnderwater () const
 Water visibility when below water.
virtual bool isOverWater (const DtVector &localPosition, bool isVisible=true)
 Returns whether we are currently over water.
virtual float getMaximumWaveHeight ()
 Returns maximum wave height just based on the sea state.
virtual float seaLevel () const
 Returns the current sea level.

Protected Attributes

DtDemyDe

Constructor & Destructor Documentation

makVrv::DtOceanStateInterface::DtOceanStateInterface ( DtDe de)

CTOR.

virtual makVrv::DtOceanStateInterface::~DtOceanStateInterface ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual bool makVrv::DtOceanStateInterface::getIsUnderwater ( ) const
virtual

Water visibility when below water.

Reimplemented in makVrv::DtTritonManager.

virtual bool makVrv::DtOceanStateInterface::isOverWater ( const DtVector localPosition,
bool  isVisible = true 
)
virtual

Returns whether we are currently over water.

This can't be implemented correctly until we have coastal boundaries. For now, we use the returned height of an terrain intersect call - sea level is water, anything higher is not. The isVisible flag allows for an optimization when Triton ocean is used. The optimization is used by default; the isVisible flag says that the query position is close enought to an observer so that a height map should be available for use. This is often the case when doing intersections involving objects/effects that are LOD's in/out; if the object is close enough to an observer to be of interest (a rotor wash or wake, say) then it can use the height map optimization. If you do not know if the query position is close to an observer, than set isVisible to false, in which case the terrain intersection method will be used.

Reimplemented in makVrv::DtTritonManager.

virtual float makVrv::DtOceanStateInterface::getMaximumWaveHeight ( )
virtual

Returns maximum wave height just based on the sea state.

Reimplemented in makVrv::DtTritonManager.

virtual float makVrv::DtOceanStateInterface::seaLevel ( ) const
virtual

Returns the current sea level.

Reimplemented in makVrv::DtTritonManager.

Member Data Documentation

DtDe& makVrv::DtOceanStateInterface::myDe
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)