VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
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
>
12
#include <
vrvOsg/DtMetaObjectCreator.h
>
13
#include <
vrvUtil/DtVirtualBaseClass.h
>
14
15
namespace
makVrv
16
{
17
class
DtModelDefinition;
18
class
DtOsgArticulatedModel;
19
24
class
DT_DLL_VRVOSG
DtTextureAtlasMapper
:
25
public
DtVirtualBaseClass
26
{
27
public
:
28
30
DtTextureAtlasMapper
(
DtDe
& de);
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
:
55
DtTextureAtlasMapper
();
56
58
DtTextureAtlasMapper
(
const
DtTextureAtlasMapper
& orig);
59
61
DtTextureAtlasMapper
& operator=(
const
DtTextureAtlasMapper
);
62
63
protected
:
64
65
DtDe
&
myDe
;
66
68
std::string
myFeatureName
;
69
71
std::string
myAtlasFile
;
72
73
};
74
77
class
DT_DLL_VRVOSG
DtTextureAtlasMapperCreator
:
public
DtMetaObjectCreator
78
{
79
80
public
:
81
83
DtTextureAtlasMapperCreator
();
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)