15 #ifndef OSGVIEWER_Keystone
16 #define OSGVIEWER_Keystone 1
18 #include <osg/Geometry>
20 #include <osg/DisplaySettings>
22 #include <osgGA/GUIEventHandler>
23 #include <osgViewer/Export>
108 void setKeystoneEditingEnabled(
bool enabled) {
if (_currentControlPoints.valid()) _currentControlPoints->setKeystoneEditingEnabled(enabled); }
109 bool getKeystoneEditingEnabled()
const {
return _currentControlPoints.valid() ? _currentControlPoints->getKeystoneEditingEnabled() :
false; }
127 void move(Region region,
const osg::Vec2d& delta);
bool getKeystoneEditingEnabled() const
void setGridColor(const osg::Vec4 &color)
const osg::Vec2d & getBottomLeft() const
osg::Vec2d & getBottomRight()
void setKeystoneEditingEnabled(bool flag)
osg::Vec4 & getGridColor()
osg::Vec2d _defaultIncrement
void setKeystoneEditingEnabled(bool enabled)
const osg::Vec2d & getBottomRight() const
osg::ref_ptr< Keystone > _currentControlPoints
const osg::Vec2d & getTopLeft() const
bool getKeystoneEditingEnabled() const
osg::ref_ptr< Keystone > _keystone
void setBottomRight(const osg::Vec2d &v)
const osg::Vec2d & getTopRight() const
#define META_Object(library, name)
osg::Vec2d _startPosition
void setBottomLeft(const osg::Vec2d &v)
osg::ref_ptr< Keystone > _startControlPoints
osg::Vec2d _ctrlIncrement
void setTopLeft(const osg::Vec2d &v)
osg::Vec2d & getTopLeft()
void setTopRight(const osg::Vec2d &v)
const osg::Vec4 & getGridColor() const
osg::Vec2d _shiftIncrement
osg::Vec2d & getBottomLeft()
bool keystoneEditingEnabled
osg::Vec2d & getTopRight()