ScaleAxisDragger
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_SCALEAXISDRAGGER
#define OSGMANIPULATOR_SCALEAXISDRAGGER 1
#include <osgManipulator/Scale1DDragger>
#include <osg/ShapeDrawable>
#include <osg/Geometry>
#include <osg/LineWidth>
namespace osgManipulator {
class OSGMANIPULATOR_EXPORT ScaleAxisDragger : public CompositeDragger
{
public:
ScaleAxisDragger();
META_OSGMANIPULATOR_Object(osgManipulator,ScaleAxisDragger)
void setupDefaultGeometry();
void setAxisLineWidth(float linePixelWidth);
float getAxisLineWidth() const { return _axisLineWidth; }
void setBoxSize(float size);
float getBoxSize() const { return _boxSize; }
protected:
virtual ~ScaleAxisDragger();
osg::ref_ptr< Scale1DDragger > _xDragger;
osg::ref_ptr< Scale1DDragger > _yDragger;
osg::ref_ptr< Scale1DDragger > _zDragger;
float _boxSize;
float _axisLineWidth;
osg::ref_ptr<osg::Geode> _lineGeode;
osg::ref_ptr<osg::LineWidth> _lineWidth;
osg::ref_ptr<osg::Box> _box;
};
}
#endif
Geometry
LineWidth
Scale1DDragger
ShapeDrawable
osgManipulator::CompositeDragger::CompositeDragger
CompositeDragger()
Definition Dragger:354
osgManipulator::Dragger::setupDefaultGeometry
virtual void setupDefaultGeometry()
Definition Dragger:263
osgManipulator::ScaleAxisDragger::getBoxSize
float getBoxSize() const
Definition ScaleAxisDragger:49
osgManipulator::ScaleAxisDragger::_zDragger
osg::ref_ptr< Scale1DDragger > _zDragger
Definition ScaleAxisDragger:57
osgManipulator::ScaleAxisDragger::_xDragger
osg::ref_ptr< Scale1DDragger > _xDragger
Definition ScaleAxisDragger:55
osgManipulator::ScaleAxisDragger::_box
osg::ref_ptr< osg::Box > _box
Definition ScaleAxisDragger:64
osgManipulator::ScaleAxisDragger::~ScaleAxisDragger
virtual ~ScaleAxisDragger()
osgManipulator::ScaleAxisDragger::setAxisLineWidth
void setAxisLineWidth(float linePixelWidth)
osgManipulator::ScaleAxisDragger::getAxisLineWidth
float getAxisLineWidth() const
Definition ScaleAxisDragger:43
osgManipulator::ScaleAxisDragger::_lineWidth
osg::ref_ptr< osg::LineWidth > _lineWidth
Definition ScaleAxisDragger:63
osgManipulator::ScaleAxisDragger::_axisLineWidth
float _axisLineWidth
Definition ScaleAxisDragger:60
osgManipulator::ScaleAxisDragger::_yDragger
osg::ref_ptr< Scale1DDragger > _yDragger
Definition ScaleAxisDragger:56
osgManipulator::ScaleAxisDragger::setBoxSize
void setBoxSize(float size)
osgManipulator::ScaleAxisDragger::_boxSize
float _boxSize
Definition ScaleAxisDragger:59
osgManipulator::ScaleAxisDragger::_lineGeode
osg::ref_ptr< osg::Geode > _lineGeode
Definition ScaleAxisDragger:62
osgManipulator::ScaleAxisDragger::ScaleAxisDragger
ScaleAxisDragger()
osgManipulator::ScaleAxisDragger::META_OSGMANIPULATOR_Object
META_OSGMANIPULATOR_Object(osgManipulator, ScaleAxisDragger) void setupDefaultGeometry()
osg::ref_ptr
Definition ref_ptr:32
osgManipulator
Definition AntiSquish:23
OSGMANIPULATOR_EXPORT
#define OSGMANIPULATOR_EXPORT
Definition osgManipulator/Export:27