#include <CullData.h>
Inheritance diagram for nvsg::CullData:
Public Methods | |
NVSG_API | CullData (CullCode cullCode) |
Constructor. More... | |
virtual NVSG_API | ~CullData (void) |
Destructor. More... | |
NVSG_API void | balance (void) |
Balance the CullData tree. More... | |
NVSG_API void | addChild (CullData *cd) |
Add a child to this CullData. More... | |
NVSG_API const CullData * | getChild (size_t i) const |
Get the i'th child of this CullData. More... | |
NVSG_API CullCode | getCullCode (void) const |
Get the CullCode of this CullData. More... | |
NVSG_API size_t | getNumberOfChildren (void) const |
Get the number of children of this CullData. More... |
With CullData, a CullTraverser can build a (somewhat simplified) mirror of a scene tree. Each CullData corresponds to one object in a scene tree. Such a CullData tree is used in the Traverser to determine if parts of the scene tree are to be traversed.
|
Constructor.
|
|
Destructor.
|
|
Balance the CullData tree. After having constructed a CullData tree, it might be of value to improve it. When CullData has a CullCode of CC_PART and the children of CullData have a CullCode of CC_IN to CC_IN, then this function removes these children. |
|
Add a child to this CullData.
CullData builds a somewhat simplified mirror of a scene tree. With |
|
Get the i'th child of this CullData. It is assumed that this child does exist.
|
|
Get the CullCode of this CullData.
|
|
Get the number of children of this CullData.
|