osgEarth 2.1.1
Public Member Functions | Public Attributes

ToggleNode Struct Reference

Inheritance diagram for ToggleNode:
Collaboration diagram for ToggleNode:

List of all members.

Public Member Functions

 ToggleNode (osg::Node *node)
void onValueChanged (Control *src, bool value)

Public Attributes

osg::observer_ptr< osg::Node > _node

Detailed Description

Definition at line 42 of file osgearth_annotation.cpp.


Constructor & Destructor Documentation

ToggleNode::ToggleNode ( osg::Node *  node) [inline]

Definition at line 43 of file osgearth_annotation.cpp.

: _node( node ) { }

Member Function Documentation

void ToggleNode::onValueChanged ( Control control,
bool  value 
) [inline, virtual]

Value events

Reimplemented from osgEarth::Util::Controls::ControlEventHandler.

Definition at line 44 of file osgearth_annotation.cpp.

                                                    {
        if ( _node.valid() )
            _node->setNodeMask( value ? ~0 : 0 );
    }

Member Data Documentation

osg::observer_ptr<osg::Node> ToggleNode::_node

Definition at line 48 of file osgearth_annotation.cpp.


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