15 #ifndef OSGMANIPULATOR_SCALE2DDRAGGER
16 #define OSGMANIPULATOR_SCALE2DDRAGGER 1
18 #include <osgManipulator/Dragger>
19 #include <osgManipulator/Projector>
32 SCALE_WITH_ORIGIN_AS_PIVOT = 0,
33 SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT
46 void setupDefaultGeometry();
49 inline
void setMinScale(const
osg::Vec2d& min) { _minScale = min; }
void setColor(const osg::Vec4 &color)
void setTopLeftHandlePosition(const osg::Vec2d &pos)
void setBottomLeftHandleNode(osg::Node &node)
osg::Vec2d _bottomRightHandlePosition
const osg::Node * getBottomRightHandleNode() const
osg::Node * getBottomRightHandleNode()
osg::Node * getBottomLeftHandleNode()
osg::Vec2d _topLeftHandlePosition
#define OSGMANIPULATOR_EXPORT
void setBottomRightHandleNode(osg::Node &node)
osg::Node * getTopRightHandleNode()
const osg::Vec2d & getBottomRightHandlePosition() const
void setBottomLeftHandlePosition(const osg::Vec2d &pos)
const osg::Node * getTopRightHandleNode() const
const osg::Vec4 & getColor() const
#define META_OSGMANIPULATOR_Object(library, name)
osg::ref_ptr< osg::Node > _bottomRightHandleNode
osg::Vec2d _referencePoint
void setTopRightHandleNode(osg::Node &node)
osg::Vec2d _bottomLeftHandlePosition
osg::Vec2d _topRightHandlePosition
const osg::Node * getBottomLeftHandleNode() const
osg::Vec3d _startProjectedPoint
const osg::Vec2d & getTopLeftHandlePosition() const
void OSGMANIPULATOR_EXPORT setMaterialColor(const osg::Vec4 &color, osg::Node &node)
osg::ref_ptr< osg::Node > _topLeftHandleNode
osg::ref_ptr< osg::Node > _bottomLeftHandleNode
const osg::Vec2d & getMinScale() const
const osg::Vec4 & getPickColor() const
osg::ref_ptr< PlaneProjector > _projector
const osg::Node * getTopLeftHandleNode() const
void setTopLeftHandleNode(osg::Node &node)
void setPickColor(const osg::Vec4 &color)
osg::Node * getTopLeftHandleNode()
void setTopRightHandlePosition(const osg::Vec2d &pos)
osg::ref_ptr< osg::Node > _topRightHandleNode
const osg::Vec2d & getBottomLeftHandlePosition() const
void setBottomRightHandlePosition(const osg::Vec2d &pos)
const osg::Vec2d & getTopRightHandlePosition() const