VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
DtTerrainUnknownGeometry Class Reference

This class is used when the Terrain Area Type represents a type that is unknown, and therefore we do not know how it should be encoded or decoded. More...

Inheritance diagram for DtTerrainUnknownGeometry:
Inheritance graph
[legend]

Public Member Functions

 DtTerrainUnknownGeometry ()
 DtTerrainUnknownGeometry (const DtTerrainUnknownGeometry &orig)
 ~DtTerrainUnknownGeometry ()
DtTerrainUnknownGeometryoperator= (const DtTerrainUnknownGeometry &orig)
bool operator== (const DtTerrainUnknownGeometry &other) const
bool operator!= (const DtTerrainUnknownGeometry &other) const
virtual bool approximatelyEqual (const DtTerrainGeometry &other, double tolerance=-1.0) const
 For unknown type, same as operator==.
virtual DtTerrainAreaTypeEnum32 terrainAreaType () const
 Returns the type of the terrain area (DtTerrainAreaTypeOther).
virtual DtTerrainGeometryclone () const
 Makes a copy of this TerrainGeometry.
virtual int variantNetSize () const
 The net size of the variant portion of the record.
virtual int variantOctetBoundary () const
 The octet boundary of the variant portion of the record.
virtual void writeVariantToBuffer (char *buffer) const
 Writes the variant portion of the record to the buffer.
virtual void fillVariantFromBuffer (const char *buffer, int bufferSize, int offset)
 Reads the variant portion of the record from the buffer.
virtual void printData () const
virtual void printDataToStream (std::ostream &) const
- Public Member Functions inherited from DtTerrainGeometry
 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)
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.

Static Public Member Functions

static int theVariantOctetBoundary ()
 The octet boundary of the variant portion of the record.
static DtTerrainAreaTypeEnum32 theTerrainAreaType ()
 Returns the type of the terrain area (DtTerrainAreaTypeOther).
- Static Public Member Functions inherited from DtTerrainGeometry
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.

Additional Inherited Members

- Static Protected Attributes inherited from DtTerrainGeometry
static double theDefaultTolerance

Detailed Description

This class is used when the Terrain Area Type represents a type that is unknown, and therefore we do not know how it should be encoded or decoded.

Encoding will follow the HLA specification, which says that if the discriminant does not match a known value, the record will be padded to the octet boundary. Decoding will skip the variant portion of the record.

Constructor & Destructor Documentation

DtTerrainUnknownGeometry::DtTerrainUnknownGeometry ( )
DtTerrainUnknownGeometry::DtTerrainUnknownGeometry ( const DtTerrainUnknownGeometry orig)
DtTerrainUnknownGeometry::~DtTerrainUnknownGeometry ( )

Member Function Documentation

DtTerrainUnknownGeometry& DtTerrainUnknownGeometry::operator= ( const DtTerrainUnknownGeometry orig)
bool DtTerrainUnknownGeometry::operator== ( const DtTerrainUnknownGeometry other) const
bool DtTerrainUnknownGeometry::operator!= ( const DtTerrainUnknownGeometry other) const
virtual bool DtTerrainUnknownGeometry::approximatelyEqual ( const DtTerrainGeometry other,
double  tolerance = -1.0 
) const
virtual

For unknown type, same as operator==.

Implements DtTerrainGeometry.

virtual DtTerrainAreaTypeEnum32 DtTerrainUnknownGeometry::terrainAreaType ( ) const
inlinevirtual

Returns the type of the terrain area (DtTerrainAreaTypeOther).

This is the discriminant for the network variant record.

Implements DtTerrainGeometry.

virtual DtTerrainGeometry* DtTerrainUnknownGeometry::clone ( ) const
virtual

Makes a copy of this TerrainGeometry.

Implements DtTerrainGeometry.

virtual int DtTerrainUnknownGeometry::variantNetSize ( ) const
virtual

The net size of the variant portion of the record.

Implements DtTerrainGeometry.

virtual int DtTerrainUnknownGeometry::variantOctetBoundary ( ) const
inlinevirtual

The octet boundary of the variant portion of the record.

Implements DtTerrainGeometry.

virtual void DtTerrainUnknownGeometry::writeVariantToBuffer ( char *  buffer) const
virtual

Writes the variant portion of the record to the buffer.

Implements DtTerrainGeometry.

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

Reads the variant portion of the record from the buffer.

Implements DtTerrainGeometry.

virtual void DtTerrainUnknownGeometry::printData ( ) const
virtual

Reimplemented from DtTerrainGeometry.

virtual void DtTerrainUnknownGeometry::printDataToStream ( std::ostream &  ) const
virtual

Reimplemented from DtTerrainGeometry.

static int DtTerrainUnknownGeometry::theVariantOctetBoundary ( )
static

The octet boundary of the variant portion of the record.

static DtTerrainAreaTypeEnum32 DtTerrainUnknownGeometry::theTerrainAreaType ( )
static

Returns the type of the terrain area (DtTerrainAreaTypeOther).

This is the discriminant for the network variant record.


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


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)