VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
featureProcess.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2022 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 
19 #include <string>
20 
21 namespace makVrv
22 {
23  class DtDe;
24 }
25 
26 namespace makVrf
27 {
28  class DtFeatureRequest;
29  class DtDebugDrawRendererDriver;
30 
33  {
34 
35  protected:
36 
38  enum ProcessStep { WAITING, RECEIVED_REQUEST, END_REQUEST, SEND_RESPONSE, END_SUCCESS, END_ERROR };
39 
40 
41  public:
42 
46  virtual ~DtFeatureProcess();
47 
49  virtual void tick(DtDebugDrawRendererDriver* driver);
50 
52  virtual bool isDone();
53 
54  protected:
55 
57  virtual void beginRequest(DtDebugDrawRendererDriver* driver);
58 
60  virtual void respondError(std::string errorMsg);
61 
63  virtual void sendResponse();
64 
66  virtual void drawLines(const std::string& name, osg::ref_ptr<osg::Node> transform);
67 
69  virtual void drawAreals (const std::string& name, osg::ref_ptr<osg::Node> transform);
70 
72  virtual void initTransorm(DtPoint& origin, osg::ref_ptr<osg::Node> transform);
73 
76 
79 
82 
85 
87  //bool myOriginSet;
88  };
89 
92  {
93 
94  public:
95 
98  virtual ~DtFeatureProcessCreator();
99 
101  virtual DtBaseProcess* create(DtBaseMessage* message);
102 
103  private:
105  };
106 
107 
108 }
DtFeatureProcessCreator(makVrv::DtDe &de)
constructor and destructor
Creator for the DtFeatureProcess class.
Definition: featureProcess.h:91
DtFeatureRequest * myRequest
brief Message request
Definition: featureProcess.h:78
ProcessStep myProcessStep
Process status.
Definition: featureProcess.h:75
Definition: featureProcess.h:38
voidpf uLong int origin
Definition: ioapi.h:42
ProcessStep
steps in the image capture process
Definition: featureProcess.h:38
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
DtFeatureRequest is a message to draw/delete feature information from the debugDrawManager to the deb...
Definition: vrfFeatureMessage.h:26
DtBaseProcess is the base class for all messages processes that can be sent between the server and th...
Definition: baseProcess.h:32
osg::ref_ptr< osg::MatrixTransform > myTransform
top transform
Definition: featureProcess.h:81
virtual DtBaseProcess * create(DtBaseMessage *message)
create a DtFeatureProcessCreator and return it
base class for all process creators, interface used to create classes that can be passed to the Proce...
Definition: baseProcess.h:77
DtPoint myOrigin
origin
Definition: featureProcess.h:84
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
makVrv::DtDe & myDe
Definition: featureProcess.h:104
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
Process responsible to draw feature information on screen.
Definition: featureProcess.h:32
Definition: point.h:34
** Copyright (c) 2020 MAK Technologies, Inc. ** All rights reserved.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)