VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 
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 
74  std::vector<DtVirtualBaseClass*>& myCreatedDynamicFeatures;
80  std::string myModelDefinitionName;
87  unsigned int myInstancedSwitchIndex;
89  unsigned int myInstancedDofIndex;
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)