OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TrackballDragger.h
Go to the documentation of this file.
1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2  *
3  * This library is open source and may be redistributed and/or modified under
4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5  * (at your option) any later version. The full license is in LICENSE file
6  * included with this distribution, and on the openscenegraph.org website.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * OpenSceneGraph Public License for more details.
12 */
13 //osgManipulator - Copyright (C) 2007 Fugro-Jason B.V.
14 
15 #ifndef OSGMANIPULATOR_TRACKBALLDRAGGER
16 #define OSGMANIPULATOR_TRACKBALLDRAGGER 1
17 
18 #include <osgManipulator/RotateCylinderDragger>
19 #include <osgManipulator/RotateSphereDragger>
20 #include <osg/ShapeDrawable>
21 #include <osg/Geometry>
22 #include <osg/LineWidth>
23 
24 namespace osgManipulator {
25 
30 {
31  public:
32 
33  TrackballDragger(bool useAutoTransform=false);
34 
36 
37 
38  void setupDefaultGeometry();
39 
41  void setAxisLineWidth(float linePixelWidth);
42 
44  float getAxisLineWidth() const { return _axisLineWidth; }
45 
47  void setPickCylinderHeight(float pickCylinderHeight);
48 
50  float getPickCylinderHeight() const { return _pickCylinderHeight; }
51 
52  protected:
53 
54  virtual ~TrackballDragger();
55 
60 
63 
67 };
68 
69 
70 }
71 
72 #endif
#define OSGMANIPULATOR_EXPORT
Definition: Export.h:27
osg::ref_ptr< RotateCylinderDragger > _zDragger
osg::ref_ptr< RotateSphereDragger > _xyzDragger
osg::ref_ptr< osg::LineWidth > _lineWidth
#define META_OSGMANIPULATOR_Object(library, name)
Definition: Export.h:30
osg::ref_ptr< osg::Cylinder > _cylinder
osg::ref_ptr< RotateCylinderDragger > _xDragger
osg::ref_ptr< osg::Geode > _geode
osg::ref_ptr< RotateCylinderDragger > _yDragger