VR-Forces 4.8 Class Documentation
 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) 2019 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 initTransorm(DtPoint& origin, osg::ref_ptr<osg::Node> transform);
70 
73 
76 
79 
82 
84  //bool myOriginSet;
85  };
86 
89  {
90 
91  public:
92 
95  virtual ~DtFeatureProcessCreator();
96 
98  virtual DtBaseProcess* create(DtBaseMessage* message);
99 
100  private:
102  };
103 
104 
105 }
DtFeatureProcessCreator(makVrv::DtDe &de)
constructor and destructor
Creator for the DtFeatureProcess class.
Definition: featureProcess.h:88
DtFeatureRequest * myRequest
brief Message request
Definition: featureProcess.h:75
ProcessStep myProcessStep
Process status.
Definition: featureProcess.h:72
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:78
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:81
DtDebugDrawRenderer is the main class that controls the processing flow of the DebugDrawRenderer.
Definition: debugDrawRendererDriver.h:33
#define DT_DLL_DEBUGDRAWRENDERER
Definition: debugDrawRendererExport.h:19
makVrv::DtDe & myDe
Definition: featureProcess.h:101
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Process responsible to draw feature information on screen.
Definition: featureProcess.h:32
Definition: point.h:34
** Copyright (c) 2020 MAK Technologies, Inc.

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)