AnimatLab  2
Test
OsgDragger.h
1 #pragma once
2 
3 namespace OsgAnimatSim
4 {
5  namespace Visualization
6  {
7 
8  class OsgDragger : public osgManipulator::CompositeDragger
9  {
10  protected:
11  virtual ~OsgDragger(void);
12 
13  OsgMovableItem *m_lpVsParent;
14  osg::ref_ptr< osg::MatrixTransform> m_osgGripperMT;
15  osg::ref_ptr< osg::AutoTransform > _autoTransform;
16  osg::ref_ptr< osg::MatrixTransform > _sizeTransform;
17  osg::ref_ptr< OsgTranslateAxisDragger > _transDragger;
18  osg::ref_ptr< OsgTrackballDragger > _tbDragger;
19 
20  float m_fltUserDefinedRadius;
21 
22  public:
23  OsgDragger(OsgMovableItem *lpParent, bool bAllowTranslateX, bool bAllowTranslateY, bool bAllowTranslateZ,
24  bool bAllowRotateX, bool bAllowRotateY, bool bAllowRotateZ, float fltUserDefinedRadius);
25 
27  void setupDefaultGeometry();
28 
29  virtual void AddToScene();
30  virtual void RemoveFromScene();
31  virtual bool IsInScene();
32  virtual void SetupMatrix();
33  };
34 
35  }// end Visualization
36 }// end OsgAnimatSim
37 
Classes for implementing the cm-labs vortex physics engine for AnimatLab.