VR-Forces 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) 2025 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 
26  // Get the di guy registration.
27  // The IG pointer is only needed for the first call which is executed
28  // automatically in makVrv::igDtGuy::init(DtDe& de) for the module.
29  static DtDiGuyFunctionRegistration& instance( DtDe* de );
30  static DtDiGuyFunctionRegistration& nonVisualInstance( const std::string& dataPath );
31 
33 
35  void registerIg( DtDe& de );
36 
38  void unregisterIg();
39 
41  DtDe* currentIg();
42 
44  void initialize();
45 
46  protected:
47 
49  DtDiGuyFunctionRegistration( const std::string& dataPath );
50 
51  static int diguyLoggingRedirectCallback( int notifyLevel, const char* message, void* usr );
52 
53  protected:
54 
56  bool myInit;
58  std::string myAlternateDataPath; // use this if myDe is null
59 
60  };
61 
62 }
DtDe * myDe
Definition: DtDiGuyFunctionRegistration.h:55
Contains DLL export macros.
std::string myAlternateDataPath
Definition: DtDiGuyFunctionRegistration.h:58
bool myInit
Definition: DtDiGuyFunctionRegistration.h:56
The necessary global registration object to allow DiGuy to support Multiple instances.
Definition: DtDiGuyFunctionRegistration.h:22
int myLogHandle
Definition: DtDiGuyFunctionRegistration.h:57
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:76
#define DT_DLL_VRVDIGUY
Definition: vrvDiGuy.h:21

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)