![]() |
Polygon Crucher SDK - Documentation
Documentation
|
C3DFilter allows to filter the nodes / faces / points being processed. More...
C3DFilter allows to filter the nodes / faces / points being processed.
Some C3DScene methods offers to provide C3DFilter This is a convienient method to process or not some of the elements when they are traversed.
Depending on the method, some or all the callback (ProcessNode, ProcessFace, ProcessPoint) might be called.
The return value of these methods will make the element processed or not by the calling function.
#include <3DScene.h>
Public Member Functions | |
C3DFilter (unsigned int flags=NODEFILTER_DEFAULT, unsigned int kindOfObject=OBJECT_ALL_KINDOF) | |
By default all the nodes are transmitted to ProcessNode. | |
void | SetCallbackData (void *data) |
specific that can be used in the callback operation | |
void * | GetCallbackData () |
specific that can be used in the callback operation | |
virtual bool | ProcessNode (const C3DSceneNode *node) const |
Return true if the node should be processed, false otherwise. | |
virtual bool | ProcessFace (const C3DBaseObject *object, const C3DFace *face) const |
Return true if the face should be processed, false otherwise. | |
virtual bool | ProcessPoint (const C3DBaseObject *object, const C3DPoint *point) const |
Return true if the point should be processed, false otherwise. | |
Static Public Member Functions | |
static bool | ProcessNode (unsigned int filterFlags, const C3DSceneNode *node, unsigned int kindOfObject=OBJECT_ALL_KINDOF) |
Flags is one or more NodeFilterFlags. Call this static method allows a simple filter on the nodes. | |
|
virtual |
Return true if the face should be processed, false otherwise.
Reimplemented in C3DConcatenateFilter.
|
virtual |
Return true if the node should be processed, false otherwise.
Reimplemented in C3DFlagFilter, and C3DConcatenateFilter.