VR-Forces 5.0.3 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 Types | Protected Member Functions | Protected Attributes
makVrf::DtNavMeshProcess Class Reference

Process responsible to draw lines and triangles in a certain nav mesh area.

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

Public Member Functions

 DtNavMeshProcess (makVrv::DtDe &de, DtNavMeshAreaRequest *request)
 
virtual ~DtNavMeshProcess ()
 
virtual void tick (DtDebugDrawRendererDriver *driver)
 
virtual bool isDone ()
 
- Public Member Functions inherited from makVrf::DtBaseProcess
 DtBaseProcess (makVrv::DtDe &de)
 
virtual ~DtBaseProcess ()
 
virtual DtBaseMessageresponse ()
 

Protected Types

enum  ProcessStep {
  WAITING, RECEIVED_REQUEST, END_REQUEST, SEND_RESPONSE,
  END_SUCCESS, END_ERROR
}
 

Protected Member Functions

virtual void beginRequest (DtDebugDrawRendererDriver *driver)
 
virtual void respondError (std::string errorMsg)
 
virtual void sendResponse ()
 
virtual void drawNavMesh ()
 
virtual void drawNavMeshWithColors (float alpha)
 
virtual void initTransorm (DtPoint &origin)
 
- Protected Member Functions inherited from makVrf::DtBaseProcess
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)
 

Protected Attributes

ProcessStep myProcessStep
 
DtNavMeshAreaRequestmyRequest
 
osg::ref_ptr
< osg::MatrixTransform > 
myTransform
 
DtPoint myOrigin
 
bool myOriginSet
 
- Protected Attributes inherited from makVrf::DtBaseProcess
DtDebugDrawColorsmyDebugDrawColors
 
makVrv::DtDemyDe
 
DtBaseMessagemyResponse
 

Additional Inherited Members

- Static Protected Attributes inherited from makVrf::DtBaseProcess
static DtFilename theDebugDrawColorsFilename
 

Member Enumeration Documentation

steps in the image capture process

Enumerator
WAITING 
RECEIVED_REQUEST 
END_REQUEST 
SEND_RESPONSE 
END_SUCCESS 
END_ERROR 

Constructor & Destructor Documentation

makVrf::DtNavMeshProcess::DtNavMeshProcess ( makVrv::DtDe de,
DtNavMeshAreaRequest request 
)

CTOR/DTOR The constructor creates a copy of the triangle request.

virtual makVrf::DtNavMeshProcess::~DtNavMeshProcess ( )
virtual

Member Function Documentation

virtual void makVrf::DtNavMeshProcess::tick ( DtDebugDrawRendererDriver driver)
virtual

Tick (tick only once by message)

Implements makVrf::DtBaseProcess.

virtual bool makVrf::DtNavMeshProcess::isDone ( )
virtual

returns true once the process reaches one of the END states

Implements makVrf::DtBaseProcess.

virtual void makVrf::DtNavMeshProcess::beginRequest ( DtDebugDrawRendererDriver driver)
protectedvirtual

draw the triangles

virtual void makVrf::DtNavMeshProcess::respondError ( std::string  errorMsg)
protectedvirtual

send an error response

virtual void makVrf::DtNavMeshProcess::sendResponse ( )
protectedvirtual

send a response to the client (success or failure)

virtual void makVrf::DtNavMeshProcess::drawNavMesh ( )
protectedvirtual

create the nav mesh

virtual void makVrf::DtNavMeshProcess::drawNavMeshWithColors ( float  alpha)
protectedvirtual

create the triangles in osg format for each nav mesh colorized based on the navtag Alpha value from the slider overwrite the file

virtual void makVrf::DtNavMeshProcess::initTransorm ( DtPoint origin)
protectedvirtual

init the origin and the top transform

Member Data Documentation

ProcessStep makVrf::DtNavMeshProcess::myProcessStep
protected

Process status.

DtNavMeshAreaRequest* makVrf::DtNavMeshProcess::myRequest
protected

brief Message request

osg::ref_ptr<osg::MatrixTransform> makVrf::DtNavMeshProcess::myTransform
protected

top transform

DtPoint makVrf::DtNavMeshProcess::myOrigin
protected

origin

bool makVrf::DtNavMeshProcess::myOriginSet
protected

was the origin set


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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)