15#ifndef OSGMANIPULATOR_SCALE2DDRAGGER
16#define OSGMANIPULATOR_SCALE2DDRAGGER 1
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; }
Definition Scale2DDragger:27
void setColor(const osg::Vec4 &color)
Definition Scale2DDragger:53
const osg::Node * getBottomLeftHandleNode() const
Definition Scale2DDragger:70
osg::Vec2d _topLeftHandlePosition
Definition Scale2DDragger:103
const osg::Vec2d & getBottomLeftHandlePosition() const
Definition Scale2DDragger:82
osg::Vec2d _bottomLeftHandlePosition
Definition Scale2DDragger:104
void setBottomLeftHandlePosition(const osg::Vec2d &pos)
Definition Scale2DDragger:81
const osg::Vec4 & getPickColor() const
Definition Scale2DDragger:62
const osg::Vec4 & getColor() const
Definition Scale2DDragger:54
osg::Node * getTopLeftHandleNode()
Definition Scale2DDragger:66
void setBottomRightHandlePosition(const osg::Vec2d &pos)
Definition Scale2DDragger:85
ScaleMode _scaleMode
Definition Scale2DDragger:111
const osg::Node * getTopRightHandleNode() const
Definition Scale2DDragger:73
osg::ref_ptr< osg::Node > _bottomLeftHandleNode
Definition Scale2DDragger:99
osg::ref_ptr< osg::Node > _topRightHandleNode
Definition Scale2DDragger:100
void setBottomLeftHandleNode(osg::Node &node)
Definition Scale2DDragger:68
void setPickColor(const osg::Vec4 &color)
Definition Scale2DDragger:61
void setTopRightHandlePosition(const osg::Vec2d &pos)
Definition Scale2DDragger:83
META_OSGMANIPULATOR_Object(osgManipulator, Scale2DDragger) virtual bool handle(const PointerInfo &pi
osg::ref_ptr< osg::Node > _topLeftHandleNode
Definition Scale2DDragger:98
osg::Vec4 _color
Definition Scale2DDragger:108
osg::Node * getBottomRightHandleNode()
Definition Scale2DDragger:75
void setBottomRightHandleNode(osg::Node &node)
Definition Scale2DDragger:74
Scale2DDragger(ScaleMode scaleMode=SCALE_WITH_ORIGIN_AS_PIVOT)
osg::Vec4 _pickColor
Definition Scale2DDragger:109
osg::Vec2d _bottomRightHandlePosition
Definition Scale2DDragger:106
const osg::Node * getTopLeftHandleNode() const
Definition Scale2DDragger:67
osg::Vec2d _minScale
Definition Scale2DDragger:96
const osg::Vec2d & getTopLeftHandlePosition() const
Definition Scale2DDragger:80
osg::Node * getBottomLeftHandleNode()
Definition Scale2DDragger:69
ScaleMode
Definition Scale2DDragger:31
osg::ref_ptr< osg::Node > _bottomRightHandleNode
Definition Scale2DDragger:101
osg::Vec3d _startProjectedPoint
Definition Scale2DDragger:93
const osg::Vec2d & getTopRightHandlePosition() const
Definition Scale2DDragger:84
void setTopLeftHandleNode(osg::Node &node)
Definition Scale2DDragger:65
osg::Vec2d _topRightHandlePosition
Definition Scale2DDragger:105
virtual ~Scale2DDragger()
const osg::Node * getBottomRightHandleNode() const
Definition Scale2DDragger:76
const osg::Vec2d & getBottomRightHandlePosition() const
Definition Scale2DDragger:86
void setTopLeftHandlePosition(const osg::Vec2d &pos)
Definition Scale2DDragger:79
osg::Node * getTopRightHandleNode()
Definition Scale2DDragger:72
osg::Vec2d _scaleCenter
Definition Scale2DDragger:94
const osg::Vec2d & getMinScale() const
Definition Scale2DDragger:50
osg::ref_ptr< PlaneProjector > _projector
Definition Scale2DDragger:92
void setTopRightHandleNode(osg::Node &node)
Definition Scale2DDragger:71
osg::Vec2d _referencePoint
Definition Scale2DDragger:95
void OSGMANIPULATOR_EXPORT setMaterialColor(const osg::Vec4 &color, osg::Node &node)
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSGMANIPULATOR_EXPORT
Definition osgManipulator/Export:27