VR-Forces 4.2 Class Documentation
osgArticulationUtilities.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <osg/Group>
13 #include <osg/NodeCallback>
14 #include <osg/NodeVisitor>
15 
16 namespace osgSim { class DOFTransform; }
17 
18 
26 class DOFFinder : public osg::NodeVisitor
27 {
28 public:
30  DOFFinder();
31 
35  virtual void apply(osg::Node& node);
36 
43  osgSim::DOFTransform* takeNextDOF();
44 
47  int dofCount() const;
48 
49 protected:
52  virtual ~DOFFinder();
53 
54 protected:
56  osg::NodeList myNodeList;
57 };
58 
59 
68 class RotateTurret : public osg::NodeCallback
69 {
70 public:
72  RotateTurret();
73 
77  virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
78 
79 protected:
83  double mySimTime;
84 };
85 
86 
95 class RotateBarrel : public osg::NodeCallback
96 {
97 public:
99  RotateBarrel();
100 
104  virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
105 
106 protected:
108  double myMaxAngle;
109 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)