~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to build/doc/classipe_1_1_curve.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-12-11 21:22:35 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091211212235-5iio4nzpra64snab
Tags: 7.0.10-1
* New upstream.  Closes: #551192.
  - New build-depends: libcairo2-dev, liblua5.1-0-dev, gsfonts
  - patches/config.diff: Remove.  Upstream build system replaced.
  - Runtime lib package changed to libipe7.0.10 from libipe1c2a
  - Devel package renamed to libipe-dev (from libipe1-dev)
  - Package ipe depends on lua5.1 due to ipe-update-master.

* rules: Re-write to use dh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
 
5
<title>Ipelib: ipe::Curve Class Reference</title>
 
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
 
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
 
8
</head>
 
9
<body>
 
10
<!-- Generated by Doxygen 1.6.1 -->
 
11
<div class="navigation" id="top">
 
12
  <div class="tabs">
 
13
    <ul>
 
14
      <li><a href="index.html"><span>Main&nbsp;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>
 
18
    </ul>
 
19
  </div>
 
20
  <div class="tabs">
 
21
    <ul>
 
22
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 
23
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
 
24
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 
25
    </ul>
 
26
  </div>
 
27
  <div class="navpath"><a class="el" href="namespaceipe.html">ipe</a>::<a class="el" href="classipe_1_1_curve.html">Curve</a>
 
28
  </div>
 
29
</div>
 
30
<div class="contents">
 
31
<h1>ipe::Curve Class Reference<br/>
 
32
<small>
 
33
[<a class="el" href="group__geo.html">Ipe Geometry</a>]</small>
 
34
</h1><!-- doxytag: class="ipe::Curve" --><!-- doxytag: inherits="ipe::SubPath" -->
 
35
<p>Subpath consisting of a sequence of CurveSegment's.  
 
36
<a href="#_details">More...</a></p>
 
37
 
 
38
<p><code>#include &lt;ipeshape.h&gt;</code></p>
 
39
 
 
40
<p>Inherits <a class="el" href="classipe_1_1_sub_path.html">ipe::SubPath</a>.</p>
 
41
 
 
42
<p><a href="classipe_1_1_curve-members.html">List of all members.</a></p>
 
43
<h2>Classes</h2>
 
44
<ul>
 
45
<li>struct <b>Seg</b>
 
46
</ul>
 
47
<h2>Public Member Functions</h2>
 
48
<ul>
 
49
<li><a class="el" href="classipe_1_1_curve.html#acf7a848ad3b0e6a7931bf962941594bc">Curve</a> ()
 
50
<li>virtual <a class="el" href="classipe_1_1_sub_path.html#ad17bc5b4ed674c253cd81049d7fe1551">Type</a> <a class="el" href="classipe_1_1_curve.html#a005753e2c6ff30c126cc74f77773c2c1">type</a> () const 
 
51
<li>virtual bool <a class="el" href="classipe_1_1_curve.html#a8be05768f0f7c8f39e82c3152c804b40">closed</a> () const 
 
52
<li>virtual const <a class="el" href="classipe_1_1_curve.html">Curve</a> * <a class="el" href="classipe_1_1_curve.html#a0f1f616eb50eee108999b479324438e0">asCurve</a> () const 
 
53
<li>virtual void <a class="el" href="classipe_1_1_curve.html#a3b8d5f90cd4f6a41d3b7c0108180c4b3">save</a> (<a class="el" href="classipe_1_1_stream.html">Stream</a> &amp;stream) const 
 
54
<li>virtual void <a class="el" href="classipe_1_1_curve.html#ad55967b48564f6359f3892664c8d1e85">draw</a> (<a class="el" href="classipe_1_1_painter.html">Painter</a> &amp;painter) const 
 
55
<li>virtual void <a class="el" href="classipe_1_1_curve.html#a4f21270dd069018f5c36c11dc398b218">addToBBox</a> (<a class="el" href="classipe_1_1_rect.html">Rect</a> &amp;box, const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;m, bool cp) const 
 
56
<li>virtual double <a class="el" href="classipe_1_1_curve.html#a7ead7c3d4c6162d591be200b6d701be1">distance</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v, const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;m, double bound) const 
 
57
<li>virtual void <a class="el" href="classipe_1_1_curve.html#adf58b6fcd607adcc8dfc56b244804a2e">snapVtx</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;mouse, const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;m, <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;pos, double &amp;bound) const 
 
58
<li>virtual void <a class="el" href="classipe_1_1_curve.html#a3f8028ef7420ada1c9e2bdfdce9664fc">snapBnd</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;mouse, const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;m, <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;pos, double &amp;bound) const 
 
59
<li>int <a class="el" href="classipe_1_1_curve.html#a00fcca2ac9bc4f12483402d0adf89c7a">countSegments</a> () const 
 
60
<li><a class="el" href="classipe_1_1_curve_segment.html">CurveSegment</a> <a class="el" href="classipe_1_1_curve.html#a16df1dc51f102100684c708677262ae3">segment</a> (int i) const 
 
61
<li><a class="el" href="classipe_1_1_curve_segment.html">CurveSegment</a> <a class="el" href="classipe_1_1_curve.html#a43076f4f28bdc6685ce9cd8f4e805e94">closingSegment</a> (<a class="el" href="classipe_1_1_vector.html">Vector</a> u[2]) const 
 
62
<li>void <a class="el" href="classipe_1_1_curve.html#a176acb526a0608ba486951300e48b2c4">appendSegment</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v0, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v1)
 
63
<li>void <a class="el" href="classipe_1_1_curve.html#a8b6ead7f1adf212eea2578233ced07cb">appendArc</a> (const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;m, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v0, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v1)
 
64
<li>void <a class="el" href="classipe_1_1_curve.html#a62e0ec7e6fc58f8cc2f0e9bda52693ea">appendQuad</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v0, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v1, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v2)
 
65
<li>void <a class="el" href="classipe_1_1_curve.html#a6b1bc6ab4107ec11ce39b1f7349cf2db">appendBezier</a> (const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v0, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v1, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v2, const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;v3)
 
66
<li>void <a class="el" href="classipe_1_1_curve.html#a53a567aa81814b8a97f6b68a9508a8d2">appendSpline</a> (const std::vector&lt; <a class="el" href="classipe_1_1_vector.html">Vector</a> &gt; &amp;v)
 
67
<li>void <a class="el" href="classipe_1_1_curve.html#a8faa181d1b28453e7e6d456d36f090bd">setClosed</a> (bool closed)
 
68
</ul>
 
69
<hr/><a name="_details"></a><h2>Detailed Description</h2>
 
70
<p>Subpath consisting of a sequence of CurveSegment's. </p>
 
71
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
 
72
<a class="anchor" id="acf7a848ad3b0e6a7931bf962941594bc"></a><!-- doxytag: member="ipe::Curve::Curve" ref="acf7a848ad3b0e6a7931bf962941594bc" args="()" -->
 
73
<div class="memitem">
 
74
<div class="memproto">
 
75
      <table class="memname">
 
76
        <tr>
 
77
          <td class="memname">Curve::Curve </td>
 
78
          <td>(</td>
 
79
          <td class="paramname"></td>
 
80
          <td>&nbsp;)&nbsp;</td>
 
81
          <td></td>
 
82
        </tr>
 
83
      </table>
 
84
</div>
 
85
<div class="memdoc">
 
86
 
 
87
<p>Create an empty, open subpath. </p>
 
88
 
 
89
</div>
 
90
</div>
 
91
<hr/><h2>Member Function Documentation</h2>
 
92
<a class="anchor" id="a005753e2c6ff30c126cc74f77773c2c1"></a><!-- doxytag: member="ipe::Curve::type" ref="a005753e2c6ff30c126cc74f77773c2c1" args="() const " -->
 
93
<div class="memitem">
 
94
<div class="memproto">
 
95
      <table class="memname">
 
96
        <tr>
 
97
          <td class="memname"><a class="el" href="classipe_1_1_sub_path.html#ad17bc5b4ed674c253cd81049d7fe1551">SubPath::Type</a> Curve::type </td>
 
98
          <td>(</td>
 
99
          <td class="paramname"></td>
 
100
          <td>&nbsp;)&nbsp;</td>
 
101
          <td> const<code> [virtual]</code></td>
 
102
        </tr>
 
103
      </table>
 
104
</div>
 
105
<div class="memdoc">
 
106
 
 
107
<p>Return type of this subpath. </p>
 
108
 
 
109
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#a1cf726cc8bf16151eb8a2f36a733507a">ipe::SubPath</a>.</p>
 
110
 
 
111
</div>
 
112
</div>
 
113
<a class="anchor" id="a8be05768f0f7c8f39e82c3152c804b40"></a><!-- doxytag: member="ipe::Curve::closed" ref="a8be05768f0f7c8f39e82c3152c804b40" args="() const " -->
 
114
<div class="memitem">
 
115
<div class="memproto">
 
116
      <table class="memname">
 
117
        <tr>
 
118
          <td class="memname">virtual bool ipe::Curve::closed </td>
 
119
          <td>(</td>
 
120
          <td class="paramname"></td>
 
121
          <td>&nbsp;)&nbsp;</td>
 
122
          <td> const<code> [inline, virtual]</code></td>
 
123
        </tr>
 
124
      </table>
 
125
</div>
 
126
<div class="memdoc">
 
127
 
 
128
<p>Is this subpath closed? </p>
 
129
<p>Default implementation returns <code>true</code>. </p>
 
130
 
 
131
<p>Reimplemented from <a class="el" href="classipe_1_1_sub_path.html#a76f0bcfa6de33d0cd01b6d62d61b0bc9">ipe::SubPath</a>.</p>
 
132
 
 
133
</div>
 
134
</div>
 
135
<a class="anchor" id="a0f1f616eb50eee108999b479324438e0"></a><!-- doxytag: member="ipe::Curve::asCurve" ref="a0f1f616eb50eee108999b479324438e0" args="() const " -->
 
136
<div class="memitem">
 
137
<div class="memproto">
 
138
      <table class="memname">
 
139
        <tr>
 
140
          <td class="memname">const <a class="el" href="classipe_1_1_curve.html">Curve</a> * Curve::asCurve </td>
 
141
          <td>(</td>
 
142
          <td class="paramname"></td>
 
143
          <td>&nbsp;)&nbsp;</td>
 
144
          <td> const<code> [virtual]</code></td>
 
145
        </tr>
 
146
      </table>
 
147
</div>
 
148
<div class="memdoc">
 
149
 
 
150
<p>Return this object as an <a class="el" href="classipe_1_1_curve.html" title="Subpath consisting of a sequence of CurveSegment&#39;s.">Curve</a>, or else 0. </p>
 
151
 
 
152
<p>Reimplemented from <a class="el" href="classipe_1_1_sub_path.html#a52ea0a774eedf20b2e498f88879b696d">ipe::SubPath</a>.</p>
 
153
 
 
154
</div>
 
155
</div>
 
156
<a class="anchor" id="a3b8d5f90cd4f6a41d3b7c0108180c4b3"></a><!-- doxytag: member="ipe::Curve::save" ref="a3b8d5f90cd4f6a41d3b7c0108180c4b3" args="(Stream &amp;stream) const " -->
 
157
<div class="memitem">
 
158
<div class="memproto">
 
159
      <table class="memname">
 
160
        <tr>
 
161
          <td class="memname">void Curve::save </td>
 
162
          <td>(</td>
 
163
          <td class="paramtype"><a class="el" href="classipe_1_1_stream.html">Stream</a> &amp;&nbsp;</td>
 
164
          <td class="paramname"> <em>stream</em></td>
 
165
          <td>&nbsp;)&nbsp;</td>
 
166
          <td> const<code> [virtual]</code></td>
 
167
        </tr>
 
168
      </table>
 
169
</div>
 
170
<div class="memdoc">
 
171
 
 
172
<p>Save subpath to XML stream. </p>
 
173
 
 
174
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#a3fa5c6e90febc2f0a2094f32b1fdb3d6">ipe::SubPath</a>.</p>
 
175
 
 
176
</div>
 
177
</div>
 
178
<a class="anchor" id="ad55967b48564f6359f3892664c8d1e85"></a><!-- doxytag: member="ipe::Curve::draw" ref="ad55967b48564f6359f3892664c8d1e85" args="(Painter &amp;painter) const " -->
 
179
<div class="memitem">
 
180
<div class="memproto">
 
181
      <table class="memname">
 
182
        <tr>
 
183
          <td class="memname">void Curve::draw </td>
 
184
          <td>(</td>
 
185
          <td class="paramtype"><a class="el" href="classipe_1_1_painter.html">Painter</a> &amp;&nbsp;</td>
 
186
          <td class="paramname"> <em>painter</em></td>
 
187
          <td>&nbsp;)&nbsp;</td>
 
188
          <td> const<code> [virtual]</code></td>
 
189
        </tr>
 
190
      </table>
 
191
</div>
 
192
<div class="memdoc">
 
193
 
 
194
<p>Draw subpath (does not call drawPath()). </p>
 
195
 
 
196
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#aec23897c9f8d87909af871f9f8c9c804">ipe::SubPath</a>.</p>
 
197
 
 
198
</div>
 
199
</div>
 
200
<a class="anchor" id="a4f21270dd069018f5c36c11dc398b218"></a><!-- doxytag: member="ipe::Curve::addToBBox" ref="a4f21270dd069018f5c36c11dc398b218" args="(Rect &amp;box, const Matrix &amp;m, bool cp) const " -->
 
201
<div class="memitem">
 
202
<div class="memproto">
 
203
      <table class="memname">
 
204
        <tr>
 
205
          <td class="memname">void Curve::addToBBox </td>
 
206
          <td>(</td>
 
207
          <td class="paramtype"><a class="el" href="classipe_1_1_rect.html">Rect</a> &amp;&nbsp;</td>
 
208
          <td class="paramname"> <em>box</em>, </td>
 
209
        </tr>
 
210
        <tr>
 
211
          <td class="paramkey"></td>
 
212
          <td></td>
 
213
          <td class="paramtype">const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;&nbsp;</td>
 
214
          <td class="paramname"> <em>m</em>, </td>
 
215
        </tr>
 
216
        <tr>
 
217
          <td class="paramkey"></td>
 
218
          <td></td>
 
219
          <td class="paramtype">bool&nbsp;</td>
 
220
          <td class="paramname"> <em>cp</em></td><td>&nbsp;</td>
 
221
        </tr>
 
222
        <tr>
 
223
          <td></td>
 
224
          <td>)</td>
 
225
          <td></td><td></td><td> const<code> [virtual]</code></td>
 
226
        </tr>
 
227
      </table>
 
228
</div>
 
229
<div class="memdoc">
 
230
 
 
231
<p>Add subpath to box. </p>
 
232
 
 
233
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#a65ab673650266f8b33d5a57d187f4c4e">ipe::SubPath</a>.</p>
 
234
 
 
235
</div>
 
236
</div>
 
237
<a class="anchor" id="a7ead7c3d4c6162d591be200b6d701be1"></a><!-- doxytag: member="ipe::Curve::distance" ref="a7ead7c3d4c6162d591be200b6d701be1" args="(const Vector &amp;v, const Matrix &amp;m, double bound) const " -->
 
238
<div class="memitem">
 
239
<div class="memproto">
 
240
      <table class="memname">
 
241
        <tr>
 
242
          <td class="memname">double Curve::distance </td>
 
243
          <td>(</td>
 
244
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
245
          <td class="paramname"> <em>v</em>, </td>
 
246
        </tr>
 
247
        <tr>
 
248
          <td class="paramkey"></td>
 
249
          <td></td>
 
250
          <td class="paramtype">const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;&nbsp;</td>
 
251
          <td class="paramname"> <em>m</em>, </td>
 
252
        </tr>
 
253
        <tr>
 
254
          <td class="paramkey"></td>
 
255
          <td></td>
 
256
          <td class="paramtype">double&nbsp;</td>
 
257
          <td class="paramname"> <em>bound</em></td><td>&nbsp;</td>
 
258
        </tr>
 
259
        <tr>
 
260
          <td></td>
 
261
          <td>)</td>
 
262
          <td></td><td></td><td> const<code> [virtual]</code></td>
 
263
        </tr>
 
264
      </table>
 
265
</div>
 
266
<div class="memdoc">
 
267
 
 
268
<p>Return distance from <em>v</em> to subpath transformed by <em>m</em>. </p>
 
269
 
 
270
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#a830bce7339770adce1beb9d46930a61b">ipe::SubPath</a>.</p>
 
271
 
 
272
</div>
 
273
</div>
 
274
<a class="anchor" id="adf58b6fcd607adcc8dfc56b244804a2e"></a><!-- doxytag: member="ipe::Curve::snapVtx" ref="adf58b6fcd607adcc8dfc56b244804a2e" args="(const Vector &amp;mouse, const Matrix &amp;m, Vector &amp;pos, double &amp;bound) const " -->
 
275
<div class="memitem">
 
276
<div class="memproto">
 
277
      <table class="memname">
 
278
        <tr>
 
279
          <td class="memname">void Curve::snapVtx </td>
 
280
          <td>(</td>
 
281
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
282
          <td class="paramname"> <em>mouse</em>, </td>
 
283
        </tr>
 
284
        <tr>
 
285
          <td class="paramkey"></td>
 
286
          <td></td>
 
287
          <td class="paramtype">const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;&nbsp;</td>
 
288
          <td class="paramname"> <em>m</em>, </td>
 
289
        </tr>
 
290
        <tr>
 
291
          <td class="paramkey"></td>
 
292
          <td></td>
 
293
          <td class="paramtype"><a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
294
          <td class="paramname"> <em>pos</em>, </td>
 
295
        </tr>
 
296
        <tr>
 
297
          <td class="paramkey"></td>
 
298
          <td></td>
 
299
          <td class="paramtype">double &amp;&nbsp;</td>
 
300
          <td class="paramname"> <em>bound</em></td><td>&nbsp;</td>
 
301
        </tr>
 
302
        <tr>
 
303
          <td></td>
 
304
          <td>)</td>
 
305
          <td></td><td></td><td> const<code> [virtual]</code></td>
 
306
        </tr>
 
307
      </table>
 
308
</div>
 
309
<div class="memdoc">
 
310
 
 
311
<p><a class="el" href="classipe_1_1_snap.html" title="Performs snapping operations, and stores snapping state.">Snap</a> to vertex. </p>
 
312
 
 
313
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#a9012f567225b77eafdfcf543ae9ab60a">ipe::SubPath</a>.</p>
 
314
 
 
315
</div>
 
316
</div>
 
317
<a class="anchor" id="a3f8028ef7420ada1c9e2bdfdce9664fc"></a><!-- doxytag: member="ipe::Curve::snapBnd" ref="a3f8028ef7420ada1c9e2bdfdce9664fc" args="(const Vector &amp;mouse, const Matrix &amp;m, Vector &amp;pos, double &amp;bound) const " -->
 
318
<div class="memitem">
 
319
<div class="memproto">
 
320
      <table class="memname">
 
321
        <tr>
 
322
          <td class="memname">void Curve::snapBnd </td>
 
323
          <td>(</td>
 
324
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
325
          <td class="paramname"> <em>mouse</em>, </td>
 
326
        </tr>
 
327
        <tr>
 
328
          <td class="paramkey"></td>
 
329
          <td></td>
 
330
          <td class="paramtype">const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;&nbsp;</td>
 
331
          <td class="paramname"> <em>m</em>, </td>
 
332
        </tr>
 
333
        <tr>
 
334
          <td class="paramkey"></td>
 
335
          <td></td>
 
336
          <td class="paramtype"><a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
337
          <td class="paramname"> <em>pos</em>, </td>
 
338
        </tr>
 
339
        <tr>
 
340
          <td class="paramkey"></td>
 
341
          <td></td>
 
342
          <td class="paramtype">double &amp;&nbsp;</td>
 
343
          <td class="paramname"> <em>bound</em></td><td>&nbsp;</td>
 
344
        </tr>
 
345
        <tr>
 
346
          <td></td>
 
347
          <td>)</td>
 
348
          <td></td><td></td><td> const<code> [virtual]</code></td>
 
349
        </tr>
 
350
      </table>
 
351
</div>
 
352
<div class="memdoc">
 
353
 
 
354
<p><a class="el" href="classipe_1_1_snap.html" title="Performs snapping operations, and stores snapping state.">Snap</a> to boundary of subpath. </p>
 
355
 
 
356
<p>Implements <a class="el" href="classipe_1_1_sub_path.html#a19913177fdd50b8fe276e6c6313b569a">ipe::SubPath</a>.</p>
 
357
 
 
358
</div>
 
359
</div>
 
360
<a class="anchor" id="a00fcca2ac9bc4f12483402d0adf89c7a"></a><!-- doxytag: member="ipe::Curve::countSegments" ref="a00fcca2ac9bc4f12483402d0adf89c7a" args="() const " -->
 
361
<div class="memitem">
 
362
<div class="memproto">
 
363
      <table class="memname">
 
364
        <tr>
 
365
          <td class="memname">int ipe::Curve::countSegments </td>
 
366
          <td>(</td>
 
367
          <td class="paramname"></td>
 
368
          <td>&nbsp;)&nbsp;</td>
 
369
          <td> const<code> [inline]</code></td>
 
370
        </tr>
 
371
      </table>
 
372
</div>
 
373
<div class="memdoc">
 
374
 
 
375
<p>Return number of segments. This does not include the closing segment for a closed path. </p>
 
376
 
 
377
</div>
 
378
</div>
 
379
<a class="anchor" id="a16df1dc51f102100684c708677262ae3"></a><!-- doxytag: member="ipe::Curve::segment" ref="a16df1dc51f102100684c708677262ae3" args="(int i) const " -->
 
380
<div class="memitem">
 
381
<div class="memproto">
 
382
      <table class="memname">
 
383
        <tr>
 
384
          <td class="memname"><a class="el" href="classipe_1_1_curve_segment.html">CurveSegment</a> Curve::segment </td>
 
385
          <td>(</td>
 
386
          <td class="paramtype">int&nbsp;</td>
 
387
          <td class="paramname"> <em>i</em></td>
 
388
          <td>&nbsp;)&nbsp;</td>
 
389
          <td> const</td>
 
390
        </tr>
 
391
      </table>
 
392
</div>
 
393
<div class="memdoc">
 
394
 
 
395
<p>Return segment. </p>
 
396
<p>If <em>i</em> is negative, elements from the end are returned. The closing segment of a closed path is not accessible this way (use <a class="el" href="classipe_1_1_curve.html#a43076f4f28bdc6685ce9cd8f4e805e94" title="Returns the closing segment of a closed path.">closingSegment()</a> instead)! </p>
 
397
 
 
398
</div>
 
399
</div>
 
400
<a class="anchor" id="a43076f4f28bdc6685ce9cd8f4e805e94"></a><!-- doxytag: member="ipe::Curve::closingSegment" ref="a43076f4f28bdc6685ce9cd8f4e805e94" args="(Vector u[2]) const " -->
 
401
<div class="memitem">
 
402
<div class="memproto">
 
403
      <table class="memname">
 
404
        <tr>
 
405
          <td class="memname"><a class="el" href="classipe_1_1_curve_segment.html">CurveSegment</a> Curve::closingSegment </td>
 
406
          <td>(</td>
 
407
          <td class="paramtype"><a class="el" href="classipe_1_1_vector.html">Vector</a>&nbsp;</td>
 
408
          <td class="paramname"> <em>u</em>[2]</td>
 
409
          <td>&nbsp;)&nbsp;</td>
 
410
          <td> const</td>
 
411
        </tr>
 
412
      </table>
 
413
</div>
 
414
<div class="memdoc">
 
415
 
 
416
<p>Returns the closing segment of a closed path. </p>
 
417
<p>Since the closing segment isn't actually stored inside this object, you have to provide a length-2 vector for the control points.</p>
 
418
<p>This method panics if the <a class="el" href="classipe_1_1_curve.html" title="Subpath consisting of a sequence of CurveSegment&#39;s.">Curve</a> is not closed. </p>
 
419
 
 
420
</div>
 
421
</div>
 
422
<a class="anchor" id="a176acb526a0608ba486951300e48b2c4"></a><!-- doxytag: member="ipe::Curve::appendSegment" ref="a176acb526a0608ba486951300e48b2c4" args="(const Vector &amp;v0, const Vector &amp;v1)" -->
 
423
<div class="memitem">
 
424
<div class="memproto">
 
425
      <table class="memname">
 
426
        <tr>
 
427
          <td class="memname">void Curve::appendSegment </td>
 
428
          <td>(</td>
 
429
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
430
          <td class="paramname"> <em>v0</em>, </td>
 
431
        </tr>
 
432
        <tr>
 
433
          <td class="paramkey"></td>
 
434
          <td></td>
 
435
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
436
          <td class="paramname"> <em>v1</em></td><td>&nbsp;</td>
 
437
        </tr>
 
438
        <tr>
 
439
          <td></td>
 
440
          <td>)</td>
 
441
          <td></td><td></td><td></td>
 
442
        </tr>
 
443
      </table>
 
444
</div>
 
445
<div class="memdoc">
 
446
 
 
447
<p>Append a straight segment to the subpath. </p>
 
448
 
 
449
</div>
 
450
</div>
 
451
<a class="anchor" id="a8b6ead7f1adf212eea2578233ced07cb"></a><!-- doxytag: member="ipe::Curve::appendArc" ref="a8b6ead7f1adf212eea2578233ced07cb" args="(const Matrix &amp;m, const Vector &amp;v0, const Vector &amp;v1)" -->
 
452
<div class="memitem">
 
453
<div class="memproto">
 
454
      <table class="memname">
 
455
        <tr>
 
456
          <td class="memname">void Curve::appendArc </td>
 
457
          <td>(</td>
 
458
          <td class="paramtype">const <a class="el" href="classipe_1_1_matrix.html">Matrix</a> &amp;&nbsp;</td>
 
459
          <td class="paramname"> <em>m</em>, </td>
 
460
        </tr>
 
461
        <tr>
 
462
          <td class="paramkey"></td>
 
463
          <td></td>
 
464
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
465
          <td class="paramname"> <em>v0</em>, </td>
 
466
        </tr>
 
467
        <tr>
 
468
          <td class="paramkey"></td>
 
469
          <td></td>
 
470
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
471
          <td class="paramname"> <em>v1</em></td><td>&nbsp;</td>
 
472
        </tr>
 
473
        <tr>
 
474
          <td></td>
 
475
          <td>)</td>
 
476
          <td></td><td></td><td></td>
 
477
        </tr>
 
478
      </table>
 
479
</div>
 
480
<div class="memdoc">
 
481
 
 
482
<p>Append elliptic arc to the subpath. </p>
 
483
 
 
484
</div>
 
485
</div>
 
486
<a class="anchor" id="a62e0ec7e6fc58f8cc2f0e9bda52693ea"></a><!-- doxytag: member="ipe::Curve::appendQuad" ref="a62e0ec7e6fc58f8cc2f0e9bda52693ea" args="(const Vector &amp;v0, const Vector &amp;v1, const Vector &amp;v2)" -->
 
487
<div class="memitem">
 
488
<div class="memproto">
 
489
      <table class="memname">
 
490
        <tr>
 
491
          <td class="memname">void Curve::appendQuad </td>
 
492
          <td>(</td>
 
493
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
494
          <td class="paramname"> <em>v0</em>, </td>
 
495
        </tr>
 
496
        <tr>
 
497
          <td class="paramkey"></td>
 
498
          <td></td>
 
499
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
500
          <td class="paramname"> <em>v1</em>, </td>
 
501
        </tr>
 
502
        <tr>
 
503
          <td class="paramkey"></td>
 
504
          <td></td>
 
505
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
506
          <td class="paramname"> <em>v2</em></td><td>&nbsp;</td>
 
507
        </tr>
 
508
        <tr>
 
509
          <td></td>
 
510
          <td>)</td>
 
511
          <td></td><td></td><td></td>
 
512
        </tr>
 
513
      </table>
 
514
</div>
 
515
<div class="memdoc">
 
516
 
 
517
<p>Append quadratic <a class="el" href="classipe_1_1_bezier.html" title="A cubic Bezier spline.">Bezier</a> spline. </p>
 
518
 
 
519
</div>
 
520
</div>
 
521
<a class="anchor" id="a6b1bc6ab4107ec11ce39b1f7349cf2db"></a><!-- doxytag: member="ipe::Curve::appendBezier" ref="a6b1bc6ab4107ec11ce39b1f7349cf2db" args="(const Vector &amp;v0, const Vector &amp;v1, const Vector &amp;v2, const Vector &amp;v3)" -->
 
522
<div class="memitem">
 
523
<div class="memproto">
 
524
      <table class="memname">
 
525
        <tr>
 
526
          <td class="memname">void Curve::appendBezier </td>
 
527
          <td>(</td>
 
528
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
529
          <td class="paramname"> <em>v0</em>, </td>
 
530
        </tr>
 
531
        <tr>
 
532
          <td class="paramkey"></td>
 
533
          <td></td>
 
534
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
535
          <td class="paramname"> <em>v1</em>, </td>
 
536
        </tr>
 
537
        <tr>
 
538
          <td class="paramkey"></td>
 
539
          <td></td>
 
540
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
541
          <td class="paramname"> <em>v2</em>, </td>
 
542
        </tr>
 
543
        <tr>
 
544
          <td class="paramkey"></td>
 
545
          <td></td>
 
546
          <td class="paramtype">const <a class="el" href="classipe_1_1_vector.html">Vector</a> &amp;&nbsp;</td>
 
547
          <td class="paramname"> <em>v3</em></td><td>&nbsp;</td>
 
548
        </tr>
 
549
        <tr>
 
550
          <td></td>
 
551
          <td>)</td>
 
552
          <td></td><td></td><td></td>
 
553
        </tr>
 
554
      </table>
 
555
</div>
 
556
<div class="memdoc">
 
557
 
 
558
<p>Append cubic <a class="el" href="classipe_1_1_bezier.html" title="A cubic Bezier spline.">Bezier</a> spline. </p>
 
559
 
 
560
</div>
 
561
</div>
 
562
<a class="anchor" id="a53a567aa81814b8a97f6b68a9508a8d2"></a><!-- doxytag: member="ipe::Curve::appendSpline" ref="a53a567aa81814b8a97f6b68a9508a8d2" args="(const std::vector&lt; Vector &gt; &amp;v)" -->
 
563
<div class="memitem">
 
564
<div class="memproto">
 
565
      <table class="memname">
 
566
        <tr>
 
567
          <td class="memname">void Curve::appendSpline </td>
 
568
          <td>(</td>
 
569
          <td class="paramtype">const std::vector&lt; <a class="el" href="classipe_1_1_vector.html">Vector</a> &gt; &amp;&nbsp;</td>
 
570
          <td class="paramname"> <em>v</em></td>
 
571
          <td>&nbsp;)&nbsp;</td>
 
572
          <td></td>
 
573
        </tr>
 
574
      </table>
 
575
</div>
 
576
<div class="memdoc">
 
577
 
 
578
<p>Append B-spline curve. </p>
 
579
 
 
580
</div>
 
581
</div>
 
582
<a class="anchor" id="a8faa181d1b28453e7e6d456d36f090bd"></a><!-- doxytag: member="ipe::Curve::setClosed" ref="a8faa181d1b28453e7e6d456d36f090bd" args="(bool closed)" -->
 
583
<div class="memitem">
 
584
<div class="memproto">
 
585
      <table class="memname">
 
586
        <tr>
 
587
          <td class="memname">void Curve::setClosed </td>
 
588
          <td>(</td>
 
589
          <td class="paramtype">bool&nbsp;</td>
 
590
          <td class="paramname"> <em>closed</em></td>
 
591
          <td>&nbsp;)&nbsp;</td>
 
592
          <td></td>
 
593
        </tr>
 
594
      </table>
 
595
</div>
 
596
<div class="memdoc">
 
597
 
 
598
<p>Set whether subpath is closed or not. </p>
 
599
 
 
600
</div>
 
601
</div>
 
602
<hr/>The documentation for this class was generated from the following files:<ul>
 
603
<li>ipeshape.h</li>
 
604
<li>ipeshape.cpp</li>
 
605
</ul>
 
606
</div>
 
607
<hr>
 
608
</body></html>