VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgPrintNodeHierarchyVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/NodeVisitor>
15 
16 #include <vector>
17 
18 namespace osg
19 {
20  class ProxyNode;
21  class Switch;
22  class LOD;
23  class Sequence;
24 }
25 
26 namespace osgSim
27 {
28  class MultiSwitch;
29  class DOFTransform;
30 }
31 
32 namespace makVrv
33 {
35  class DT_DLL_VRVOSG DtOsgPrintNodeHierarchyVisitor : public osg::NodeVisitor
36  {
37  public:
40 
43 
44  private:
48  DtOsgPrintNodeHierarchyVisitor &operator=(const DtOsgPrintNodeHierarchyVisitor &other) = delete;
49 
50  public:
52  virtual void apply(osg::Geometry& geometry) override;
53 
55  virtual void apply(osg::Geode& geode) override;
56 
58  virtual void apply(osg::Node& node) override;
59 
61  virtual void apply(osg::ProxyNode& node) override;
62 
64  virtual void apply(osg::Switch& node) override;
65 
67  virtual void apply(osg::LOD& node) override;
68 
70  virtual void apply(osg::Sequence& node) override;
71 
73  virtual void apply(osg::Billboard& node) override;
74 
75  virtual void apply(osg::MatrixTransform& node) override;
76 
78  virtual void apply(osgSim::MultiSwitch& node);
79 
81  virtual void apply(osgSim::DOFTransform& node);
82 
84  static void printHierarchy(const osg::Node* node);
85  };
86 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
visitor for printing out the node hierarchy to the console
Definition: DtOsgPrintNodeHierarchyVisitor.h:35
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)