OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Protected Attributes
osgViewer::KeystoneHandler Class Reference
Inheritance diagram for osgViewer::KeystoneHandler:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Region {
  NONE_SELECTED, TOP_LEFT, TOP, TOP_RIGHT,
  RIGHT, BOTTOM_RIGHT, BOTTOM, BOTTOM_LEFT,
  LEFT, CENTER
}

Public Member Functions

 KeystoneHandler (Keystone *keystone)
 ~KeystoneHandler ()
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *obj, osg::NodeVisitor *nv)
 Handle events, return true if handled, false otherwise.
void setKeystoneEditingEnabled (bool enabled)
bool getKeystoneEditingEnabled () const
osg::Vec2d incrementScale (const osgGA::GUIEventAdapter &ea) const
Region computeRegion (const osgGA::GUIEventAdapter &ea) const
void move (Region region, const osg::Vec2d &delta)

Protected Attributes

osg::ref_ptr< Keystone_keystone
osg::Vec2d _defaultIncrement
osg::Vec2d _ctrlIncrement
osg::Vec2d _shiftIncrement
osg::Vec2d _keyIncrement
osg::Vec2d _startPosition
osg::ref_ptr< Keystone_startControlPoints
Region _selectedRegion
osg::ref_ptr< Keystone_currentControlPoints

Member Enumeration Documentation

Enumerator:
NONE_SELECTED 
TOP_LEFT 
TOP 
TOP_RIGHT 
RIGHT 
BOTTOM_RIGHT 
BOTTOM 
BOTTOM_LEFT 
LEFT 
CENTER 

Constructor & Destructor Documentation


Member Function Documentation

Handle events, return true if handled, false otherwise.

Reimplemented from osgGA::GUIEventHandler.

void osgViewer::KeystoneHandler::move ( Region  region,
const osg::Vec2d delta 
)

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Dec 8 2015 00:14:32 for the OpenSceneGraph by doxygen 1.7.6.1.