wxPdfCoonsPatchMesh Class Reference

Class representing a coons patch mesh. More...

#include <pdfproperties.h>

List of all members.

Public Member Functions

 wxPdfCoonsPatchMesh ()
 Constructor.
virtual ~wxPdfCoonsPatchMesh ()
 Destructor.
bool AddPatch (int edgeFlag, wxPdfColour colors[], double x[], double y[])
 Add patch to mesh.
bool Ok () const
 Checks whether the coons patch mesh is valid.
wxPdfColourType GetColorType () const
 Get color type of the coons patch mesh.
size_t GetPatchCount () const
 Get the number of patches.
const wxArrayPtrVoid * GetPatches () const
 Get the array of patches.


Detailed Description

Class representing a coons patch mesh.


Constructor & Destructor Documentation

wxPdfCoonsPatchMesh::wxPdfCoonsPatchMesh (  ) 

Constructor.

wxPdfCoonsPatchMesh::~wxPdfCoonsPatchMesh (  )  [virtual]

Destructor.


Member Function Documentation

bool wxPdfCoonsPatchMesh::AddPatch ( int  edgeFlag,
wxPdfColour  colors[],
double  x[],
double  y[] 
)

Add patch to mesh.

Parameters:
edgeFlag flag indicating the patch position relative to previous patches
  • 0 - new patch, unrelated to previous patches (the first patch added must have this flag)
  • 1 - above previous patch
  • 2 - right to previous patch
  • 3 - below previous patch
colors array of colors of this patch (size: 4 if edge flag is 1, 2 otherwise)
x array of x coordinates of patch mesh points (size: 12 if edge flag is 1, 8 otherwise)
y array of y coordinates of patch mesh points (size: 12 if edge flag is 1, 8 otherwise)
Returns:
true if the added patch is valid

bool wxPdfCoonsPatchMesh::Ok (  )  const [inline]

Checks whether the coons patch mesh is valid.

wxPdfColourType wxPdfCoonsPatchMesh::GetColorType (  )  const [inline]

Get color type of the coons patch mesh.

Returns:
the color type of the coons patch mesh (gray scale, RGB or CMYK)

size_t wxPdfCoonsPatchMesh::GetPatchCount (  )  const [inline]

Get the number of patches.

Returns:
the number of patches of the coons patch mesh

const wxArrayPtrVoid* wxPdfCoonsPatchMesh::GetPatches (  )  const [inline]

Get the array of patches.

Returns:
array of patches


The documentation for this class was generated from the following files:
Generated on Fri Dec 15 21:30:37 2006 for wxPdfDocument by  doxygen 1.5.1-p1