VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSwitchStateMapper.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
14 
15 namespace makVrv
16 {
17  class DtOsgArticulatedModel;
18 
24  public DtVirtualBaseClass
25  {
26  public:
27 
30 
32  virtual ~DtSwitchStateMapper();
33 
36  virtual void configure(osg::Node* n, DtOsgArticulatedModel* osgArticulatedModel, const std::string& modelDefName, const rapidjson::Value& jsonData);
37 
38  public:
39  // @{
42  static const char* theSwitchStateMapperFeatureName;
43  // @}
44 
45  private:
48 
51 
53  DtSwitchStateMapper& operator=(const DtSwitchStateMapper);
54 
55  protected:
56 
58 
60  std::string myFeatureName;
61 
62  };
63 
67  {
68 
69  public:
70 
73 
75  virtual ~DtSwitchStateMapperCreator();
76 
78  virtual DtSwitchStateMapper* create(DtDe& de, osg::Node* node, DtOsgArticulatedModel* osgArticulatedModel,
79  const rapidjson::Value& jsonObject, const std::string& modelDefName,
80  const DtElementID elementId, const DtUniqueID id
81  , const unsigned int nodeTypeIndex);
82 
83  };
84 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtSwitchStateMapperCreator class.
Definition: DtSwitchStateMapper.h:66
std::string myFeatureName
The name of the feature in the .meta file.
Definition: DtSwitchStateMapper.h:60
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
An articulated model manipulator for controlling an articulated model. Supports indirect rendering of...
Definition: DtOsgArticulatedModel.h:67
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
Contains makVrv::DtVirtualBaseClass class.
IMGUI_API void Value(const char *prefix, bool b)
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
The DtSwitchStateHapper class is responsible for switching children of an osgSim::MultiSwitch node ba...
Definition: DtSwitchStateMapper.h:23
Contains DLL export macros.
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
Contains makVrv::DtMetaObjectCreator class.
static const char * theSwitchStateMapperFeatureName
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtSwitchStateMapper.h:42
DtDe & myDe
Definition: DtSwitchStateMapper.h:57
Abstract dynamic feature creator class. A dynamic feature retrieves data from a .meta file and applie...
Definition: DtMetaObjectCreator.h:35

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)