public final class SurfacePlotProjector
extends java.lang.Object
Projector
projects points in 3D space to 2D space.Modifier and Type | Method and Description |
---|---|
int |
get2D_xTranslation()
Gets the 2D x translation.
|
int |
get2D_yTranslation()
Gets the 2D y translation.
|
double |
get2DScaling()
Gets the 2D scaling factor.
|
double |
getCosElevationAngle()
Gets the cosine of elevation angle.
|
double |
getCosRotationAngle()
Gets the cosine of rotation angle.
|
double |
getDistance()
Gets the projector distance.
|
double |
getElevationAngle()
Gets current elevation angle.
|
double |
getRotationAngle()
Gets current rotation angle.
|
double |
getSinElevationAngle()
Gets the sine of elevation angle.
|
double |
getSinRotationAngle()
Gets the sine of rotation angle.
|
double |
getXScaling()
Gets the scaling factor in x direction.
|
double |
getYScaling()
Gets the scaling factor in y direction.
|
double |
getZScaling()
Gets the scaling factor in z direction.
|
java.awt.Point |
project(double x,
double y,
double z)
Projects 3D points.
|
void |
set2D_xTranslation(int x)
Sets the 2D x translation.
|
void |
set2D_yTranslation(int y)
Sets the 2D y translation.
|
void |
set2DScaling(double scaling)
Sets the 2D scaling factor.
|
void |
set2DTranslation(int x,
int y)
Sets the 2D translation.
|
void |
setDistance(double new_distance)
Sets the projector distance.
|
void |
setElevationAngle(double angle)
Sets the elevation angle.
|
void |
setProjectionArea(java.awt.Rectangle r)
Sets the projection area.
|
void |
setRotationAngle(double angle)
Sets the rotation angle.
|
void |
setScaling(double scaling)
Sets the same scaling factor for all direction.
|
void |
setScaling(double x,
double y,
double z)
Sets the scaling factor in all direction.
|
void |
setXScaling(double scaling)
Sets the scaling factor in x direction.
|
void |
setYScaling(double scaling)
Sets the scaling factor in y direction.
|
void |
setZScaling(double scaling)
Sets the scaling factor in z direction.
|
public void setProjectionArea(java.awt.Rectangle r)
r
- the projection areapublic void setRotationAngle(double angle)
angle
- the rotation angle in degreespublic double getRotationAngle()
public double getSinRotationAngle()
public double getCosRotationAngle()
public void setElevationAngle(double angle)
angle
- the elevation angle in degreespublic double getElevationAngle()
public double getSinElevationAngle()
public double getCosElevationAngle()
public void setDistance(double new_distance)
new_distance
- the new distancepublic double getDistance()
public void setXScaling(double scaling)
scaling
- the scaling factorpublic double getXScaling()
public void setYScaling(double scaling)
scaling
- the scaling factorpublic double getYScaling()
public void setZScaling(double scaling)
scaling
- the scaling factorpublic double getZScaling()
public void setScaling(double x, double y, double z)
x
- the scaling factor in x directiony
- the scaling factor in y directionz
- the scaling factor in z directionpublic void setScaling(double scaling)
scaling
- the scaling factorpublic void set2DScaling(double scaling)
scaling
- the scaling factorpublic double get2DScaling()
public void set2DTranslation(int x, int y)
x
- the x translationy
- the y translationpublic void set2D_xTranslation(int x)
x
- the x translationpublic int get2D_xTranslation()
public void set2D_yTranslation(int y)
y
- the y translationpublic int get2D_yTranslation()
public final java.awt.Point project(double x, double y, double z)
x
- the x coordinatey
- the y coordinatez
- the z coordinate