CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csClipper Class Reference
[Geometry utilities]

The csClipper class is an abstract parent to all 2D clipping objects. More...

#include <polyclip.h>

Inheritance diagram for csClipper:

iClipper2D iBase csBoxClipper csPolygonClipper List of all members.

Public Methods

 csClipper ()
 Constructor.

virtual ~csClipper ()
 Destructor.

virtual uint8 ClipInPlace (csVector2 *InPolygon, int &InOutCount, csBox2 &BoundingBox)
 Wrapper function: clip a polygon in-place.

uint8 LastClipResult ()
 most recent Clipresult


Protected Attributes

uint8 mrClipping
 Result of most recent clipping.


Static Protected Attributes

csPoly2DPoolpolypool
 This variable holds a pool for 2D polygons as used by the clipper.


Detailed Description

The csClipper class is an abstract parent to all 2D clipping objects.

Definition at line 38 of file polyclip.h.


Constructor & Destructor Documentation

csClipper::csClipper  
 

Constructor.

virtual csClipper::~csClipper   [virtual]
 

Destructor.


Member Function Documentation

virtual uint8 csClipper::ClipInPlace csVector2   InPolygon,
int &    InOutCount,
csBox2   BoundingBox
[virtual]
 

Wrapper function: clip a polygon in-place.

Implements iClipper2D.

uint8 csClipper::LastClipResult   [inline]
 

most recent Clipresult

Definition at line 61 of file polyclip.h.

References mrClipping.


Member Data Documentation

uint8 csClipper::mrClipping [protected]
 

Result of most recent clipping.

Definition at line 45 of file polyclip.h.

Referenced by LastClipResult().

csPoly2DPool* csClipper::polypool [static, protected]
 

This variable holds a pool for 2D polygons as used by the clipper.

Definition at line 42 of file polyclip.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18