VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
makVrf::DtBaseProcess Class Referenceabstract

DtBaseProcess is the base class for all messages processes that can be sent between the server and the client.

Inheritance diagram for makVrf::DtBaseProcess:
Inheritance graph
[legend]

Public Member Functions

 DtBaseProcess (makVrv::DtDe &de)
 
virtual ~DtBaseProcess ()
 
virtual void tick (DtDebugDrawRendererDriver *driver)=0
 
virtual bool isDone ()=0
 
virtual DtBaseMessage * response ()
 

Protected Member Functions

virtual void roughnessSoilTypeColor (DtRoughnessSoilType type, float &r, float &g, float &b, float &a)
 
virtual void soilTypeColor (DtSoilType type, float &r, float &g, float &b, float &a)
 
virtual void navMeshTypeColor (DtString type, float &r, float &g, float &b, float &a)
 
virtual void error (float &r, float &g, float &b, float &a)
 
DtPoint geocentricToDatabase (const DtPoint &geocentric) const
 
void geocentricToDatabase (DtVector &point) const
 

Protected Attributes

DtDebugDrawColors * myDebugDrawColors
 
makVrv::DtDe & myDe
 
DtBaseMessage * myResponse
 

Static Protected Attributes

static DtFilename theDebugDrawColorsFilename
 

Constructor & Destructor Documentation

makVrf::DtBaseProcess::DtBaseProcess ( makVrv::DtDe &  de)

CTOR/DTOR.

virtual makVrf::DtBaseProcess::~DtBaseProcess ( )
virtual

Member Function Documentation

virtual void makVrf::DtBaseProcess::tick ( DtDebugDrawRendererDriver *  driver)
pure virtual

Tick needs to be called every frame to advance the capture process.

Implemented in makVrf::DtNavMeshProcess, makVrf::DtFeatureProcess, and makVrf::DtTerrainAreaProcess.

virtual bool makVrf::DtBaseProcess::isDone ( )
pure virtual
virtual DtBaseMessage* makVrf::DtBaseProcess::response ( )
virtual

return the response for the process

virtual void makVrf::DtBaseProcess::roughnessSoilTypeColor ( DtRoughnessSoilType  type,
float &  r,
float &  g,
float &  b,
float &  a 
)
protectedvirtual

return the roughness soil type color

virtual void makVrf::DtBaseProcess::soilTypeColor ( DtSoilType  type,
float &  r,
float &  g,
float &  b,
float &  a 
)
protectedvirtual

return the soil type color

virtual void makVrf::DtBaseProcess::navMeshTypeColor ( DtString  type,
float &  r,
float &  g,
float &  b,
float &  a 
)
protectedvirtual

return the navmesh type color

virtual void makVrf::DtBaseProcess::error ( float &  r,
float &  g,
float &  b,
float &  a 
)
protectedvirtual

error reading the colors

DtPoint makVrf::DtBaseProcess::geocentricToDatabase ( const DtPoint &  geocentric) const
protected

Convert a point from geocentric (ECEF) coordinates into this renderer scene's database coordinate system. Debug-draw triangles are received in geocentric coordinates - a projection-independent frame - and the VR-Vantage scene graph (sgEnvironmentRoot) is in the projected database frame, so they must be converted before being placed. This makes the geometry line up with the GUI terrain even when the sim and GUI use terrains with different projections.

void makVrf::DtBaseProcess::geocentricToDatabase ( DtVector &  point) const
protected

Convert a point from geocentric (ECEF) coordinates into this renderer scene's database coordinate system. Debug-draw triangles are received in geocentric coordinates - a projection-independent frame - and the VR-Vantage scene graph (sgEnvironmentRoot) is in the projected database frame, so they must be converted before being placed. This makes the geometry line up with the GUI terrain even when the sim and GUI use terrains with different projections.

Member Data Documentation

DtFilename makVrf::DtBaseProcess::theDebugDrawColorsFilename
staticprotected
DtDebugDrawColors* makVrf::DtBaseProcess::myDebugDrawColors
protected

Colors from the csv file.

makVrv::DtDe& makVrf::DtBaseProcess::myDe
protected
DtBaseMessage* makVrf::DtBaseProcess::myResponse
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)