FlightGear next
NodeHighlighting Struct Reference

Inherits SGPropertyChangeListener.

Public Member Functions

 NodeHighlighting ()
 
virtual void valueChanged (SGPropertyNode *node)
 
int highlight (osg::Node *node, bool highlight)
 
int clearAll ()
 
 ~NodeHighlighting ()
 

Static Public Member Functions

static void setRgbaDefault (SGPropertyNode *root, const std::string &path, double red, double green, double blue, double alpha)
 
static void setPropertyDefault (SGPropertyNode *root, const std::string &path, double default_value)
 

Public Attributes

SGPropertyNode_ptr m_node
 
std::map< osg::ref_ptr< osg::Group >, osg::ref_ptr< osg::StateSet > > m_group_to_old_state_set
 
osg::ref_ptr< osg::StateSet > m_state_set
 

Detailed Description

Definition at line 98 of file Highlight.cxx.

Constructor & Destructor Documentation

◆ NodeHighlighting()

NodeHighlighting::NodeHighlighting ( )
inline

Definition at line 100 of file Highlight.cxx.

◆ ~NodeHighlighting()

NodeHighlighting::~NodeHighlighting ( )
inline

Definition at line 268 of file Highlight.cxx.

Member Function Documentation

◆ clearAll()

int NodeHighlighting::clearAll ( )
inline

Definition at line 255 of file Highlight.cxx.

◆ highlight()

int NodeHighlighting::highlight ( osg::Node * node,
bool highlight )
inline

Definition at line 233 of file Highlight.cxx.

◆ setPropertyDefault()

static void NodeHighlighting::setPropertyDefault ( SGPropertyNode * root,
const std::string & path,
double default_value )
inlinestatic

Definition at line 183 of file Highlight.cxx.

◆ setRgbaDefault()

static void NodeHighlighting::setRgbaDefault ( SGPropertyNode * root,
const std::string & path,
double red,
double green,
double blue,
double alpha )
inlinestatic

Definition at line 173 of file Highlight.cxx.

◆ valueChanged()

virtual void NodeHighlighting::valueChanged ( SGPropertyNode * node)
inlinevirtual

Definition at line 189 of file Highlight.cxx.

Member Data Documentation

◆ m_group_to_old_state_set

std::map<osg::ref_ptr<osg::Group>, osg::ref_ptr<osg::StateSet> > NodeHighlighting::m_group_to_old_state_set

Definition at line 278 of file Highlight.cxx.

◆ m_node

SGPropertyNode_ptr NodeHighlighting::m_node

Definition at line 273 of file Highlight.cxx.

◆ m_state_set

osg::ref_ptr<osg::StateSet> NodeHighlighting::m_state_set

Definition at line 281 of file Highlight.cxx.


The documentation for this struct was generated from the following file: