SiMS
|
|
graphyx/graphics/Drawable.scala
]
trait
Drawable
extends
AnyRefValue Summary | |
var
|
g
: java.awt.Graphics
Java Graphics Objekt zur graphischen Darstellung
|
var
|
ppm
: Double
Anzahl von Pixeln pro Meter.
|
var
|
scale
: Double
Skala in der die graphischen Objekte gezeichnet werden.
|
var
|
windowHeight
: Int
Hoehe des Fensters in Pixeln.
|
Method Summary | |
def
|
correctY
(y : Double) : Double
Korrigiert einen Y-Wert in Bildschirmkoordinaten zu seinem kartesischen Aequivalent.
|
abstract def
|
draw
: Unit
Stellt das graphische Objekt dar.
|
def
|
drawCircle
(center : Vector2D, radius : Double) : Unit
Malt einen Kreis auf
g . |
def
|
drawLine
(startPoint : Vector2D, endPoint : Vector2D) : Unit
Malt eine Linie auf
g . |
def
|
drawPoint
(point : Vector2D) : Unit
Malt einen Punkt auf
g . |
def
|
drawPolygon
(points : scala.Seq[Vector2D]) : Unit
Malt ein Polygon auf
g . |
def
|
drawVector
(v : Vector2D, p : Vector2D) : Unit
Malt einen Vektor auf
g . |
def
|
fillCircle
(center : Vector2D, radius : Double) : Unit
Malt einen massiven Kreis auf
g . |
def
|
fillPolygon
(points : scala.Seq[Vector2D]) : Unit
Malt ein massives Polygon auf
g . |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
var
g : java.awt.Graphics
var
ppm : Double
var
scale : Double
var
windowHeight : Int
Method Details |
y -
zu korrigierender Wertg
.startPoint -
Startpunkt in WeltkoordinatenendPoint -
Endpunkt in Weltkoordinateng
.points -
Eckpunkte des Polygons in Weltkoordinateng
.points -
Eckpunkte des Polygons in Weltkoordinateng
.center -
Mitte des Kreises in Weltkoordinatenradius -
Radius des Kreisesg
.center -
Mitte des Kreises in Weltkoordinatenradius -
Radius des Kreisesg
.
Der Punkt wird von einem Kreis umgeben.
point -
Punkt in Weltkoordinateng
.v -
Vektor in Weltkoordinatenp -
Ursprungspunkt in Weltkoordinatenabstract
def
draw : Unit
SiMS
|
|