Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
C3DFilter Class Reference

C3DFilter allows to filter the nodes / faces / points being processed. More...

Detailed Description

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>

Inheritance diagram for C3DFilter:
C3DConcatenateFilter C3DFlagFilter

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
 
voidGetCallbackData ()
 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.
 

Member Function Documentation

◆ ProcessFace()

virtual bool C3DFilter::ProcessFace ( const C3DBaseObject object,
const C3DFace face 
) const
virtual

Return true if the face should be processed, false otherwise.

Reimplemented in C3DConcatenateFilter.

◆ ProcessNode()

virtual bool C3DFilter::ProcessNode ( const C3DSceneNode node) const
virtual

Return true if the node should be processed, false otherwise.

Reimplemented in C3DFlagFilter, and C3DConcatenateFilter.


The documentation for this class was generated from the following file: