|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart3D.engine.Projector3D
lt.monarch.chart.chart3D.engine.SimpleProjector3D
public class SimpleProjector3D extends Projector3D implements java.io.Serializable
3D projector maps Point3D objects into the specified projection area.
| Modifier and Type | Field and Description |
|---|---|
protected Rectangle2D |
area
An area to project in. |
protected double |
chartScaleX
A scaling values for chart. |
protected double |
chartScaleY
A scaling values for chart. |
protected double |
chartScaleZ
A scaling values for chart. |
protected double |
transX
Viewing translate coordinates. |
protected double |
transY
Viewing translate coordinates. |
protected double |
viewScaleX
A scaling values for viewing. |
protected double |
viewScaleY
A scaling values for viewing. |
protected double |
viewScaleZ
A scaling values for viewing. |
| Fields inherited from class lt.monarch.chart.chart3D.engine.Projector3D |
|---|
elevation, rotation |
| Constructor and Description |
|---|
SimpleProjector3D()
Constructor. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a copy o the projector. |
Point2D |
get2DTranslation()
Retrieves a translation vector. |
Point3D |
getCenter()
Retrieves a center position. |
double |
getChartScaleX()
Retrieves chart x axis scaling. |
double |
getChartScaleY()
Retrieves chart y axis scaling. |
double |
getChartScaleZ()
Retrieves chart z axis scaling. |
Rectangle2D |
getProjectionArea()
Retrieves a projection area. |
Rectangle2D |
getProjectionAreaReference()
Retrieves a projection area reference. |
double |
getViewScaleX()
Retrieves view x axis scaling. |
double |
getViewScaleY()
Retrieves view y axis scaling. |
double |
getViewScaleZ()
Retrieves view z axis scaling. |
void |
prepare()
Builds the projection matrix. |
GeneralPoint |
project(GeneralPoint point)
Projects a point. |
GeneralPoint |
project(GeneralPoint point,
GeneralPoint pt)
Projects a point. |
Polygon2D |
project(Rectangle2D r)
Projects a rectangle. |
void |
set2DTranslation(double transX,
double transY)
Sets a translation. |
void |
setChartXScaling(double scaleX)
Sets chart x scale. |
void |
setChartYScaling(double scaleY)
Sets chart y scale. |
void |
setChartZScaling(double scaleZ)
Sets chart z scale. |
void |
setProjectionArea(Rectangle2D r)
Sets a projection area. |
void |
setRotateAndFlip(boolean rotateAndFlip)
Indicates whether to use auxiliary rotation and flipping transformations. |
void |
setViewScaling(double scaleX,
double scaleY,
double scaleZ)
Sets a scaling for view. |
| Methods inherited from class lt.monarch.chart.chart3D.engine.Projector3D |
|---|
getElevationAngle, getRotationAngle, setElevationAngle, setRotationAngle |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Rectangle2D area
protected double viewScaleX
protected double viewScaleY
protected double viewScaleZ
protected double chartScaleX
protected double chartScaleY
protected double chartScaleZ
protected double transX
protected double transY
| Constructor Detail |
|---|
public SimpleProjector3D()
| Method Detail |
|---|
public void setProjectionArea(Rectangle2D r)
setProjectionArea in interface Projectorr - projection areapublic Rectangle2D getProjectionAreaReference()
getProjectionAreaReference in interface Projectorpublic Rectangle2D getProjectionArea()
getProjectionArea in interface Projectorpublic GeneralPoint project(GeneralPoint point)
project in interface Projectorpoint - a point to project
public GeneralPoint project(GeneralPoint point,
GeneralPoint pt)
project in interface Projectorpoint - a point to projectpt - a template for projected pointpublic Polygon2D project(Rectangle2D r)
project in interface Projectorr - 2D rectanglepublic void prepare()
prepare in interface Projectorpublic double getChartScaleX()
public double getViewScaleX()
public double getChartScaleY()
public double getViewScaleY()
public double getChartScaleZ()
public double getViewScaleZ()
public void setChartXScaling(double scaleX)
scaleX - x scalepublic void setChartYScaling(double scaleY)
scaleY - y scalepublic void setChartZScaling(double scaleZ)
scaleZ - z scale
public void setViewScaling(double scaleX,
double scaleY,
double scaleZ)
scaleX - scaling in x axisscaleY - scaling in y axisscaleZ - scaling in z axispublic void setRotateAndFlip(boolean rotateAndFlip)
rotateAndFlip - add auxiliary transformationspublic Point2D get2DTranslation()
public void set2DTranslation(double transX,
double transY)
transX - translation along x axistransY - translation along y axispublic Point3D getCenter()
public java.lang.Object clone()
clone in interface Projectorclone in class Projector3D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||