osgEarth 2.1.1
|
Public Member Functions | |
ToggleNodeHandler (osg::Node *node) | |
virtual void | onValueChanged (class Control *control, bool value) |
Public Attributes | |
osg::observer_ptr< osg::Node > | _node |
Definition at line 73 of file osgearth_viewer.cpp.
ToggleNodeHandler::ToggleNodeHandler | ( | osg::Node * | node | ) | [inline] |
Definition at line 75 of file osgearth_viewer.cpp.
: _node(node) { }
virtual void ToggleNodeHandler::onValueChanged | ( | class Control * | control, |
bool | value | ||
) | [inline, virtual] |
Value events
Reimplemented from osgEarth::Util::Controls::ControlEventHandler.
Definition at line 77 of file osgearth_viewer.cpp.
{ osg::ref_ptr<osg::Node> safeNode = _node.get(); if ( safeNode.valid() ) safeNode->setNodeMask( value ? ~0 : 0 ); }
osg::observer_ptr<osg::Node> ToggleNodeHandler::_node |
Definition at line 84 of file osgearth_viewer.cpp.