OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TranslateAxisDragger.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_TRANSLATEAXISDRAGGER
16 #define OSGMANIPULATOR_TRANSLATEAXISDRAGGER 1
17 
18 #include <osgManipulator/Translate1DDragger>
19 #include <osg/ShapeDrawable>
20 #include <osg/Geometry>
21 #include <osg/LineWidth>
22 
23 namespace osgManipulator {
24 
29 {
30  public:
31 
33 
35 
36 
37  void setupDefaultGeometry();
38 
40  void setAxisLineWidth(float linePixelWidth);
41 
43  float getAxisLineWidth() const { return _axisLineWidth; }
44 
46  void setPickCylinderRadius(float pickCylinderRadius);
47 
49  float getPickCylinderRadius() const { return _pickCylinderRadius; }
50 
52  void setConeHeight(float radius);
53 
55  float getConeHeight() const { return _coneHeight; }
56 
57  protected:
58 
59  virtual ~TranslateAxisDragger();
60 
64 
65  float _coneHeight;
68 
73 };
74 
75 
76 }
77 
78 #endif
osg::ref_ptr< osg::LineWidth > _lineWidth
#define OSGMANIPULATOR_EXPORT
Definition: Export.h:27
#define META_OSGMANIPULATOR_Object(library, name)
Definition: Export.h:30
osg::ref_ptr< Translate1DDragger > _xDragger
osg::ref_ptr< Translate1DDragger > _yDragger
osg::ref_ptr< Translate1DDragger > _zDragger
osg::ref_ptr< osg::Geode > _lineGeode
osg::ref_ptr< osg::Cylinder > _cylinder