osgEarth 2.1.1
Public Member Functions | Public Attributes

ChangeStyleHandler Struct Reference

Inheritance diagram for ChangeStyleHandler:
Collaboration diagram for ChangeStyleHandler:

List of all members.

Public Member Functions

 ChangeStyleHandler (FeatureModelGraph *features, StyleSheet *styleSheet)
void onClick (Control *control, int mouseButtonMask)

Public Attributes

osg::ref_ptr< FeatureModelGraph_features
osg::ref_ptr< StyleSheet_styleSheet

Detailed Description

Definition at line 153 of file osgearth_featureeditor.cpp.


Constructor & Destructor Documentation

ChangeStyleHandler::ChangeStyleHandler ( FeatureModelGraph features,
StyleSheet styleSheet 
) [inline]

Definition at line 155 of file osgearth_featureeditor.cpp.

        : _features( features), _styleSheet(styleSheet)
    {
        //nop
    }

Member Function Documentation

void ChangeStyleHandler::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 161 of file osgearth_featureeditor.cpp.

                                                          {
        _features->setStyles( _styleSheet.get() );
    }

Member Data Documentation

Definition at line 165 of file osgearth_featureeditor.cpp.

Definition at line 166 of file osgearth_featureeditor.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines