#include <sglCallback.hpp>
Inheritance diagram for sglCallback::
Public Methods | |
sglCallback () | |
virtual | ~sglCallback () |
sglCallbackFunc | getCallbackFunc () const |
void | setCallbackFunc (sglCallbackFunc cb_func) |
void* | getCallbackData () const |
void | setCallbackData (void *data) |
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 (sglCallback *dst, unsigned int mode) const |
Protected Attributes | |
sglCallbackFunc | m_callback_func |
void* | m_callback_data |
This seems like a pretty useless class. I leave it in the distribution because it seems relatively benign. In reality, the callback mechanism has not been given proper consideration yet. In some other scene graphs there exist concepts like pre- and post- cull callbacks that actually affect the results of the cull. (There are also pre- and post-draw traversals which have yet been implemented in SGL, but I digress). Really, if you want to do something special you should implement your own sglGroup subclass.
Definition at line 60 of file sglCallback.hpp.
|
default constructor.
|
|
virtual destructor.
|
|
Get a pointer to the current callback function.
Definition at line 72 of file sglCallback.hpp. |
|
Set the callback function.
|
|
Get a pointer to the callback data that is sent as a parameter to the callback function.
Definition at line 84 of file sglCallback.hpp. |
|
Set the callback data pointer.
Definition at line 89 of file sglCallback.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. |