#include <sglDiscriminator.hpp>
Inheritance diagram for sglDiscriminator::
Public Methods | |
sglDiscriminator () | |
virtual | ~sglDiscriminator () |
void | setMask (unsigned int mask) |
unsigned int | getMask () const |
virtual sglBound::IntersectResultEnum | intersect (sglIntersectf &isector) const |
virtual sglBound::IntersectResultEnum | intersect (sglIntersectd &isector) const |
virtual void | pick (sglPickf &pick_state, unsigned int cull_flags) const |
virtual void | pick (sglPickd &pick_state, unsigned int cull_flags) 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 (sglDiscriminator *dst, unsigned int mode) const |
Protected Attributes | |
unsigned int | m_mask |
The discriminator mask is currently implemented as an unsigned int. On most systems this corresponds to a 32-bit quantity which allows for up to 32 unique masks.
Example:
sglGeode *geode = new sglGeode; sglDiscriminator *disc_node = new sglDiscriminator; disc_node->setMask(0x01); disc_node->addChild(geode);
Definition at line 56 of file sglDiscriminator.hpp.
|
default constructor.
|
|
virtual destructor.
|
|
Set the discriminator mask for this node.
Definition at line 67 of file sglDiscriminator.hpp. |
|
Get the current discriminator mask.
Definition at line 72 of file sglDiscriminator.hpp. |
|
The single precision intersection traversal function which returns the closest object (bounding volume and/or triangle) that intersects with the given intersect segment.
Reimplemented from sglGroup. |
|
The double precision intersection traversal function which returns the closest object (bounding volume and/or triangle) that intersects with the given intersect segment.
Reimplemented from sglGroup. |
|
The single precision pick traversal function which returns all objects that fall within the pick frustum.
Reimplemented from sglGroup. |
|
The double precision pick traversal function which returns all objects that fall within the pick frustum.
Reimplemented from sglGroup. |
|
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. |