TrackballDragger
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
//osgManipulator - Copyright (C) 2007 Fugro-Jason B.V.
#ifndef OSGMANIPULATOR_TRACKBALLDRAGGER
#define OSGMANIPULATOR_TRACKBALLDRAGGER 1
#include <osgManipulator/RotateCylinderDragger>
#include <osgManipulator/RotateSphereDragger>
#include <osg/ShapeDrawable>
#include <osg/Geometry>
#include <osg/Geode>
#include <osg/LineWidth>
namespace osgManipulator {
class OSGMANIPULATOR_EXPORT TrackballDragger : public CompositeDragger
{
public:
TrackballDragger(bool useAutoTransform=false);
META_OSGMANIPULATOR_Object(osgManipulator,TrackballDragger)
void setupDefaultGeometry();
void setAxisLineWidth(float linePixelWidth);
float getAxisLineWidth() const { return _axisLineWidth; }
void setPickCylinderHeight(float pickCylinderHeight);
float getPickCylinderHeight() const { return _pickCylinderHeight; }
protected:
virtual ~TrackballDragger();
osg::ref_ptr<RotateCylinderDragger> _xDragger;
osg::ref_ptr<RotateCylinderDragger> _yDragger;
osg::ref_ptr<RotateCylinderDragger> _zDragger;
osg::ref_ptr<RotateSphereDragger> _xyzDragger;
float _axisLineWidth;
float _pickCylinderHeight;
osg::ref_ptr<osg::Geode> _geode;
osg::ref_ptr<osg::Cylinder> _cylinder;
osg::ref_ptr<osg::LineWidth> _lineWidth;
};
}
#endif
Geode
Geometry
LineWidth
RotateCylinderDragger
RotateSphereDragger
ShapeDrawable
osgManipulator::CompositeDragger::CompositeDragger
CompositeDragger()
Definition Dragger:354
osgManipulator::Dragger::setupDefaultGeometry
virtual void setupDefaultGeometry()
Definition Dragger:263
osgManipulator::TrackballDragger::_geode
osg::ref_ptr< osg::Geode > _geode
Definition TrackballDragger:65
osgManipulator::TrackballDragger::META_OSGMANIPULATOR_Object
META_OSGMANIPULATOR_Object(osgManipulator, TrackballDragger) void setupDefaultGeometry()
osgManipulator::TrackballDragger::_xyzDragger
osg::ref_ptr< RotateSphereDragger > _xyzDragger
Definition TrackballDragger:60
osgManipulator::TrackballDragger::_yDragger
osg::ref_ptr< RotateCylinderDragger > _yDragger
Definition TrackballDragger:58
osgManipulator::TrackballDragger::~TrackballDragger
virtual ~TrackballDragger()
osgManipulator::TrackballDragger::TrackballDragger
TrackballDragger(bool useAutoTransform=false)
osgManipulator::TrackballDragger::_axisLineWidth
float _axisLineWidth
Definition TrackballDragger:62
osgManipulator::TrackballDragger::setPickCylinderHeight
void setPickCylinderHeight(float pickCylinderHeight)
osgManipulator::TrackballDragger::_pickCylinderHeight
float _pickCylinderHeight
Definition TrackballDragger:63
osgManipulator::TrackballDragger::_zDragger
osg::ref_ptr< RotateCylinderDragger > _zDragger
Definition TrackballDragger:59
osgManipulator::TrackballDragger::_cylinder
osg::ref_ptr< osg::Cylinder > _cylinder
Definition TrackballDragger:66
osgManipulator::TrackballDragger::_xDragger
osg::ref_ptr< RotateCylinderDragger > _xDragger
Definition TrackballDragger:57
osgManipulator::TrackballDragger::getAxisLineWidth
float getAxisLineWidth() const
Definition TrackballDragger:45
osgManipulator::TrackballDragger::_lineWidth
osg::ref_ptr< osg::LineWidth > _lineWidth
Definition TrackballDragger:67
osgManipulator::TrackballDragger::setAxisLineWidth
void setAxisLineWidth(float linePixelWidth)
osgManipulator::TrackballDragger::getPickCylinderHeight
float getPickCylinderHeight() const
Definition TrackballDragger:51
osg::ref_ptr
Definition ref_ptr:32
osgManipulator
Definition AntiSquish:23
OSGMANIPULATOR_EXPORT
#define OSGMANIPULATOR_EXPORT
Definition osgManipulator/Export:27