VR-Forces 4.8 Class Documentation
 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::DtTerrainAreaProcess Class Reference

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

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

Public Member Functions

 DtTerrainAreaProcess (makVrv::DtDe &de, DtTerrainAreaRequest *request)
 CTOR/DTOR The constructor creates a copy of the triangle request. More...
 
virtual ~DtTerrainAreaProcess ()
 
virtual void tick (DtDebugDrawRendererDriver *driver)
 Tick (tick only once by message) More...
 
virtual bool isDone ()
 returns true once the process reaches one of the END states More...
 
- Public Member Functions inherited from makVrf::DtBaseProcess
 DtBaseProcess (makVrv::DtDe &de)
 CTOR/DTOR. More...
 
virtual ~DtBaseProcess ()
 
virtual DtBaseMessageresponse ()
 return the response for the process More...
 

Protected Types

enum  ProcessStep {
  WAITING, RECEIVED_REQUEST, END_REQUEST, SEND_RESPONSE,
  END_SUCCESS, END_ERROR
}
 steps in the image capture process More...
 

Protected Member Functions

virtual void beginRequest (DtDebugDrawRendererDriver *driver)
 draw the triangles More...
 
virtual void respondError (std::string errorMsg)
 send an error response More...
 
virtual void sendResponse ()
 send a response to the client (success or failure) More...
 
virtual void drawTerrainSkin ()
 create the triangles in osg format for each terrain polygon More...
 
virtual void drawTerrainSkinWithColors (float alpha, bool drawSoilType=true)
 create the triangles in osg format for each terrain polygon colorized based on the soil type or soil roughness Alpha value from the slider overwrite the file More...
 
virtual void drawNormals ()
 create the normals for the triangles in osg format return the origin (we use the first triangle received) More...
 
virtual void drawLines (const std::string &name)
 create the lines in osg format More...
 
virtual void drawSpheres (const std::string &name, osg::Vec4 &color)
 create the sphere in osg format More...
 
virtual void initTransorm (DtPoint &origin)
 init the origin and the top transform More...
 
- Protected Member Functions inherited from makVrf::DtBaseProcess
virtual void roughnessSoilTypeColor (DtRoughnessSoilType type, float &r, float &g, float &b, float &a)
 return the roughness soil type color More...
 
virtual void soilTypeColor (DtSoilType type, float &r, float &g, float &b, float &a)
 return the soil type color More...
 
virtual void navMeshTypeColor (DtString type, float &r, float &g, float &b, float &a)
 return the navmesh type color More...
 
virtual void error (float &r, float &g, float &b, float &a)
 error reading the colors More...
 

Protected Attributes

ProcessStep myProcessStep
 Process status. More...
 
DtTerrainAreaRequestmyRequest
 brief Message request More...
 
osg::ref_ptr
< osg::MatrixTransform > 
myTransform
 top transform More...
 
DtPoint myOrigin
 origin More...
 
bool myOriginSet
 was the origin set More...
 
- Protected Attributes inherited from makVrf::DtBaseProcess
DtDebugDrawColorsmyDebugDrawColors
 Colors from the csv file. More...
 
makVrv::DtDemyDe
 
DtBaseMessagemyResponse
 

Additional Inherited Members

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

Detailed Description

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

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::DtTerrainAreaProcess::DtTerrainAreaProcess ( makVrv::DtDe de,
DtTerrainAreaRequest request 
)

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

virtual makVrf::DtTerrainAreaProcess::~DtTerrainAreaProcess ( )
virtual

Member Function Documentation

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

Tick (tick only once by message)

Implements makVrf::DtBaseProcess.

virtual bool makVrf::DtTerrainAreaProcess::isDone ( )
virtual

returns true once the process reaches one of the END states

Implements makVrf::DtBaseProcess.

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

draw the triangles

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

send an error response

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

send a response to the client (success or failure)

virtual void makVrf::DtTerrainAreaProcess::drawTerrainSkin ( )
protectedvirtual

create the triangles in osg format for each terrain polygon

virtual void makVrf::DtTerrainAreaProcess::drawTerrainSkinWithColors ( float  alpha,
bool  drawSoilType = true 
)
protectedvirtual

create the triangles in osg format for each terrain polygon colorized based on the soil type or soil roughness Alpha value from the slider overwrite the file

virtual void makVrf::DtTerrainAreaProcess::drawNormals ( )
protectedvirtual

create the normals for the triangles in osg format return the origin (we use the first triangle received)

virtual void makVrf::DtTerrainAreaProcess::drawLines ( const std::string &  name)
protectedvirtual

create the lines in osg format

virtual void makVrf::DtTerrainAreaProcess::drawSpheres ( const std::string &  name,
osg::Vec4 &  color 
)
protectedvirtual

create the sphere in osg format

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

init the origin and the top transform

Member Data Documentation

ProcessStep makVrf::DtTerrainAreaProcess::myProcessStep
protected

Process status.

DtTerrainAreaRequest* makVrf::DtTerrainAreaProcess::myRequest
protected

brief Message request

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

top transform

DtPoint makVrf::DtTerrainAreaProcess::myOrigin
protected

origin

bool makVrf::DtTerrainAreaProcess::myOriginSet
protected

was the origin set


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)