|
osgEarth 2.1.1
|
Inheritance diagram for EditHandler:
Collaboration diagram for EditHandler:Public Member Functions | |
| EditHandler (ImageOverlay *overlay, osgViewer::Viewer *viewer, osg::Node *editor) | |
| void | onClick (Control *control, int mouseButtonMask) |
Public Attributes | |
| ImageOverlay * | _overlay |
| osgViewer::Viewer * | _viewer |
| osg::Node * | _editor |
Definition at line 100 of file osgearth_imageoverlay.cpp.
| EditHandler::EditHandler | ( | ImageOverlay * | overlay, |
| osgViewer::Viewer * | viewer, | ||
| osg::Node * | editor | ||
| ) | [inline] |
Definition at line 102 of file osgearth_imageoverlay.cpp.
| void EditHandler::onClick | ( | Control * | control, |
| int | mouseButtonMask | ||
| ) | [inline, virtual] |
Click event with mouse button mask (see osgGA::GUIEventAdapter::MouseButtonMask)
Reimplemented from osgEarth::Util::Controls::ControlEventHandler.
Definition at line 107 of file osgearth_imageoverlay.cpp.
{
#if OSG_MIN_VERSION_REQUIRED(2,9,6)
if (_editor->getNodeMask() != ~0)
{
static_cast<LabelControl*>(control)->setText( "Finish" );
_editor->setNodeMask(~0);
}
else
{
static_cast<LabelControl*>(control)->setText( "Edit" );
_editor->setNodeMask(0);
}
#else
OE_NOTICE << "Use OSG 2.9.6 or greater to use editing" << std::endl;
#endif
}
| osg::Node* EditHandler::_editor |
Definition at line 126 of file osgearth_imageoverlay.cpp.
Definition at line 124 of file osgearth_imageoverlay.cpp.
| osgViewer::Viewer* EditHandler::_viewer |
Definition at line 125 of file osgearth_imageoverlay.cpp.
1.7.3