#include <sglDefaultStateNode.hpp>
Inheritance diagram for sglDefaultStateNode::
Public Methods | |
sglDefaultStateNode () | |
virtual | ~sglDefaultStateNode () |
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 (sglDefaultStateNode *dst, unsigned int mode) const |
Protected Attributes | |
vector<sglStatelet*> | m_statelets |
Example:
sglScene *root = new sglScene; sglCullMode *cull_mode = new sglCullMode; cull_mode->setCullMode(sglCullMode::OFF); vector<sglStatelet*> default_statelets; default_statelets.push_back(cull_mode); // sets the default cull mode to OFF for all nodes below this one. sglDefaultStateNode *default_node = new sglDefaultStateNode; default_node->setStatelets(default_statelets); root->addChild(def);
Definition at line 62 of file sglDefaultStateNode.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 default statelets.
Definition at line 82 of file sglDefaultStateNode.hpp. |
|
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. |