VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDiGuyFunctionRegistration.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvDiGuy/vrvDiGuy.h>
13 #include <string>
14 
15 namespace makVrv
16 {
17  class DtDe;
18 
23  {
24  public:
25  //Get the di guy registration.
26  //The IG pointer is only needed for the first call which is executed
27  //automatically in makVrv::igDtGuy::init(DtDe& de) for the module.
28  static DtDiGuyFunctionRegistration& instance(DtDe* de);
29  static DtDiGuyFunctionRegistration& nonVisualInstance(const std::string& dataPath );
30 
32 
34  void registerIg(DtDe& de);
35 
37  void unregisterIg();
38 
40  DtDe* currentIg();
41 
43  void initialize();
44  protected:
45 
47  DtDiGuyFunctionRegistration(const std::string& dataPath);
48 
50  bool myInit;
51  std::string myAlternateDataPath; // use this if myDe is null
52  };
53 }
DtDe * myDe
Definition: DtDiGuyFunctionRegistration.h:49
Contains DLL export macros.
std::string myAlternateDataPath
Definition: DtDiGuyFunctionRegistration.h:51
bool myInit
Definition: DtDiGuyFunctionRegistration.h:50
The necessary global registration object to allow DiGuy to support Multiple instances.
Definition: DtDiGuyFunctionRegistration.h:22
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
#define DT_DLL_VRVDIGUY
Definition: vrvDiGuy.h:21

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)