VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navMeshProcess.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
9 #pragma once
10 
13 
14 #include <osg/MatrixTransform>
15 #include <osg/Geode>
16 
17 #include "geometry/point.h"
18 #include "geometry/surface.h"
19 
20 #include <string>
21 
22 namespace makVrv
23 {
24  class DtDe;
25 }
26 
27 namespace makVrf
28 {
29  class DtNavMeshAreaRequest;
30  class DtDebugDrawRendererDriver;
31 
34  {
35 
36  protected:
37 
39  enum ProcessStep { WAITING, RECEIVED_REQUEST, END_REQUEST, SEND_RESPONSE, END_SUCCESS, END_ERROR };
40 
41 
42  public:
43 
47  virtual ~DtNavMeshProcess();
48 
50  virtual void tick(DtDebugDrawRendererDriver* driver);
51 
53  virtual bool isDone();
54 
55  protected:
56 
58  virtual void beginRequest(DtDebugDrawRendererDriver* driver);
59 
61  virtual void respondError(std::string errorMsg);
62 
64  virtual void sendResponse();
65 
67  virtual void drawNavMesh();
68 
72  virtual void drawNavMeshWithColors(float alpha);
73 
75  virtual void initTransorm(DtPoint& origin);
76 
79 
82 
85 
88 
91  };
92 
95  {
96 
97  public:
98 
101  virtual ~DtNavMeshProcessCreator();
102 
104  virtual DtBaseProcess* create(DtBaseMessage* message);
105 
106  private:
108  };
109 
110 
111 }
DtNavMeshProcessCreator(makVrv::DtDe &de)
constructor and destructor
DtNavMeshAreaRequest * myRequest
brief Message request
Definition: navMeshProcess.h:81
makVrv::DtDe & myDe
Definition: navMeshProcess.h:107
voidpf uLong int origin
Definition: ioapi.h:42
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
ProcessStep myProcessStep
Process status.
Definition: navMeshProcess.h:78
bool myOriginSet
was the origin set
Definition: navMeshProcess.h:90
ProcessStep
steps in the image capture process
Definition: navMeshProcess.h:39
DtBaseProcess is the base class for all messages processes that can be sent between the server and th...
Definition: baseProcess.h:32
DtPoint myOrigin
origin
Definition: navMeshProcess.h:87
Process responsible to draw lines and triangles in a certain nav mesh area.
Definition: navMeshProcess.h:33
base class for all process creators, interface used to create classes that can be passed to the Proce...
Definition: baseProcess.h:77
DtDebugDrawRenderer is the main class that controls the processing flow of the DebugDrawRenderer. Users should not need to create this class.
Definition: debugDrawRendererDriver.h:33
#define DT_DLL_DEBUGDRAWRENDERER
Definition: debugDrawRendererExport.h:19
Definition: navMeshProcess.h:39
Creator for the DtNavMeshProcess class.
Definition: navMeshProcess.h:94
osg::ref_ptr< osg::MatrixTransform > myTransform
top transform
Definition: navMeshProcess.h:84
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtNavMeshAreaRequest is a message to draw/delete nav mesh information from the debugDrawManager to th...
Definition: vrfNavMeshMessage.h:27
Definition: point.h:34
** Copyright (c) 2020 MAK Technologies, Inc. ** All rights reserved.
virtual DtBaseProcess * create(DtBaseMessage *message)
create a DtNavMeshProcessCreator and return it

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)