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