VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
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 
78  std::vector<DtVirtualBaseClass*>& myCreatedDynamicFeatures;
82  std::string myModelDefinitionName;
85 
92  unsigned int myInstancedSwitchIndex;
94  unsigned int myInstancedDofIndex;
98 
99  unsigned int myInstancedGeodeIndex;
100 
101  unsigned int myInstancedGroupIndex;
102  };
103 }
104 

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)