wxMaxima
Loading...
Searching...
No Matches
pdfcoonspatchmesh.h
Go to the documentation of this file.
1
2// Name: pdfcoonspatchmesh.h
3// Purpose:
4// Author: Ulrich Telle
5// Created: 2009-06-24
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_COONS_PATCH_MESH_H_
13#define _PDF_COONS_PATCH_MESH_H_
14
15// wxWidgets headers
16#include <wx/dynarray.h>
17
18// wxPdfDocument headers
19#include "wx/pdfdocdef.h"
20#include "wx/pdfcolour.h"
21
23class WXDLLIMPEXP_PDFDOC wxPdfCoonsPatchMesh
24{
25public:
28
30 virtual ~wxPdfCoonsPatchMesh();
31
33
44 bool AddPatch(int edgeFlag, wxPdfColour colours[], double x[], double y[]);
45
47
50 bool Ok() const { return m_ok; }
51
53
56 wxPdfColourType GetColourType() const { return m_colourType; }
57
59
62 size_t GetPatchCount() const { return m_patches.size(); }
63
65
69 const wxArrayPtrVoid* GetPatches() const { return &m_patches; }
70
71private:
72 bool m_ok;
73 wxPdfColourType m_colourType;
74 wxArrayPtrVoid m_patches;
75};
76
77#endif
Class representing wxPdfDocument colours.
Definition: pdfcolour.h:40
Class representing a coons patch mesh.
Definition: pdfcoonspatchmesh.h:24
const wxArrayPtrVoid * GetPatches() const
Get the array of patches.
Definition: pdfcoonspatchmesh.h:69
wxPdfColourType GetColourType() const
Get colour type of the coons patch mesh.
Definition: pdfcoonspatchmesh.h:56
size_t GetPatchCount() const
Get the number of patches.
Definition: pdfcoonspatchmesh.h:62
bool Ok() const
Checks whether the coons patch mesh is valid.
Definition: pdfcoonspatchmesh.h:50
Interface of the wxPdfColour class.
wxPdfColourType
Colour types.
Definition: pdfcolour.h:24
Compile time switches for the wxPdfDocument component.