VR-Forces 5.0.2 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) 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. 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: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. Supports indirect rendering of...
Definition: DtOsgArticulatedModel.h:69
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
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
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
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:45
static const char * theTagColor
Strings to get the different parts of the meta file Use these instead of hardcoded strings...
Definition: DtTextureAtlasMapper.h:44
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:70
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. A dynamic feature retrieves data from a .meta file and applie...
Definition: DtMetaObjectCreator.h:28

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)