wxPdfDocument 1.2.0
Public Member Functions | List of all members
wxPdfCoonsPatchMesh Class Reference

Class representing a coons patch mesh. More...

#include <pdfcoonspatchmesh.h>

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::wxPdfCoonsPatchMesh ( )

Constructor.

◆ ~wxPdfCoonsPatchMesh()

virtual wxPdfCoonsPatchMesh::~wxPdfCoonsPatchMesh ( )
virtual

Destructor.

Member Function Documentation

◆ AddPatch()

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

◆ GetColourType()

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)

◆ GetPatchCount()

size_t wxPdfCoonsPatchMesh::GetPatchCount ( ) const
inline

Get the number of patches.

Returns
the number of patches of the coons patch mesh

◆ GetPatches()

const wxArrayPtrVoid * wxPdfCoonsPatchMesh::GetPatches ( ) const
inline

Get the array of patches.

Returns
array of patches

◆ Ok()

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: