osgEarth 2.1.1
|
Public Member Functions | |
AddVertsModeHandler (FeatureModelGraph *featureGraph) | |
void | onClick (Control *control, int mouseButtonMask) |
Public Attributes | |
osg::ref_ptr< FeatureModelGraph > | _featureGraph |
Definition at line 86 of file osgearth_featureeditor.cpp.
AddVertsModeHandler::AddVertsModeHandler | ( | FeatureModelGraph * | featureGraph | ) | [inline] |
Definition at line 88 of file osgearth_featureeditor.cpp.
: _featureGraph( featureGraph ) { }
void AddVertsModeHandler::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 93 of file osgearth_featureeditor.cpp.
{ //remove the editor if it's valid if (s_editor.valid()) { s_root->removeChild( s_editor.get() ); s_editor = NULL; Style* style = _featureGraph->getStyles()->getDefaultStyle(); if ( style ) { style->get<LineSymbol>()->stroke()->stipple().unset(); _featureGraph->dirty(); } } //Add the new add point handler if (!s_addPointHandler.valid() && s_activeFeature.valid()) { s_addPointHandler = new AddPointHandler(s_activeFeature.get(), s_source.get(), s_mapNode->getMap()->getProfile()->getSRS()); s_addPointHandler->setIntersectionMask( 0x1 ); s_viewer->addEventHandler( s_addPointHandler.get() ); } }
osg::ref_ptr< FeatureModelGraph > AddVertsModeHandler::_featureGraph |
Definition at line 118 of file osgearth_featureeditor.cpp.