VR-Forces 4.6.1 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
DtMetaFileVisitor.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
12
#include <
vrvCore/DtMetaFileManager.h
>
13
#include <
vrvOsg/DtMetaObjectFactory.h
>
14
#include <
vrvCore/DtTickableManagerInterface.h
>
15
#include <
vrvOsg/DtOsgTerrainPatchObject.h
>
16
#include <
vrvCore/DtModelDefinition.h
>
17
#include <
vrvCore/DtUniqueID.h
>
18
#include <osg/NodeVisitor>
19
#include <osgSim/MultiSwitch>
20
#include <osgSim/DOFTransform>
21
22
namespace
makVrv
23
{
24
class
DtOsgArticulatedModel;
25
31
class
DtMetaFileVisitor
:
public
osg::NodeVisitor
32
{
33
public
:
34
36
DtMetaFileVisitor
(
DtDe
& de,
37
DtMetaFileManager::LinkageValueVec
& metaFeatures,
38
std::vector<DtVirtualBaseClass*>& tickablesVec,
39
const
std::string& modelDefName,
40
const
DtElementID
elementId,
41
const
DtUniqueID
uniqueId,
const
bool
useInstancing,
42
DtOsgArticulatedModel
* model = 0
43
);
44
47
virtual
void
apply
(osg::Node& node);
48
49
virtual
void
apply
(osg::Geode& geode);
50
51
virtual
void
apply
(osg::Group& group);
52
53
virtual
void
apply
(osgSim::MultiSwitch& multiswitch);
54
55
virtual
void
apply
(osg::Switch& sw);
56
57
virtual
void
apply
(osgSim::DOFTransform& dof);
59
61
virtual
void
matchAndCreateMetaObject
(osg::Node& node,
int
nodeTypeIndex);
62
65
virtual
bool
matches
(
const
DtMetaFileManager::NodeLinkage
& currLinkage,
66
const
osg::Node& n)
const
;
67
68
protected
:
69
70
DtDe
&
myDe
;
73
DtMetaObjectFactory
&
myMetaObjectFactory
;
75
DtMetaFileManager::LinkageValueVec
&
myDynamicFeatureNames
;
78
std::vector<DtVirtualBaseClass*>&
myCreatedDynamicFeatures
;
80
DtElementID
myElementId
;
82
std::string
myModelDefinitionName
;
84
DtOsgArticulatedModel
*
myOsgArticulatedModel
;
85
87
bool
myUseInstancing
;
89
DtUniqueID
myUniqueId
;
92
unsigned
int
myInstancedSwitchIndex
;
94
unsigned
int
myInstancedDofIndex
;
97
unsigned
int
myInstancedMultiswitchIndex
;
98
99
unsigned
int
myInstancedGeodeIndex
;
100
101
unsigned
int
myInstancedGroupIndex
;
102
};
103
}
104
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)