VR-Forces 4.6 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) 2016 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 bool useInstancing, const unsigned int nodeTypeIndex);
93 
94  };
95 
96 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)