VR-Forces 4.10 Class Documentation
 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) 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 DtModelDefinition;
18  class DtOsgArticulatedModel;
19 
25  public DtVirtualBaseClass
26  {
27  public:
28 
31 
33  virtual ~DtTextureAtlasMapper();
34 
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* theTextureSkinningFeatureName;
43  static const char* theTagAtlasFile;
44  static const char* theTagColor;
45  static const char* thePattern;
46  // @}
47 
48  protected:
49 
51  bool readModelDefParam(DtModelDefinition& modelDef, const std::string& paramName, std::string& resultOut);
52 
53  private:
56 
59 
62 
63  protected:
64 
66 
68  std::string myFeatureName;
69 
71  std::string myAtlasFile;
72 
73  };
74 
78  {
79 
80  public:
81 
84 
86  virtual ~DtTextureAtlasMapperCreator();
87 
89  virtual DtTextureAtlasMapper* create(DtDe& de, osg::Node* node, DtOsgArticulatedModel* osgArticulatedModel,
90  const rapidjson::Value& jsonObject, const std::string& modelDefName,
91  const DtElementID elementId, const DtUniqueID id
92  , const unsigned int nodeTypeIndex);
93 
94  };
95 
96 }
Virtual base class.
Definition: DtVirtualBaseClass.h:19
std::string myAtlasFile
The path to the atlas file in the .meta file.
Definition: DtTextureAtlasMapper.h:71
static const char * theTextureSkinningFeatureName
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:42
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::string myFeatureName
The name of the feature in the .meta file.
Definition: DtTextureAtlasMapper.h:68
An articulated model manipulator for controlling an articulated model.
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
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
static const char * theTagAtlasFile
Definition: DtTextureAtlasMapper.h:43
Contains makVrv::DtVirtualBaseClass class.
IMGUI_API void Value(const char *prefix, bool b)
DtDe & myDe
Definition: DtTextureAtlasMapper.h:65
static const char * thePattern
Definition: DtTextureAtlasMapper.h:45
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
static const char * theTagColor
Definition: DtTextureAtlasMapper.h:44
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtTextureAtlasMapperCreator class.
Definition: DtTextureAtlasMapper.h:77
Contains makVrv::DtMetaObjectCreator class.
The DtTextureAtlasMapper class is responsible calculating and setting the UV offets of a texture atla...
Definition: DtTextureAtlasMapper.h:24
Abstract dynamic feature creator class.
Definition: DtMetaObjectCreator.h:28

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)