VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTextureAtlasMapper.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
14 
15 #include <mutex>
16 
17 namespace makVrv
18 {
19  class DtModelDefinition;
20  class DtOsgArticulatedModel;
21  class DtTextureAtlasIndexParser;
22 
28  public DtVirtualBaseClass
29  {
30  public:
33 
35  virtual ~DtTextureAtlasMapper();
36 
37  public:
39  virtual void configure(DtOsgArticulatedModel* osgArticulatedModel, const rapidjson::Value& jsonData);
40 
41  public:
42  // @{
45  static const char* theTextureSkinningFeatureName;
46  static const char* theTagAtlasFile;
47  static const char* theTagColor;
48  static const char* thePattern;
49  // @}
50  private:
53 
56 
59  protected:
60 
62 
64  std::string myFeatureName;
65 
67  std::string myAtlasFile;
68 
71 
72  };
73 
77  {
78 
79  public:
82 
84  virtual ~DtTextureAtlasMapperCreator();
85  public:
87  virtual DtTextureAtlasMapper* create(DtDe& de, osg::Node* node, DtOsgArticulatedModel* osgArticulatedModel,
88  const rapidjson::Value& jsonObject, const std::string& modelDefName,
89  const DtElementID elementId, const DtUniqueID id
90  , const unsigned int nodeTypeIndex);
91 
92  };
93 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::string myAtlasFile
The path to the atlas file in the .meta file.
Definition: DtTextureAtlasMapper.h:67
static DtTextureAtlasIndexParser * theTextureAtlasIndexParser
Definition: DtTextureAtlasMapper.h:69
static const char * theTextureSkinningFeatureName
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:45
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: DtTextureAtlasIndexParser.h:33
std::string myFeatureName
The name of the feature in the .meta file.
Definition: DtTextureAtlasMapper.h:64
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
static const char * theTagAtlasFile
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:46
Contains makVrv::DtVirtualBaseClass class.
IMGUI_API void Value(const char *prefix, bool b)
DtDe & myDe
Definition: DtTextureAtlasMapper.h:61
static const char * thePattern
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:48
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
static std::mutex theTextureAtlasIndexParserMutex
Definition: DtTextureAtlasMapper.h:70
static const char * theTagColor
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:47
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:72
DtTextureAtlasMapperCreator class.
Definition: DtTextureAtlasMapper.h:76
Contains makVrv::DtMetaObjectCreator class.
The DtTextureAtlasMapper class is responsible calculating and setting the UV offets of a texture atla...
Definition: DtTextureAtlasMapper.h:27
Abstract dynamic feature creator class. A dynamic feature retrieves data from a .meta file and applie...
Definition: DtMetaObjectCreator.h:35

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)