public class ImageElement
extends java.lang.Object
ImageElement
class has functions for image painting.
title: SystemCoreLib
description: functions for image painting
copyright: (c) 2012 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Constructor and Description |
---|
ImageElement(double px1,
double py1,
double pz1,
boolean precalc,
java.awt.Color pcolor)
The constructor
ImageElement creates a new instance(object) of the class. |
ImageElement(double px1,
double py1,
double pz1,
double center_x,
double center_y,
boolean precalc,
java.awt.Color pcolor)
The constructor
ImageElement creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList |
calc3DCoords(double x,
double y,
double z,
double center_x,
double center_y)
The Method
calc3DCoords transformation of the cartesian coordinates to 3D. |
void |
draw2D(GraphicParameter gp,
boolean convert_coordinates)
The method
draw2D draw the object. |
void |
draw3D(GraphicParameter gp,
boolean convert_coordinates)
The method
draw3D draw the object. |
java.awt.Color |
getColor()
get field: the current color.
|
boolean |
getRecalc()
get field: the current recalc.
|
double |
getX1_old()
get field: the current value of x1.
|
double |
getX1()
get field: the current value of x1.
|
double |
getY1_old()
get field: the current value of y1.
|
double |
getY1()
get field: the current value of y1.
|
double |
getZ1_old()
get field: the current value of z1.
|
double |
getZ1()
get field: the current value of z1.
|
void |
setColor(java.awt.Color input)
set field: set the field color.
|
void |
setRecalc(boolean input)
set field: the current recalc.
|
void |
setX1(double input)
set field: set the field of x1.
|
void |
setY1(double input)
set field: set the field of y1.
|
void |
setZ1(double input)
set field: set the field z1.
|
public ImageElement(double px1, double py1, double pz1, boolean precalc, java.awt.Color pcolor)
ImageElement
creates a new instance(object) of the class.px1
- coordinate.py1
- coordinate.pz1
- coordinate.precalc
- .pcolor
- the .public ImageElement(double px1, double py1, double pz1, double center_x, double center_y, boolean precalc, java.awt.Color pcolor)
ImageElement
creates a new instance(object) of the class.px1
- coordinate.py1
- coordinate.pz1
- coordinate.center_x
- the center for 3D graphics.center_y
- the center for 3D graphics.precalc
- .pcolor
- the .public boolean getRecalc()
public double getX1()
public double getY1()
public double getZ1()
public double getX1_old()
public double getY1_old()
public double getZ1_old()
public java.awt.Color getColor()
public void setRecalc(boolean input)
input
- the recalcpublic void setX1(double input)
input
- x1public void setY1(double input)
input
- y1public void setZ1(double input)
input
- z1public void setColor(java.awt.Color input)
input
- colorpublic void draw2D(GraphicParameter gp, boolean convert_coordinates) throws java.lang.Exception
draw2D
draw the object.gp
- the graphic parameters.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic void draw3D(GraphicParameter gp, boolean convert_coordinates) throws java.lang.Exception
draw3D
draw the object.gp
- the graphic parameters.convert_coordinates
- true = coordinates conversion with calculated factors.java.lang.Exception
- if errorpublic java.util.ArrayList calc3DCoords(double x, double y, double z, double center_x, double center_y)
calc3DCoords
transformation of the cartesian coordinates to 3D.x
- coorinate.y
- coordinate.z
- coordinate.center_x
- center x.center_y
- center y.