|
osgEarth 2.1.1
|
Inheritance diagram for EditModeHandler:
Collaboration diagram for EditModeHandler:Public Member Functions | |
| EditModeHandler (FeatureModelGraph *featureGraph) | |
| void | onClick (Control *control, int mouseButtonMask) |
Public Attributes | |
| osg::ref_ptr< FeatureModelGraph > | _featureGraph |
Definition at line 121 of file osgearth_featureeditor.cpp.
| EditModeHandler::EditModeHandler | ( | FeatureModelGraph * | featureGraph | ) | [inline] |
Definition at line 123 of file osgearth_featureeditor.cpp.
: _featureGraph( featureGraph ) { }
| void EditModeHandler::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 128 of file osgearth_featureeditor.cpp.
{
//Remove the add point handler if it's valid
if (s_addPointHandler.valid())
{
osgEarth::removeEventHandler( s_viewer, s_addPointHandler.get() );
s_addPointHandler = NULL;
}
if (!s_editor.valid() && s_activeFeature.valid())
{
Style* style = _featureGraph->getStyles()->getDefaultStyle();
if ( style )
{
style->get<LineSymbol>()->stroke()->stipple() = 0x00FF;
_featureGraph->dirty();
}
s_editor = new FeatureEditor(s_activeFeature.get(), s_source.get(), s_mapNode.get());
s_root->addChild( s_editor.get() );
}
}
Here is the call graph for this function:| osg::ref_ptr< FeatureModelGraph > EditModeHandler::_featureGraph |
Definition at line 150 of file osgearth_featureeditor.cpp.
1.7.3