![]() |
VR-Forces Developer's Guide
|
Process responsible to draw lines and triangles in a certain area.

Public Member Functions | |
| DtTerrainAreaProcess (makVrv::DtDe &de, DtTerrainAreaRequest *request) | |
| virtual | ~DtTerrainAreaProcess () override |
| virtual void | tick (DtDebugDrawRendererDriver *driver) override |
| virtual bool | isDone () override |
Public Member Functions inherited from makVrf::DtBaseProcess | |
| DtBaseProcess (makVrv::DtDe &de) | |
| virtual | ~DtBaseProcess () |
| virtual DtBaseMessage * | response () |
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 |
| DtTerrainAreaRequest * | myRequest |
| osg::ref_ptr < osg::MatrixTransform > | myTransform |
| DtPoint | myOrigin |
| bool | myOriginSet |
Protected Attributes inherited from makVrf::DtBaseProcess | |
| DtDebugDrawColors * | myDebugDrawColors |
| makVrv::DtDe & | myDe |
| DtBaseMessage * | myResponse |
Additional Inherited Members | |
Static Protected Attributes inherited from makVrf::DtBaseProcess | |
| static DtFilename | theDebugDrawColorsFilename |
|
protected |
| makVrf::DtTerrainAreaProcess::DtTerrainAreaProcess | ( | makVrv::DtDe & | de, |
| DtTerrainAreaRequest * | request | ||
| ) |
CTOR/DTOR The constructor creates a copy of the triangle request.
|
overridevirtual |
|
overridevirtual |
Tick (tick only once by message)
Implements makVrf::DtBaseProcess.
|
overridevirtual |
returns true once the process reaches one of the END states
Implements makVrf::DtBaseProcess.
|
protectedvirtual |
draw the triangles
|
protectedvirtual |
send an error response
|
protectedvirtual |
send a response to the client (success or failure)
|
protectedvirtual |
create the triangles in osg format for each terrain polygon
|
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
|
protectedvirtual |
create the normals for the triangles in osg format return the origin (we use the first triangle received)
|
protectedvirtual |
create the lines in osg format
|
protectedvirtual |
create the lines/points in osg format (fade to opaque)
|
protectedvirtual |
create the lines and Points in osg format
|
protectedvirtual |
create the sphere in osg format
|
protectedvirtual |
init the origin and the top transform
|
protected |
Process status.
|
protected |
brief Message request
|
protected |
top transform
|
protected |
origin
|
protected |
was the origin set