#include <sglOverrideStateNode.hpp>
Inheritance diagram for sglOverrideStateNode::
Public Methods | |
sglOverrideStateNode () | |
virtual | ~sglOverrideStateNode () |
void | setStatelets (const vector< sglStatelet *> &statelets) |
const vector<sglStatelet*>& | getStatelets () const |
virtual sglNode* | clone (unsigned int mode) const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Protected Methods | |
virtual void | cull (sglCull< float > &trav_state, unsigned int cull_flags) const |
virtual void | cull (sglCull< double > &trav_state, unsigned int cull_flags) const |
void | copyTo (sglOverrideStateNode *dst, unsigned int mode) const |
Protected Attributes | |
vector<sglStatelet*> | m_statelets |
Example:
vector<sglStatelet*> override_statelets; override_statelets.push_back(new sglLighting(false)); // sets the override lighting mode to OFF for all nodes below this one. sglOverrideStateNode *override_node = new sglOverrideStateNode; override_node->setStatelets(override_statelets); override_node->addChild(...);
Definition at line 55 of file sglOverrideStateNode.hpp.
|
default constructor.
|
|
virtual destructor.
|
|
Set the current set of default statelets from the vector provided. The new statelets' reference counts are incremented, while the previous statelets are decremented, and if their reference counts go to zero they are deleted.
|
|
Get a reference to the current set of override statelets.
|
|
Make a copy of the scenegraph rooted at this node.
Reimplemented from sglGroup. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglGroup. |
|
The single precision cull traversal function that culls out subgraphs that do not lie in the view frustum (stored in the sglCull parameter). Subclasses must implement this function. The entry point for user-friendly culling is in the sglScene class.
Reimplemented from sglGroup. |
|
The double precision cull traversal function that culls out subgraphs that do not lie in the view frustum (stored in the sglCull parameter). Subclasses must implement this function. The entry point for user-friendly culling is in the sglScene class.
Reimplemented from sglGroup. |