summaryrefslogtreecommitdiff
path: root/doc/graphyx/graphics/GraphicalObject.html
blob: c99d087a5eb7f02012d67c7d03cf63117bddca2f (plain) (blame)
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
          <title>Scaladoc for graphyx.graphics.GraphicalObject</title>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		      <script type="text/javascript" src="../../lib/jquery.js"></script>
          
		  <style type="text/css">
		    @import url(../../lib/template.css) screen;
		  </style>
		  <script type="text/javascript" src="../../lib/template.js"></script>
    
        </head>
        <body class="type">
      
      <p id="owner"><a href="../package.html">graphyx</a>.<a href="package.html">graphics</a></p>

      <div id="definition">
        <img src="../../lib/trait_big.png" />
        <h1>GraphicalObject</h1>
      </div>

      <h4 class="signature">
      <span class="kind">trait</span>
      <span class="symbol">
        <span class="name">GraphicalObject</span><span class="result"> extends <a href="Drawable.html" class="extype" name="graphyx.graphics.Drawable">Drawable</a></span>
      </span>
      </h4>
      <div class="fullcomment" id="comment">
      <div class="comment cmt"><p>Only copies functional info! (e.g. Graphical world does not include shapes, bodies).</p></div>
      
      
      
      <div class="block">
                known subclasses: <a href="GraphicalJoint.html">GraphicalJoint</a>, <a href="GraphicalShape.html">GraphicalShape</a>, <a href="GraphicalPair.html">GraphicalPair</a>, <a href="GraphicalCollision.html">GraphicalCollision</a>, <a href="GraphicalBody.html">GraphicalBody</a>, <a href="GraphicalAABB.html">GraphicalAABB</a>
              </div>
    </div>
      
      <div id="template">
      
        <div id="mbrsel">
              <div id="ancestors">
                <h3>Inherits</h3>
                <ol><li class="in" name="graphyx.graphics.Drawable">Drawable</li><li class="in" name="scala.AnyRef">AnyRef</li><li class="in" name="scala.Any">Any</li></ol>
              </div>
            </div>
        
        
        
        <div class="members" id="values">
              <h3>Value Members</h3>
              <ol><li name="graphyx.graphics.Drawable#correctY">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">correctY</span><span class="params">(<span name="y">y: <span class="extype" name="scala.Double">Double</span></span>)</span><span class="result">: <span class="extype" name="scala.Double">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent</p><div class="fullcomment">
      <div class="comment cmt"><p>Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.</p></div>
      <dl class="paramcmts block"><dt class="param">y</dt><dd class="cmt"><p>zu korrigierender Wert</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.GraphicalObject#draw">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">draw</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Stellt das graphische Objekt dar</p><div class="fullcomment">
      <div class="comment cmt"><p>Stellt das graphische Objekt dar.</p></div>
      
      <div class="block">
            attributes: abstract 
          </div>
      
      
    </div>
    </li><li name="graphyx.graphics.Drawable#drawCircle">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">drawCircle</span><span class="params">(<span name="center">center: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>, <span name="radius">radius: <span class="extype" name="scala.Double">Double</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt einen Kreis auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt einen Kreis auf <code>g</code>.</p></div>
      <dl class="paramcmts block"><dt class="param">center</dt><dd class="cmt"><p>Mitte des Kreises in Weltkoordinaten</p></dd><dt class="param">radius</dt><dd class="cmt"><p>Radius des Kreises</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#drawLine">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">drawLine</span><span class="params">(<span name="startPoint">startPoint: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>, <span name="endPoint">endPoint: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt eine Linie auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt eine Linie auf <code>g</code>.</p></div>
      <dl class="paramcmts block"><dt class="param">startPoint</dt><dd class="cmt"><p>Startpunkt in Weltkoordinaten</p></dd><dt class="param">endPoint</dt><dd class="cmt"><p>Endpunkt in Weltkoordinaten</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#drawPoint">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">drawPoint</span><span class="params">(<span name="point">point: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt einen Punkt auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt einen Punkt auf <code>g</code>.
<p>
Der Punkt wird von einem Kreis umgeben.</p></div>
      <dl class="paramcmts block"><dt class="param">point</dt><dd class="cmt"><p>Punkt in Weltkoordinaten</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#drawPolygon">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">drawPolygon</span><span class="params">(<span name="points">points: <span class="extype" name="scala.collection.Seq">Seq</span>[<a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a>]</span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt ein Polygon auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt ein Polygon auf <code>g</code>.</p></div>
      <dl class="paramcmts block"><dt class="param">points</dt><dd class="cmt"><p>Eckpunkte des Polygons in Weltkoordinaten</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#drawVector">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">drawVector</span><span class="params">(<span name="v">v: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>, <span name="p">p: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt einen Vektor auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt einen Vektor auf <code>g</code>.</p></div>
      <dl class="paramcmts block"><dt class="param">v</dt><dd class="cmt"><p>Vektor in Weltkoordinaten</p></dd><dt class="param">p</dt><dd class="cmt"><p>Ursprungspunkt in Weltkoordinaten</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="scala.AnyRef#equals">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">equals</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">This method is used to compare the receiver object (<code>this</code>)
with the argument object (<code>arg0</code>) for equivalence</p><div class="fullcomment">
      <div class="comment cmt"><p>This method is used to compare the receiver object (<code>this</code>)
with the argument object (<code>arg0</code>) for equivalence.</p><p><p>
The default implementations of this method is an <a
href="http://en.wikipedia.org/wiki/Equivalence_relation">equivalence
relation</a>:
  <ul>
 <li>It is reflexive: for any instance <code>x</code> of type <code>Any</code>,
 <code>x.equals(x)</code> should return <code>true</code>.</li>
 <li>It is symmetric: for any instances <code>x</code> and <code>y</code> of type
 <code>Any</code>, <code>x.equals(y)</code> should return <code>true</code> if and only
 if <code>y.equals(x)</code> returns <code>true</code>.</li>
 <li>It is transitive: for any instances
 <code>x</code>, <code>y</code>, and <code>z</code> of type <code>AnyRef</code>
 if <code>x.equals(y)</code> returns <code>true</code> and
 <code>y.equals(z)</code> returns
 <code>true</code>, then <code>x.equals(z)</code> should return <code>true</code>.</li>
</ul>
</p></p><p><p>
If you override this method, you should verify that
your implementation remains an equivalence relation.
Additionally, when overriding this method it is often necessary to
override <code>hashCode</code> to ensure that objects that are
"equal" (<code>o1.equals(o2)</code> returns <code>true</code>)
hash to the same <a href="Int.html"><code>Int</code></a>
(<code>o1.hashCode.equals(o2.hashCode)</code>).
</p></div>
      <dl class="paramcmts block"><dt class="param">arg0</dt><dd class="cmt"><p>the object to compare against this object for equality.</p></dd><dt>returns</dt><dd class="cmt"><p><code>true</code> if the receiver object is equivalent to the argument; <code>false</code> otherwise.
</p></p></dd></dl>
      
      <div class="block">
            definition classes: AnyRef ⇐ Any
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#fillCircle">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">fillCircle</span><span class="params">(<span name="center">center: <a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a></span>, <span name="radius">radius: <span class="extype" name="scala.Double">Double</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt einen massiven Kreis auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt einen massiven Kreis auf <code>g</code>.</p></div>
      <dl class="paramcmts block"><dt class="param">center</dt><dd class="cmt"><p>Mitte des Kreises in Weltkoordinaten</p></dd><dt class="param">radius</dt><dd class="cmt"><p>Radius des Kreises</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#fillPolygon">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">fillPolygon</span><span class="params">(<span name="points">points: <span class="extype" name="scala.collection.Seq">Seq</span>[<a href="../../sims/geometry/Vector2D.html" class="extype" name="sims.geometry.Vector2D">Vector2D</a>]</span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Malt ein massives Polygon auf <code>g</code></p><div class="fullcomment">
      <div class="comment cmt"><p>Malt ein massives Polygon auf <code>g</code>.</p></div>
      <dl class="paramcmts block"><dt class="param">points</dt><dd class="cmt"><p>Eckpunkte des Polygons in Weltkoordinaten</p></dd></dl>
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#g">
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol">
        <span class="name">g</span><span class="result">: <span class="extype" name="java.awt.Graphics2D">Graphics2D</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java Graphics Objekt zur graphischen Darstellung</p><div class="fullcomment">
      <div class="comment cmt"><p>Java Graphics Objekt zur graphischen Darstellung</p></div>
      
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="scala.AnyRef#hashCode">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Returns a hash code value for the object</p><div class="fullcomment">
      <div class="comment cmt"><p>Returns a hash code value for the object.</p><p><p>
The default hashing algorithm is platform dependent.</p><p>Note that it is allowed for two objects to have identical hash
codes (<code>o1.hashCode.equals(o2.hashCode)</code>) yet not be
equal (<code>o1.equals(o2)</code> returns <code>false</code>).  A
degenerate implementation could always return <code>0</code>.
However, it is required that if two objects are equal
(<code>o1.equals(o2)</code> returns <code>true</code>) that they
have identical hash codes
(<code>o1.hashCode.equals(o2.hashCode)</code>).  Therefore, when
overriding this method, be sure to verify that the behavior is
consistent with the <code>equals</code> method.
</p></p><p><p></p></div>
      
      
      <div class="block">
            definition classes: AnyRef ⇐ Any
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#ppm">
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol">
        <span class="name">ppm</span><span class="result">: <span class="extype" name="scala.Double">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Anzahl von Pixeln pro Meter</p><div class="fullcomment">
      <div class="comment cmt"><p>Anzahl von Pixeln pro Meter.</p></div>
      
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="graphyx.graphics.GraphicalObject#real">
      <h4 class="signature">
      <span class="kind">val</span>
      <span class="symbol">
        <span class="name">real</span><span class="result">: AnyRef</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Pointer to real object</p><div class="fullcomment">
      <div class="comment cmt"><p>Pointer to real object.</p></div>
      
      <div class="block">
            attributes: abstract 
          </div>
      
      
    </div>
    </li><li name="graphyx.graphics.Drawable#scale">
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol">
        <span class="name">scale</span><span class="result">: <span class="extype" name="scala.Double">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Skala in der die graphischen Objekte gezeichnet werden</p><div class="fullcomment">
      <div class="comment cmt"><p>Skala in der die graphischen Objekte gezeichnet werden.</p></div>
      
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li><li name="scala.AnyRef#toString">
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.String">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Returns a string representation of the object</p><div class="fullcomment">
      <div class="comment cmt"><p>Returns a string representation of the object.
<p>
The default representation is platform dependent.
</p></div>
      
      
      <div class="block">
            definition classes: AnyRef ⇐ Any
          </div>
      
    </div>
    </li><li name="graphyx.graphics.Drawable#windowHeight">
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol">
        <span class="name">windowHeight</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Hoehe des Fensters in Pixeln</p><div class="fullcomment">
      <div class="comment cmt"><p>Hoehe des Fensters in Pixeln.</p></div>
      
      
      <div class="block">
            definition classes: <a href="Drawable.html">Drawable</a>
          </div>
      
    </div>
    </li></ol>
            </div>
        
        
        
      </div>
      
    </body>
      </html>