![]() |
VR-Vantage 2.8 API Documentation
|

Public Member Functions | |
| DtTerrainGeometry () | |
| ~DtTerrainGeometry () | |
| DtTerrainGeometry (const DtTerrainGeometry &orig) | |
| DtTerrainGeometry & | operator= (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 DtTerrainGeometry * | clone () 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 |
| DtTerrainGeometry::DtTerrainGeometry | ( | ) |
| DtTerrainGeometry::~DtTerrainGeometry | ( | ) |
| DtTerrainGeometry::DtTerrainGeometry | ( | const DtTerrainGeometry & | orig | ) |
| 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 |
| void DtTerrainGeometry::writeToBuffer | ( | char * | buffer | ) | 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(), makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement::slot_geometryAndDataAdded(), and makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement::slot_geometryChanged().
|
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.
|
pure virtual |
Variant specific functions. Must be implemented in derived classes.
Makes a copy of this TerrainGeometry
Implemented in DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
|
pure virtual |
Returns the type of the terrain area. This is the discriminant for the network variant record.
Implemented in DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainElement::slot_geometryAndDataAdded().
|
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 DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtDynamicTerrainStateInterceptor::processChangedGeometryAndData().
|
pure virtual |
The net size of the variant portion of the record.
Implemented in DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
|
pure virtual |
The octet boundary of the variant portion of the record.
Implemented in DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
|
pure virtual |
Writes the variant portion of the record to the buffer.
Implemented in DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
|
pure virtual |
Reads the variant portion of the record from the buffer.
Implemented in DtTerrainCraterGeometry, DtTerrainLinearGeometry, DtTerrainPolygonalGeometry, DtTerrainCircularGeometry, and DtTerrainUnknownGeometry.
|
virtual |
|
virtual |
|
static |
Returns the terrain area type as encoded into the given buffer.
|
static |
The octet boundary for a complete geometry record.
Should be the maximum of all variant octet boundaries.
|
static |
Returns the default tolerance value used by approximatelyEqual.
|
static |
Sets the default tolerance value used by approximatelyEqual.
|
staticprotected |