TranslateAxisDragger
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_TRANSLATEAXISDRAGGER
#define OSGMANIPULATOR_TRANSLATEAXISDRAGGER 1
#include <osgManipulator/Translate1DDragger>
#include <osg/ShapeDrawable>
#include <osg/Geometry>
#include <osg/LineWidth>
namespace osgManipulator {
class OSGMANIPULATOR_EXPORT TranslateAxisDragger : public CompositeDragger
{
public:
TranslateAxisDragger();
META_OSGMANIPULATOR_Object(osgManipulator,TranslateAxisDragger)
void setupDefaultGeometry();
void setAxisLineWidth(float linePixelWidth);
float getAxisLineWidth() const { return _axisLineWidth; }
void setPickCylinderRadius(float pickCylinderRadius);
float getPickCylinderRadius() const { return _pickCylinderRadius; }
void setConeHeight(float radius);
float getConeHeight() const { return _coneHeight; }
protected:
virtual ~TranslateAxisDragger();
osg::ref_ptr< Translate1DDragger > _xDragger;
osg::ref_ptr< Translate1DDragger > _yDragger;
osg::ref_ptr< Translate1DDragger > _zDragger;
float _coneHeight;
float _axisLineWidth;
float _pickCylinderRadius;
osg::ref_ptr<osg::Geode> _lineGeode;
osg::ref_ptr<osg::Cylinder> _cylinder;
osg::ref_ptr<osg::LineWidth> _lineWidth;
osg::ref_ptr<osg::Cone> _cone;
};
}
#endif
Geometry
LineWidth
ShapeDrawable
Translate1DDragger
osgManipulator::CompositeDragger::CompositeDragger
CompositeDragger()
Definition Dragger:354
osgManipulator::Dragger::setupDefaultGeometry
virtual void setupDefaultGeometry()
Definition Dragger:263
osgManipulator::TranslateAxisDragger::_cone
osg::ref_ptr< osg::Cone > _cone
Definition TranslateAxisDragger:72
osgManipulator::TranslateAxisDragger::_lineWidth
osg::ref_ptr< osg::LineWidth > _lineWidth
Definition TranslateAxisDragger:71
osgManipulator::TranslateAxisDragger::_pickCylinderRadius
float _pickCylinderRadius
Definition TranslateAxisDragger:67
osgManipulator::TranslateAxisDragger::_zDragger
osg::ref_ptr< Translate1DDragger > _zDragger
Definition TranslateAxisDragger:63
osgManipulator::TranslateAxisDragger::_coneHeight
float _coneHeight
Definition TranslateAxisDragger:65
osgManipulator::TranslateAxisDragger::_cylinder
osg::ref_ptr< osg::Cylinder > _cylinder
Definition TranslateAxisDragger:70
osgManipulator::TranslateAxisDragger::setConeHeight
void setConeHeight(float radius)
osgManipulator::TranslateAxisDragger::getPickCylinderRadius
float getPickCylinderRadius() const
Definition TranslateAxisDragger:49
osgManipulator::TranslateAxisDragger::setPickCylinderRadius
void setPickCylinderRadius(float pickCylinderRadius)
osgManipulator::TranslateAxisDragger::_axisLineWidth
float _axisLineWidth
Definition TranslateAxisDragger:66
osgManipulator::TranslateAxisDragger::getAxisLineWidth
float getAxisLineWidth() const
Definition TranslateAxisDragger:43
osgManipulator::TranslateAxisDragger::~TranslateAxisDragger
virtual ~TranslateAxisDragger()
osgManipulator::TranslateAxisDragger::getConeHeight
float getConeHeight() const
Definition TranslateAxisDragger:55
osgManipulator::TranslateAxisDragger::setAxisLineWidth
void setAxisLineWidth(float linePixelWidth)
osgManipulator::TranslateAxisDragger::META_OSGMANIPULATOR_Object
META_OSGMANIPULATOR_Object(osgManipulator, TranslateAxisDragger) void setupDefaultGeometry()
osgManipulator::TranslateAxisDragger::_xDragger
osg::ref_ptr< Translate1DDragger > _xDragger
Definition TranslateAxisDragger:61
osgManipulator::TranslateAxisDragger::_lineGeode
osg::ref_ptr< osg::Geode > _lineGeode
Definition TranslateAxisDragger:69
osgManipulator::TranslateAxisDragger::TranslateAxisDragger
TranslateAxisDragger()
osgManipulator::TranslateAxisDragger::_yDragger
osg::ref_ptr< Translate1DDragger > _yDragger
Definition TranslateAxisDragger:62
osg::ref_ptr
Definition ref_ptr:32
osgManipulator
Definition AntiSquish:23
OSGMANIPULATOR_EXPORT
#define OSGMANIPULATOR_EXPORT
Definition osgManipulator/Export:27