LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::MeshPolygonScan Class Reference

Base Class for Polygon Scanners. More...

#include <meshinfo.h>

+ Collaboration diagram for lwpp::MeshPolygonScan:

List of all members.

Public Member Functions

virtual ~MeshPolygonScan ()
void setMeshInfo (MeshInfo *_mi)

Static Public Member Functions

static size_t LWPolyScanFunc (void *userData, LWPolID id)
 Callback function for LightWave.

Protected Member Functions

virtual bool evaluate ()=0
 Evaluation function, to be overriden by the implementing class.
int pntVPGet (LWPntID pnt, float *vector) const
int pntVPIDGet (LWPntID pnt, float *vector, void *vmap) const
unsigned int polFlags (void) const
int polSize (void) const
const char * polTag (LWID tag) const
LWID polType (void) const
 Helper function, retrive the type of polygon.
LWPntID polVertex (int n) const
bool scanFunc (LWPolID id)
 Wrapper to prepare the virtual evaluate member function.

Protected Attributes

MeshInfomi
LWPolID polygon

Detailed Description

Base Class for Polygon Scanners.

This can only be used as a base class for custom polygon scanners

Note:
This might not work at all and might need ot be replaced by a template
See also:
MeshInfo

Constructor & Destructor Documentation

virtual lwpp::MeshPolygonScan::~MeshPolygonScan ( )
inlinevirtual

Member Function Documentation

virtual bool lwpp::MeshPolygonScan::evaluate ( )
protectedpure virtual

Evaluation function, to be overriden by the implementing class.

static size_t lwpp::MeshPolygonScan::LWPolyScanFunc ( void *  userData,
LWPolID  id 
)
inlinestatic

Callback function for LightWave.

int lwpp::MeshPolygonScan::pntVPGet ( LWPntID  pnt,
float *  vector 
) const
inlineprotected
int lwpp::MeshPolygonScan::pntVPIDGet ( LWPntID  pnt,
float *  vector,
void *  vmap 
) const
inlineprotected
unsigned int lwpp::MeshPolygonScan::polFlags ( void  ) const
inlineprotected
int lwpp::MeshPolygonScan::polSize ( void  ) const
inlineprotected
const char* lwpp::MeshPolygonScan::polTag ( LWID  tag) const
inlineprotected
LWID lwpp::MeshPolygonScan::polType ( void  ) const
inlineprotected

Helper function, retrive the type of polygon.

LWPntID lwpp::MeshPolygonScan::polVertex ( int  n) const
inlineprotected
bool lwpp::MeshPolygonScan::scanFunc ( LWPolID  id)
inlineprotected

Wrapper to prepare the virtual evaluate member function.

Stores the polygon ID in the designated member variable and calls evaluate.

Parameters:
idLWPolID of the currenty polygon, stored in the polygon member variable
Returns:
true to abort the scan
void lwpp::MeshPolygonScan::setMeshInfo ( MeshInfo _mi)
inline

Member Data Documentation

MeshInfo* lwpp::MeshPolygonScan::mi
protected
LWPolID lwpp::MeshPolygonScan::polygon
protected

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