1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>Ipelib: ipe::PdfPainter Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.6.1 -->
11
<div class="navigation" id="top">
14
<li><a href="index.html"><span>Main Page</span></a></li>
15
<li><a href="modules.html"><span>Modules</span></a></li>
16
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
17
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
22
<li><a href="annotated.html"><span>Class List</span></a></li>
23
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
24
<li><a href="functions.html"><span>Class Members</span></a></li>
27
<div class="navpath"><a class="el" href="namespaceipe.html">ipe</a>::<a class="el" href="classipe_1_1_pdf_painter.html">PdfPainter</a>
30
<div class="contents">
31
<h1>ipe::PdfPainter Class Reference</h1><!-- doxytag: class="ipe::PdfPainter" --><!-- doxytag: inherits="ipe::Painter" -->
32
<p><code>#include <ipepdfwriter.h></code></p>
34
<p>Inherits <a class="el" href="classipe_1_1_painter.html">ipe::Painter</a>.</p>
36
<p>Inherited by <a class="el" href="classipe_1_1_ps_painter.html">ipe::PsPainter</a>.</p>
38
<p><a href="classipe_1_1_pdf_painter-members.html">List of all members.</a></p>
39
<h2>Public Member Functions</h2>
41
<li><a class="el" href="classipe_1_1_pdf_painter.html#ab0f42742cab47afb251ba13da40373c0">PdfPainter</a> (const <a class="el" href="classipe_1_1_cascade.html">Cascade</a> *style, <a class="el" href="classipe_1_1_stream.html">Stream</a> &stream)
42
<li>virtual <a class="el" href="classipe_1_1_pdf_painter.html#a5d43b0aac70a2c4f48cedd259e68269a">~PdfPainter</a> ()
44
<h2>Static Public Member Functions</h2>
46
<li>static void <a class="el" href="classipe_1_1_pdf_painter.html#a1979624706596dfb76b401c4450f522f">drawColor</a> (<a class="el" href="classipe_1_1_stream.html">Stream</a> &stream, <a class="el" href="classipe_1_1_color.html">Color</a> color, const char *gray, const char *rgb)
48
<h2>Protected Member Functions</h2>
50
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#a0e71460a2ca3a783de814a5bca7be870">doPush</a> ()
51
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#af11bf33417b3164a015004302be7149d">doPop</a> ()
52
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#a9a3ec08b605fc3b2fde235a9805ac7cd">doNewPath</a> ()
53
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#a82a959863e2b900174825b512555c279">doMoveTo</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &v)
54
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#ab61419dcef501093e69f14c8eb217f60">doLineTo</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &v)
55
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#a9ae1374643df192d85c6df8c0215fec7">doCurveTo</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &v1, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &v2, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &v3)
56
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#ad6f20bb1dd63f4e981218df49b2ed6ba">doClosePath</a> ()
57
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#ae2d55b805795a03cd8520a5a43c31f64">doDrawPath</a> (<a class="el" href="group__attr.html#ga40b15a8cc8f66dc518621289ed4f1cd6">TPathMode</a> mode)
58
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#a2bc9e738990891ca8da9c9141821b7b1">doDrawBitmap</a> (<a class="el" href="classipe_1_1_bitmap.html">Bitmap</a> bitmap)
59
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#a89af8f32695d045440818a89a89d96f2">doDrawText</a> (const <a class="el" href="classipe_1_1_text.html">Text</a> *text)
60
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#adeb3aca4fc9e0518630486672cdcfe7c">doAddClipPath</a> ()
61
<li>virtual void <a class="el" href="classipe_1_1_pdf_painter.html#aa60e041c257776b8eaf53b8449c26936">doDrawSymbol</a> (<a class="el" href="classipe_1_1_attribute.html">Attribute</a> symbol)
62
<li>void <a class="el" href="classipe_1_1_pdf_painter.html#a8edf703a628ca3b235e465c778bed52e">drawAttributes</a> ()
63
<li>void <a class="el" href="classipe_1_1_pdf_painter.html#a7f8609d90690f94d030389fc7d3603f4">drawOpacity</a> ()
65
<h2>Protected Attributes</h2>
67
<li><a class="el" href="classipe_1_1_stream.html">Stream</a> & <a class="el" href="classipe_1_1_pdf_painter.html#a00dd9f379196b2c703ae454980b930f9">iStream</a>
68
<li>std::list< <a class="el" href="structipe_1_1_painter_1_1_state.html">State</a> > <a class="el" href="classipe_1_1_pdf_painter.html#abf4e8eedc121fdb4e649812b2b15b2a1">iActiveState</a>
70
<hr/><h2>Constructor & Destructor Documentation</h2>
71
<a class="anchor" id="ab0f42742cab47afb251ba13da40373c0"></a><!-- doxytag: member="ipe::PdfPainter::PdfPainter" ref="ab0f42742cab47afb251ba13da40373c0" args="(const Cascade *style, Stream &stream)" -->
73
<div class="memproto">
74
<table class="memname">
76
<td class="memname">PdfPainter::PdfPainter </td>
78
<td class="paramtype">const <a class="el" href="classipe_1_1_cascade.html">Cascade</a> * </td>
79
<td class="paramname"> <em>style</em>, </td>
82
<td class="paramkey"></td>
84
<td class="paramtype"><a class="el" href="classipe_1_1_stream.html">Stream</a> & </td>
85
<td class="paramname"> <em>stream</em></td><td> </td>
90
<td></td><td></td><td></td>
98
<a class="anchor" id="a5d43b0aac70a2c4f48cedd259e68269a"></a><!-- doxytag: member="ipe::PdfPainter::~PdfPainter" ref="a5d43b0aac70a2c4f48cedd259e68269a" args="()" -->
100
<div class="memproto">
101
<table class="memname">
103
<td class="memname">virtual ipe::PdfPainter::~PdfPainter </td>
105
<td class="paramname"></td>
106
<td> ) </td>
107
<td><code> [inline, virtual]</code></td>
115
<hr/><h2>Member Function Documentation</h2>
116
<a class="anchor" id="a1979624706596dfb76b401c4450f522f"></a><!-- doxytag: member="ipe::PdfPainter::drawColor" ref="a1979624706596dfb76b401c4450f522f" args="(Stream &stream, Color color, const char *gray, const char *rgb)" -->
117
<div class="memitem">
118
<div class="memproto">
119
<table class="memname">
121
<td class="memname">void PdfPainter::drawColor </td>
123
<td class="paramtype"><a class="el" href="classipe_1_1_stream.html">Stream</a> & </td>
124
<td class="paramname"> <em>stream</em>, </td>
127
<td class="paramkey"></td>
129
<td class="paramtype"><a class="el" href="classipe_1_1_color.html">Color</a> </td>
130
<td class="paramname"> <em>color</em>, </td>
133
<td class="paramkey"></td>
135
<td class="paramtype">const char * </td>
136
<td class="paramname"> <em>gray</em>, </td>
139
<td class="paramkey"></td>
141
<td class="paramtype">const char * </td>
142
<td class="paramname"> <em>rgb</em></td><td> </td>
147
<td></td><td></td><td><code> [static]</code></td>
155
<a class="anchor" id="a0e71460a2ca3a783de814a5bca7be870"></a><!-- doxytag: member="ipe::PdfPainter::doPush" ref="a0e71460a2ca3a783de814a5bca7be870" args="()" -->
156
<div class="memitem">
157
<div class="memproto">
158
<table class="memname">
160
<td class="memname">void PdfPainter::doPush </td>
162
<td class="paramname"></td>
163
<td> ) </td>
164
<td><code> [protected, virtual]</code></td>
170
<p>Perform graphics state push on output medium. </p>
172
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a733fcdcd45f0a43563f6dcfdc704ab38">ipe::Painter</a>.</p>
176
<a class="anchor" id="af11bf33417b3164a015004302be7149d"></a><!-- doxytag: member="ipe::PdfPainter::doPop" ref="af11bf33417b3164a015004302be7149d" args="()" -->
177
<div class="memitem">
178
<div class="memproto">
179
<table class="memname">
181
<td class="memname">void PdfPainter::doPop </td>
183
<td class="paramname"></td>
184
<td> ) </td>
185
<td><code> [protected, virtual]</code></td>
191
<p>Perform graphics state pop on output medium. </p>
193
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a7e6ac2f1e3b910ae41531cdd93b8d1f5">ipe::Painter</a>.</p>
197
<a class="anchor" id="a9a3ec08b605fc3b2fde235a9805ac7cd"></a><!-- doxytag: member="ipe::PdfPainter::doNewPath" ref="a9a3ec08b605fc3b2fde235a9805ac7cd" args="()" -->
198
<div class="memitem">
199
<div class="memproto">
200
<table class="memname">
202
<td class="memname">void PdfPainter::doNewPath </td>
204
<td class="paramname"></td>
205
<td> ) </td>
206
<td><code> [protected, virtual]</code></td>
212
<p>Perform new path operator. </p>
214
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a08f264012fc5f179a38b35a245949821">ipe::Painter</a>.</p>
216
<p>Reimplemented in <a class="el" href="classipe_1_1_ps_painter.html#a2c109723bf9029dd1e5b4d0aa6ecf423">ipe::PsPainter</a>.</p>
220
<a class="anchor" id="a82a959863e2b900174825b512555c279"></a><!-- doxytag: member="ipe::PdfPainter::doMoveTo" ref="a82a959863e2b900174825b512555c279" args="(const Vector &v)" -->
221
<div class="memitem">
222
<div class="memproto">
223
<table class="memname">
225
<td class="memname">void PdfPainter::doMoveTo </td>
227
<td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> & </td>
228
<td class="paramname"> <em>v</em></td>
229
<td> ) </td>
230
<td><code> [protected, virtual]</code></td>
236
<p>Perform moveto operator. </p>
237
<p>The transformation matrix has already been applied. </p>
239
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#ad28786fd490d3a84eae3477c17cbf165">ipe::Painter</a>.</p>
243
<a class="anchor" id="ab61419dcef501093e69f14c8eb217f60"></a><!-- doxytag: member="ipe::PdfPainter::doLineTo" ref="ab61419dcef501093e69f14c8eb217f60" args="(const Vector &v)" -->
244
<div class="memitem">
245
<div class="memproto">
246
<table class="memname">
248
<td class="memname">void PdfPainter::doLineTo </td>
250
<td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> & </td>
251
<td class="paramname"> <em>v</em></td>
252
<td> ) </td>
253
<td><code> [protected, virtual]</code></td>
259
<p>Perform lineto operator. </p>
260
<p>The transformation matrix has already been applied. </p>
262
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a7300d6f182e24b04add5b9db641de93f">ipe::Painter</a>.</p>
266
<a class="anchor" id="a9ae1374643df192d85c6df8c0215fec7"></a><!-- doxytag: member="ipe::PdfPainter::doCurveTo" ref="a9ae1374643df192d85c6df8c0215fec7" args="(const Vector &v1, const Vector &v2, const Vector &v3)" -->
267
<div class="memitem">
268
<div class="memproto">
269
<table class="memname">
271
<td class="memname">void PdfPainter::doCurveTo </td>
273
<td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> & </td>
274
<td class="paramname"> <em>v1</em>, </td>
277
<td class="paramkey"></td>
279
<td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> & </td>
280
<td class="paramname"> <em>v2</em>, </td>
283
<td class="paramkey"></td>
285
<td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> & </td>
286
<td class="paramname"> <em>v3</em></td><td> </td>
291
<td></td><td></td><td><code> [protected, virtual]</code></td>
297
<p>Perform curveto operator. </p>
298
<p>The transformation matrix has already been applied. </p>
300
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a8258010696bd694a5991bbcbd0c948f9">ipe::Painter</a>.</p>
304
<a class="anchor" id="ad6f20bb1dd63f4e981218df49b2ed6ba"></a><!-- doxytag: member="ipe::PdfPainter::doClosePath" ref="ad6f20bb1dd63f4e981218df49b2ed6ba" args="()" -->
305
<div class="memitem">
306
<div class="memproto">
307
<table class="memname">
309
<td class="memname">void PdfPainter::doClosePath </td>
311
<td class="paramname"></td>
312
<td> ) </td>
313
<td><code> [protected, virtual]</code></td>
319
<p>Perform closepath operator. </p>
321
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a3d4d0d5434fb56cb6b3f32764c187bcd">ipe::Painter</a>.</p>
325
<a class="anchor" id="ae2d55b805795a03cd8520a5a43c31f64"></a><!-- doxytag: member="ipe::PdfPainter::doDrawPath" ref="ae2d55b805795a03cd8520a5a43c31f64" args="(TPathMode mode)" -->
326
<div class="memitem">
327
<div class="memproto">
328
<table class="memname">
330
<td class="memname">void PdfPainter::doDrawPath </td>
332
<td class="paramtype"><a class="el" href="group__attr.html#ga40b15a8cc8f66dc518621289ed4f1cd6">TPathMode</a> </td>
333
<td class="paramname"> <em>mode</em></td>
334
<td> ) </td>
335
<td><code> [protected, virtual]</code></td>
341
<p>Actually draw the path. </p>
343
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a7589058a01e11feba9649c718c9bdbcd">ipe::Painter</a>.</p>
345
<p>Reimplemented in <a class="el" href="classipe_1_1_ps_painter.html#a2b9e73def6affc085ee905844071fb76">ipe::PsPainter</a>.</p>
349
<a class="anchor" id="a2bc9e738990891ca8da9c9141821b7b1"></a><!-- doxytag: member="ipe::PdfPainter::doDrawBitmap" ref="a2bc9e738990891ca8da9c9141821b7b1" args="(Bitmap bitmap)" -->
350
<div class="memitem">
351
<div class="memproto">
352
<table class="memname">
354
<td class="memname">void PdfPainter::doDrawBitmap </td>
356
<td class="paramtype"><a class="el" href="classipe_1_1_bitmap.html">Bitmap</a> </td>
357
<td class="paramname"> <em>bitmap</em></td>
358
<td> ) </td>
359
<td><code> [protected, virtual]</code></td>
365
<p>Draw a bitmap. </p>
367
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#ab1b9188f0440f8ce60a4e56caa418dfb">ipe::Painter</a>.</p>
369
<p>Reimplemented in <a class="el" href="classipe_1_1_ps_painter.html#aaa469c60312075bfc6cd54810718d71f">ipe::PsPainter</a>.</p>
373
<a class="anchor" id="a89af8f32695d045440818a89a89d96f2"></a><!-- doxytag: member="ipe::PdfPainter::doDrawText" ref="a89af8f32695d045440818a89a89d96f2" args="(const Text *text)" -->
374
<div class="memitem">
375
<div class="memproto">
376
<table class="memname">
378
<td class="memname">void PdfPainter::doDrawText </td>
380
<td class="paramtype">const <a class="el" href="classipe_1_1_text.html">Text</a> * </td>
381
<td class="paramname"> <em>text</em></td>
382
<td> ) </td>
383
<td><code> [protected, virtual]</code></td>
389
<p>Draw a text object. </p>
391
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#aa5a6be53e530b10b5fb0b61b6a989011">ipe::Painter</a>.</p>
395
<a class="anchor" id="adeb3aca4fc9e0518630486672cdcfe7c"></a><!-- doxytag: member="ipe::PdfPainter::doAddClipPath" ref="adeb3aca4fc9e0518630486672cdcfe7c" args="()" -->
396
<div class="memitem">
397
<div class="memproto">
398
<table class="memname">
400
<td class="memname">void PdfPainter::doAddClipPath </td>
402
<td class="paramname"></td>
403
<td> ) </td>
404
<td><code> [protected, virtual]</code></td>
410
<p>Add a clip path. </p>
412
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#ab459e36cdfac1fb5ffe9be9a42021e8c">ipe::Painter</a>.</p>
414
<p>Reimplemented in <a class="el" href="classipe_1_1_ps_painter.html#a9d39ec65047a3488e5f2d06508275168">ipe::PsPainter</a>.</p>
418
<a class="anchor" id="aa60e041c257776b8eaf53b8449c26936"></a><!-- doxytag: member="ipe::PdfPainter::doDrawSymbol" ref="aa60e041c257776b8eaf53b8449c26936" args="(Attribute symbol)" -->
419
<div class="memitem">
420
<div class="memproto">
421
<table class="memname">
423
<td class="memname">void PdfPainter::doDrawSymbol </td>
425
<td class="paramtype"><a class="el" href="classipe_1_1_attribute.html">Attribute</a> </td>
426
<td class="paramname"> <em>symbol</em></td>
427
<td> ) </td>
428
<td><code> [protected, virtual]</code></td>
434
<p>Draw a symbol. </p>
435
<p>The default implementation calls the draw method of the object. Only PDF drawing overrides this to reuse a PDF XForm. </p>
437
<p>Reimplemented from <a class="el" href="classipe_1_1_painter.html#a109971fa7fece8cd4758c6acc08a9c42">ipe::Painter</a>.</p>
441
<a class="anchor" id="a8edf703a628ca3b235e465c778bed52e"></a><!-- doxytag: member="ipe::PdfPainter::drawAttributes" ref="a8edf703a628ca3b235e465c778bed52e" args="()" -->
442
<div class="memitem">
443
<div class="memproto">
444
<table class="memname">
446
<td class="memname">void PdfPainter::drawAttributes </td>
448
<td class="paramname"></td>
449
<td> ) </td>
450
<td><code> [protected]</code></td>
458
<a class="anchor" id="a7f8609d90690f94d030389fc7d3603f4"></a><!-- doxytag: member="ipe::PdfPainter::drawOpacity" ref="a7f8609d90690f94d030389fc7d3603f4" args="()" -->
459
<div class="memitem">
460
<div class="memproto">
461
<table class="memname">
463
<td class="memname">void PdfPainter::drawOpacity </td>
465
<td class="paramname"></td>
466
<td> ) </td>
467
<td><code> [protected]</code></td>
475
<hr/><h2>Member Data Documentation</h2>
476
<a class="anchor" id="a00dd9f379196b2c703ae454980b930f9"></a><!-- doxytag: member="ipe::PdfPainter::iStream" ref="a00dd9f379196b2c703ae454980b930f9" args="" -->
477
<div class="memitem">
478
<div class="memproto">
479
<table class="memname">
481
<td class="memname"><a class="el" href="classipe_1_1_stream.html">Stream</a>& <a class="el" href="classipe_1_1_pdf_painter.html#a00dd9f379196b2c703ae454980b930f9">ipe::PdfPainter::iStream</a><code> [protected]</code></td>
489
<a class="anchor" id="abf4e8eedc121fdb4e649812b2b15b2a1"></a><!-- doxytag: member="ipe::PdfPainter::iActiveState" ref="abf4e8eedc121fdb4e649812b2b15b2a1" args="" -->
490
<div class="memitem">
491
<div class="memproto">
492
<table class="memname">
494
<td class="memname">std::list<<a class="el" href="structipe_1_1_painter_1_1_state.html">State</a>> <a class="el" href="classipe_1_1_pdf_painter.html#abf4e8eedc121fdb4e649812b2b15b2a1">ipe::PdfPainter::iActiveState</a><code> [protected]</code></td>
502
<hr/>The documentation for this class was generated from the following files:<ul>
503
<li>ipepdfwriter.h</li>
504
<li>ipepdfwriter.cpp</li>