VR-Vantage 2.3 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Protected Attributes
DtTerrainGeometry Class Reference
Inheritance diagram for DtTerrainGeometry:
Inheritance graph
[legend]

Public Member Functions

 DtTerrainGeometry ()
 ~DtTerrainGeometry ()
 DtTerrainGeometry (const DtTerrainGeometry &orig)
DtTerrainGeometryoperator= (const DtTerrainGeometry &orig)
bool operator== (const DtTerrainGeometry &other) const
bool operator!= (const DtTerrainGeometry &other) const
int netSize () const
virtual unsigned int getPaddingSize (DtU64 byteOffset, unsigned int boundary) const
void writeToBuffer (char *buffer) const
void fillFromBuffer (const char *buffer, int bufferSize, int offset)
virtual void printData () const
virtual void printDataToStream (std::ostream &) const
template<class Variant >
const Variant * variant () const
 If this Terrain Geometry object matches the given variant type, returns a pointer to this object of the requested variant type.
template<class Variant >
Variant * variant ()
 If this Terrain Geometry object matches the given variant type, returns a pointer to this object of the requested variant type.
virtual DtTerrainGeometryclone () const =0
 Variant specific functions. Must be implemented in derived classes.
virtual DtTerrainAreaTypeEnum32 terrainAreaType () const =0
 Returns the type of the terrain area. This is the discriminant for the network variant record.
virtual bool approximatelyEqual (const DtTerrainGeometry &other, double tolerance=-1.0) const =0
 Determines if the values that define the geometry are approximately equal (within tolerance).
virtual int variantNetSize () const =0
 The net size of the variant portion of the record.
virtual int variantOctetBoundary () const =0
 The octet boundary of the variant portion of the record.
virtual void writeVariantToBuffer (char *buffer) const =0
 Writes the variant portion of the record to the buffer.
virtual void fillVariantFromBuffer (const char *buffer, int bufferSize, int offset)=0
 Reads the variant portion of the record from the buffer.

Static Public Member Functions

static DtTerrainAreaTypeEnum32 terrainAreaTypeFromBuffer (const char *buffer, int bufferSize, int offset)
 Returns the terrain area type as encoded into the given buffer.
static int octetBoundary ()
 The octet boundary for a complete geometry record.
static double defaultTolerance ()
 Returns the default tolerance value used by approximatelyEqual.
static void setDefaultTolerance (double tolerance)
 Sets the default tolerance value used by approximatelyEqual.

Static Protected Attributes

static double theDefaultTolerance

Constructor & Destructor Documentation

DtTerrainGeometry::DtTerrainGeometry ( )
DtTerrainGeometry::~DtTerrainGeometry ( )
DtTerrainGeometry::DtTerrainGeometry ( const DtTerrainGeometry orig)

Member Function Documentation

DtTerrainGeometry& DtTerrainGeometry::operator= ( const DtTerrainGeometry orig)
bool DtTerrainGeometry::operator== ( const DtTerrainGeometry other) const
bool DtTerrainGeometry::operator!= ( const DtTerrainGeometry other) const
int DtTerrainGeometry::netSize ( ) const
virtual unsigned int DtTerrainGeometry::getPaddingSize ( DtU64  byteOffset,
unsigned int  boundary 
) const
virtual
void DtTerrainGeometry::writeToBuffer ( char *  buffer) const
void DtTerrainGeometry::fillFromBuffer ( const char *  buffer,
int  bufferSize,
int  offset 
)
template<class Variant >
const Variant* DtTerrainGeometry::variant ( ) const
inline

If this Terrain Geometry object matches the given variant type, returns a pointer to this object of the requested variant type.

If not, returns a null pointer.

Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainStateListener::printGeometry(), and makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement::slot_geometryAndDataAdded().

template<class Variant >
Variant* DtTerrainGeometry::variant ( )
inline

If this Terrain Geometry object matches the given variant type, returns a pointer to this object of the requested variant type.

If not, returns a null pointer.

virtual DtTerrainGeometry* DtTerrainGeometry::clone ( ) const
pure virtual

Variant specific functions. Must be implemented in derived classes.

Makes a copy of this TerrainGeometry

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

virtual DtTerrainAreaTypeEnum32 DtTerrainGeometry::terrainAreaType ( ) const
pure virtual

Returns the type of the terrain area. This is the discriminant for the network variant record.

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

virtual bool DtTerrainGeometry::approximatelyEqual ( const DtTerrainGeometry other,
double  tolerance = -1.0 
) const
pure virtual

Determines if the values that define the geometry are approximately equal (within tolerance).

If tolerance is negative, the value returned by defaultTolerance() is used.

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainStateInterceptor::processChangedGeometryAndData().

virtual int DtTerrainGeometry::variantNetSize ( ) const
pure virtual

The net size of the variant portion of the record.

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

virtual int DtTerrainGeometry::variantOctetBoundary ( ) const
pure virtual

The octet boundary of the variant portion of the record.

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

virtual void DtTerrainGeometry::writeVariantToBuffer ( char *  buffer) const
pure virtual

Writes the variant portion of the record to the buffer.

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

virtual void DtTerrainGeometry::fillVariantFromBuffer ( const char *  buffer,
int  bufferSize,
int  offset 
)
pure virtual

Reads the variant portion of the record from the buffer.

Implemented in DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.

virtual void DtTerrainGeometry::printData ( ) const
virtual
virtual void DtTerrainGeometry::printDataToStream ( std::ostream &  ) const
virtual
static DtTerrainAreaTypeEnum32 DtTerrainGeometry::terrainAreaTypeFromBuffer ( const char *  buffer,
int  bufferSize,
int  offset 
)
static

Returns the terrain area type as encoded into the given buffer.

static int DtTerrainGeometry::octetBoundary ( )
static

The octet boundary for a complete geometry record.

Should be the maximum of all variant octet boundaries.

static double DtTerrainGeometry::defaultTolerance ( )
static

Returns the default tolerance value used by approximatelyEqual.

static void DtTerrainGeometry::setDefaultTolerance ( double  tolerance)
static

Sets the default tolerance value used by approximatelyEqual.

Member Data Documentation

double DtTerrainGeometry::theDefaultTolerance
staticprotected

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


Copyright © 2005-2018 VT MAK. All Rights Reserved (www.mak.com)