VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProctor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 #include <map>
13 
14 namespace makVrv
15 {
16  class DtDe;
17  class DtMessage;
18 
22  {
23  public:
24 
26  enum ProctorId
27  {
29  ProctorId_DtDeProctor = 32,
30  ProctorId_DtSceneProctor = 33,
31  ProctorId_DtWindowProctor = 34,
32  ProctorID_DtChanneProctor = 35,
33  ProctorID_DtDisplayEngineProctor = 36,
34  ProctorID_DtDeSharedStateProctor = 37,
35 
37  ProctorId_UserStart = 0x8000,
38 
40  end_ProctorId = 0x10000
41  };
42 
44  DtProctor(DtDe&,unsigned short classId);
45 
47  virtual ~DtProctor();
48 
50  void executeFunction(DtMessage& msg);
51 
53  DtDe& de();
54 
55  protected:
56 
57  typedef void (*MessageFunction)(DtProctor*,DtMessage&);
58 
60  void registerFunction(unsigned int functionId,MessageFunction func);
61 
62  typedef std::map<int,MessageFunction> FunctionMap;
65  unsigned short myClassId;
66 
67  };
68 }
69 
ProctorId
Ids used for proctors. Each proctor class must have a unique id.
Definition: DtProctor.h:26
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
Base class for Proctor classes.
Definition: DtProctor.h:21
DtDe & myDe
Definition: DtProctor.h:64
FunctionMap myFunctions
Definition: DtProctor.h:63
unsigned short myClassId
Definition: DtProctor.h:65
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
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
std::map< int, MessageFunction > FunctionMap
Definition: DtProctor.h:62
Contains DLL export macros.

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)