VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
DtMetaFileVisitor.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 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
{
29
class
DtMetaFileVisitor
:
public
osg::NodeVisitor
30
{
31
public
:
32
34
DtMetaFileVisitor
(
DtDe
& de,
35
DtMetaFileManager::LinkageValueVec
& metaFeatures,
36
std::vector<DtVirtualBaseClass*>& tickablesVec,
37
const
std::string& modelDefName,
38
const
DtElementID
elementId,
const
DtUniqueID
sceneObjectId,
39
const
DtUniqueID
uniqueId,
const
bool
useInstancing);
40
43
virtual
void
apply
(osg::Node& node);
44
45
virtual
void
apply
(osg::Geode& geode);
46
47
virtual
void
apply
(osg::Group& group);
48
49
virtual
void
apply
(osgSim::MultiSwitch& multiswitch);
50
51
virtual
void
apply
(osg::Switch& sw);
52
53
virtual
void
apply
(osgSim::DOFTransform& dof);
55
57
virtual
void
matchAndCreateMetaObject
(osg::Node& node,
int
nodeTypeIndex);
58
61
virtual
bool
matches
(
const
DtMetaFileManager::NodeLinkage
& currLinkage,
62
const
osg::Node& n)
const
;
63
64
protected
:
65
66
DtDe
&
myDe
;
69
DtMetaObjectFactory
&
myMetaObjectFactory
;
71
DtMetaFileManager::LinkageValueVec
&
myDynamicFeatureNames
;
74
std::vector<DtVirtualBaseClass*>&
myCreatedDynamicFeatures
;
76
DtElementID
myElementId
;
78
DtUniqueID
mySceneObjectId
;
80
std::string
myModelDefinitionName
;
82
bool
myUseInstancing
;
84
DtUniqueID
myUniqueId
;
87
unsigned
int
myInstancedSwitchIndex
;
89
unsigned
int
myInstancedDofIndex
;
92
unsigned
int
myInstancedMultiswitchIndex
;
93
};
94
}
95
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)