aboutsummaryrefslogtreecommitdiff
path: root/zinclib.d/doc/html/ZincPath_8hpp-source.html
blob: c79af5f4dc19453fb99f0cb7ab4b847271961024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>IntuiKit: ZincPath.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.3 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>ZincPath.hpp</h1><a href="ZincPath_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00015 <span class="preprocessor">#include "<a class="code" href="ZincTypes_8hpp.html">ZincTypes.hpp</a>"</span>
00016 
00017 <span class="preprocessor">#include &lt;list&gt;</span>
00018 <span class="preprocessor">#include &lt;tcl.h&gt;</span>
00019 
00020 <span class="preprocessor">#ifndef ZINC_PATH</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#define ZINC_PATH</span>
00022 <span class="preprocessor"></span>
<a name="l00023"></a><a class="code" href="classZincPath.html">00023</a> <span class="keyword">class </span><a class="code" href="classZincPath.html">ZincPath</a>
00024 {
00025   <span class="keywordtype">double</span> firstX, firstY;     <span class="comment">//first point's coordinate</span>
00026   <span class="keywordtype">double</span> lastX, lastY;       <span class="comment">//last point's coordinate</span>
00027   Tcl_Obj* path;             <span class="comment">//list of points</span>
00028 
00035   <span class="keyword">inline</span> <span class="keywordtype">void</span> addPoint (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">bool</span> c);
00036 
00051   <span class="keywordtype">void</span> convertFromSvg (<span class="keywordtype">double</span> x0, <span class="keywordtype">double</span> y0, <span class="keywordtype">double</span> &amp;rx, <span class="keywordtype">double</span> &amp;ry, <span class="keywordtype">double</span> &amp;phi,
00052                        <span class="keywordtype">bool</span> larcgeArc, <span class="keywordtype">bool</span> sweep, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y,
00053                        <span class="keywordtype">double</span> &amp;cx, <span class="keywordtype">double</span> &amp;cy, <span class="keywordtype">double</span> &amp;theta, <span class="keywordtype">double</span> &amp;delta);
00054 
00055 
00056 <span class="keyword">public</span>:
00062   <a class="code" href="classZincPath.html#a0">ZincPath</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
00063 
00069   <a class="code" href="classZincPath.html#a1">~ZincPath</a> ();
00070 
00071   <span class="comment">/******************************************</span>
00072 <span class="comment">       ZincPath manipulation</span>
00073 <span class="comment">  ******************************************/</span>
00077   <span class="keywordtype">void</span> <a class="code" href="classZincPath.html#a2">close</a> ();
00078 
00084   <span class="keywordtype">void</span> <a class="code" href="classZincPath.html#a3">lineTo</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
00085 
00094   <span class="keywordtype">void</span> <a class="code" href="classZincPath.html#a4">curveTo</a> (<span class="keywordtype">double</span> cx1, <span class="keywordtype">double</span> cy1, <span class="keywordtype">double</span> cx2, <span class="keywordtype">double</span> cy2,
00095                 <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
00096 
00104   <span class="keywordtype">void</span> <a class="code" href="classZincPath.html#a5">cubicBezierTo</a> (<span class="keywordtype">double</span> cx1, <span class="keywordtype">double</span> cy1, <span class="keywordtype">double</span> cx2, <span class="keywordtype">double</span> cy2,
00105                       <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
00106 
00114   <span class="keywordtype">void</span> <a class="code" href="classZincPath.html#a6">quadraticBezierTo</a> (<span class="keywordtype">double</span> cx, <span class="keywordtype">double</span> cy, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
00115 
00126   <span class="keywordtype">void</span> <a class="code" href="classZincPath.html#a7">arcTo</a> (<span class="keywordtype">double</span> rx, <span class="keywordtype">double</span> ry, <span class="keywordtype">double</span> xAxisRotation, <span class="keywordtype">bool</span> largeArc,
00127               <span class="keywordtype">bool</span> sweepFlag, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
00128   
00135   Tcl_Obj* <a class="code" href="classZincPath.html#a8">getTable</a> ();
00136 
00137 };
00138 
00139 <span class="preprocessor">#endif</span>
00140 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Apr 18 17:40:44 2005 for IntuiKit by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.3 </small></address>
</body>
</html>