wxPdfDocument 0.9.2
Public Member Functions
wxPdfCoonsPatchMesh Class Reference

Class representing a coons patch mesh. More...

#include <pdfcoonspatchmesh.h>

List of all members.

Public Member Functions

 wxPdfCoonsPatchMesh ()
 Constructor.
virtual ~wxPdfCoonsPatchMesh ()
 Destructor.
bool AddPatch (int edgeFlag, wxPdfColour colours[], double x[], double y[])
 Add patch to mesh.
bool Ok () const
 Checks whether the coons patch mesh is valid.
wxPdfColourType GetColourType () const
 Get colour 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.

virtual wxPdfCoonsPatchMesh::~wxPdfCoonsPatchMesh ( ) [virtual]

Destructor.


Member Function Documentation

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

Add patch to mesh.

Parameters:
edgeFlagflag 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
coloursarray of colours of this patch (size: 4 if edge flag is 1, 2 otherwise)
xarray of x coordinates of patch mesh points (size: 12 if edge flag is 1, 8 otherwise)
yarray of y coordinates of patch mesh points (size: 12 if edge flag is 1, 8 otherwise)
Returns:
true if the added patch is valid
wxPdfColourType wxPdfCoonsPatchMesh::GetColourType ( ) const [inline]

Get colour type of the coons patch mesh.

Returns:
the colour 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
bool wxPdfCoonsPatchMesh::Ok ( ) const [inline]

Checks whether the coons patch mesh is valid.

Returns:
TRUE if the coons patch mesh is valid, FALSE otherwise

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