File: class_ipe_b_box_painter.html

package info (click to toggle)
ipe 6.0pre30-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,100 kB
  • ctags: 5,419
  • sloc: cpp: 30,430; ansic: 1,045; xml: 845; makefile: 78; sh: 5
file content (187 lines) | stat: -rw-r--r-- 8,575 bytes parent folder | download
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Ipelib: IpeBBoxPainter Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<h1>IpeBBoxPainter Class Reference<br>
<small>
[<a class="el" href="group__high.html">Ipe Management</a>]</small>
</h1><!-- doxytag: class="IpeBBoxPainter" --><!-- doxytag: inherits="IpePainter" -->Paint objects using this painter to compute an accurate bounding box.  
<a href="#_details">More...</a>
<p>
Inherits <a class="el" href="class_ipe_painter.html">IpePainter</a>.
<p>
<a href="class_ipe_b_box_painter-members.html">List of all members.</a><h2>Public Member Functions</h2>
<ul>
<li><a class="anchor" name="e44f1510875110b7a8ca76d5092c643d"></a><!-- doxytag: member="IpeBBoxPainter::IpeBBoxPainter" ref="e44f1510875110b7a8ca76d5092c643d" args="(const IpeStyleSheet *style)" -->
<b>IpeBBoxPainter</b> (const <a class="el" href="class_ipe_style_sheet.html">IpeStyleSheet</a> *style)
<li><a class="anchor" name="a16963c4ca13defcca6c53cc260d66c4"></a><!-- doxytag: member="IpeBBoxPainter::BBox" ref="a16963c4ca13defcca6c53cc260d66c4" args="() const" -->
<a class="el" href="class_ipe_rect.html">IpeRect</a> <b>BBox</b> () const
</ul>
<h2>Protected Member Functions</h2>
<ul>
<li>virtual void <a class="el" href="class_ipe_b_box_painter.html#a1ea798c33335ad1ed3de2c8c64848b3">DoMoveTo</a> (const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;v)
<li>virtual void <a class="el" href="class_ipe_b_box_painter.html#4298e92a68e13e6ffd76e5f0e9da8fdc">DoLineTo</a> (const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;v)
<li>virtual void <a class="el" href="class_ipe_b_box_painter.html#35ac16247bbccf32ab113892bda5393e">DoCurveTo</a> (const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;v1, const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;v2, const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;v3)
<li>virtual void <a class="el" href="class_ipe_b_box_painter.html#0f7d3db31efda6941a4e4ed012f6f488">DoDrawBitmap</a> (<a class="el" href="class_ipe_bitmap.html">IpeBitmap</a> bitmap)
<li>virtual void <a class="el" href="class_ipe_b_box_painter.html#7fe3137f2d079b0061da0358fc55ea1e">DoDrawText</a> (const <a class="el" href="class_ipe_text.html">IpeText</a> *text)
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Paint objects using this painter to compute an accurate bounding box. 
<p>
The IpeObjct::BBox member function computes a bounding box useful for distance calculations and optimizations. To find a bounding box that is accurate for the actual <b>drawn</b> object, paint the object using an <a class="el" href="class_ipe_b_box_painter.html">IpeBBoxPainter</a>, and retrieve the box with BBox. 
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a1ea798c33335ad1ed3de2c8c64848b3"></a><!-- doxytag: member="IpeBBoxPainter::DoMoveTo" ref="a1ea798c33335ad1ed3de2c8c64848b3" args="(const IpeVector &amp;v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeBBoxPainter::DoMoveTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>v</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Perform moveto operator. 
<p>

<p>
Reimplemented from <a class="el" href="class_ipe_painter.html#9dd7cfe4535a9432629c4f9e6b55b32c">IpePainter</a>.
</div>
</div><p>
<a class="anchor" name="4298e92a68e13e6ffd76e5f0e9da8fdc"></a><!-- doxytag: member="IpeBBoxPainter::DoLineTo" ref="4298e92a68e13e6ffd76e5f0e9da8fdc" args="(const IpeVector &amp;v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeBBoxPainter::DoLineTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>v</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Perform lineto operator. 
<p>

<p>
Reimplemented from <a class="el" href="class_ipe_painter.html#e98da435504a0af7b2d43b11f5f833a0">IpePainter</a>.
</div>
</div><p>
<a class="anchor" name="35ac16247bbccf32ab113892bda5393e"></a><!-- doxytag: member="IpeBBoxPainter::DoCurveTo" ref="35ac16247bbccf32ab113892bda5393e" args="(const IpeVector &amp;v1, const IpeVector &amp;v2, const IpeVector &amp;v3)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeBBoxPainter::DoCurveTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>v2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_ipe_vector.html">IpeVector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>v3</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Perform curveto operator. 
<p>

<p>
Reimplemented from <a class="el" href="class_ipe_painter.html#236305daf03a444c17b8afc357f96038">IpePainter</a>.
</div>
</div><p>
<a class="anchor" name="0f7d3db31efda6941a4e4ed012f6f488"></a><!-- doxytag: member="IpeBBoxPainter::DoDrawBitmap" ref="0f7d3db31efda6941a4e4ed012f6f488" args="(IpeBitmap bitmap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeBBoxPainter::DoDrawBitmap           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_ipe_bitmap.html">IpeBitmap</a>&nbsp;</td>
          <td class="paramname"> <em>bitmap</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw a bitmap. 
<p>

<p>
Reimplemented from <a class="el" href="class_ipe_painter.html#925ff79289ebceb6c640f8fecb3d75bf">IpePainter</a>.
</div>
</div><p>
<a class="anchor" name="7fe3137f2d079b0061da0358fc55ea1e"></a><!-- doxytag: member="IpeBBoxPainter::DoDrawText" ref="7fe3137f2d079b0061da0358fc55ea1e" args="(const IpeText *text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IpeBBoxPainter::DoDrawText           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ipe_text.html">IpeText</a> *&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw a text object. 
<p>

<p>
Reimplemented from <a class="el" href="class_ipe_painter.html#16cc51ba8861d3ee94b5c61564b0e0d7">IpePainter</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li>ipeutils.h<li>ipeutils.cpp</ul>
<hr>
</body></html>