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::DtTerrainAreaProcess Class Reference

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

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

Public Member Functions

 DtTerrainAreaProcess (makVrv::DtDe &de, DtTerrainAreaRequest *request)
 
virtual ~DtTerrainAreaProcess ()
 
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 drawTerrainSkin ()
 
virtual void drawTerrainSkinWithColors (float alpha, bool drawSoilType=true)
 
virtual void drawNormals ()
 
virtual void drawLines (const std::string &name)
 
virtual void drawLinesPointsAndFade (const std::string &name)
 
virtual void drawLinesAndPoints (const std::string &name)
 
virtual void drawSpheres (const std::string &name, osg::Vec4 &color)
 
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
 
DtTerrainAreaRequestmyRequest
 
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::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::drawLinesPointsAndFade ( const std::string &  name)
protectedvirtual

create the lines/points in osg format (fade to opaque)

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

create the lines and Points 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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)