|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.UserCoordinates
com.quinncurtis.chart3djava.WorldCoordinates
public class WorldCoordinates
This class extends the UserCoordinates class, adding routines for drawing using world (or scaled) coordinates.
Field Summary |
---|
Constructor Summary | |
---|---|
WorldCoordinates()
The default WorldCoordinates constructor. |
Method Summary | |
---|---|
void |
copy(WorldCoordinates source)
Copies the source WorldCoordinates object. |
int |
errorCheck(int nerror)
Checks the object for common errors. |
ChartPoint3D |
GetWorldCurrentPos()
This method returns the current position, in world coordinates, of the graphics pen. |
double |
getWorldX1()
This method returns the lower left x-value defining the world coordinate system. |
double |
getWorldX2()
This method returns the upper right x-value defining the world coordinate system. |
double |
getWorldY1()
This method returns the lower left y-value defining the world coordinate system. |
double |
getWorldY2()
This method returns the upper right y-value defining the world coordinate system. |
double |
getWorldZ1()
This method returns the lower left z-value defining the world coordinate system. |
double |
getWorldZ2()
This method returns the upper right z-value defining the world coordinate system. |
void |
setWorldScale(ChartRectangle3D rect)
Sets the minimum and maximum values for x- and y-dimension the world coordinate system. |
void |
setWorldScale(double left,
double bottom,
double near,
double right,
double top,
double far)
Sets the minimum and maximum values for x- and y-dimension the world coordinate system. |
ChartPoint3D |
userToWorld(ChartPoint3D source)
This method converts x, y and z user coordinates into world coordinate values. |
void |
userToWorld(ChartPoint3D dest,
ChartPoint3D source)
This method converts x, y and z user coordinates into world coordinate values. |
void |
userToWorld(ChartPoint3D dest,
double px,
double py,
double pz)
This method converts x, y and z user coordinates into world coordinate values. |
ChartPoint3D |
userToWorld(double px,
double py,
double pz)
This method converts x, y and z user coordinates into world coordinate values. |
double |
userToWorldAbsX(double ruserx)
This method converts an absolute device value into a world coordinate value. |
double |
userToWorldAbsY(double rusery)
This method converts an absolute device value into a world coordinate value. |
double |
userToWorldAbsZ(double ruserz)
This method converts an absolute device value into a world coordinate value. |
double |
userToWorldRelX(double ruserx)
This method converts a device delta x value into a world coordinate value. |
double |
userToWorldRelY(double rusery)
This method converts a device delta y value into a world coordinate value. |
double |
userToWorldRelZ(double ruserz)
This method converts a device delta z value into a world coordinate value. |
ChartPoint3D |
worldToUser(ChartPoint3D source)
This method converts x, y and z world coordinates into user coordinate values. |
void |
WorldToUser(ChartPoint3D dest,
ChartPoint3D source)
This method converts x, y and z world coordinates into user coordinate values. |
ChartPoint3D |
worldToUser(double wx1,
double wy1,
double wz1)
This method converts x, y and z world coordinates into user coordinate values. |
double |
worldToUserAbsX(double rphysx)
This method converts an absolute world x-coordinate value into a device coordinate value. |
double |
worldToUserAbsY(double rphysy)
This method converts an absolute world y-coordinate value into a device coordinate value. |
double |
worldToUserAbsZ(double rphysz)
This method converts an absolute world z-coordinate value into a device coordinate value. |
double |
worldToUserRelX(double rphysx)
This method converts a relative world delta x value into a device coordinate value. |
double |
worldToUserRelY(double rphysy)
This method converts a relative world delta y value into a device coordinate value. |
double |
worldToUserRelZ(double rphysz)
This method converts a relative world delta z value into a device coordinate value. |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorldCoordinates()
Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class UserCoordinates
nerror
- Current error state
public void copy(WorldCoordinates source)
source
- The source WorldCoordinates object.public void setWorldScale(double left, double bottom, double near, double right, double top, double far)
left
- The x-value of the lower left corner of the world coordinate system.bottom
- The y-value of the lower left corner of the world coordinate system.near
- The z-value of the lower left corner of the world coordinate system.right
- The x-value of the upper right corner of the world coordinate system.top
- The y-value of the upper right corner of the world coordinate system.far
- The z-value of the upper right corner of the world coordinate system.public void setWorldScale(ChartRectangle3D rect)
rect
- A rectangle specifying the corners of the world coordinate system.public double worldToUserAbsX(double rphysx)
rphysx
- An x-coordinate value in world coordinates.
public double worldToUserAbsY(double rphysy)
rphysy
- A y-coordinate value in world coordinates.
public double worldToUserAbsZ(double rphysz)
rphysz
- A z-coordinate value in world coordinates.
public double worldToUserRelX(double rphysx)
rphysx
- A x-coordinate delta value in world coordinates.
public double worldToUserRelY(double rphysy)
rphysy
- A y-coordinate delta value in world coordinates.
public double worldToUserRelZ(double rphysz)
rphysz
- A z-coordinate delta value in world coordinates.
public double userToWorldAbsX(double ruserx)
ruserx
- An x-coordinate value in window device coordinates.
public double userToWorldAbsY(double rusery)
rusery
- An y-coordinate value in window device coordinates.
public double userToWorldAbsZ(double ruserz)
ruserz
- An z-coordinate value in window device coordinates.
public double userToWorldRelX(double ruserx)
ruserx
- A x-coordinate delta value in user coordinates.
public double userToWorldRelY(double rusery)
rusery
- A y-coordinate delta value in user coordinates.
public double userToWorldRelZ(double ruserz)
ruserz
- A z-coordinate delta value in user coordinates.
public ChartPoint3D userToWorld(double px, double py, double pz)
px
- A x-coordinate value in user coordinates.py
- A y-coordinate value in user coordinates.pz
- A z-coordinate value in user coordinates.
public void userToWorld(ChartPoint3D dest, double px, double py, double pz)
dest
- Returns the world coordinate values corresponding to the input user coordinate values.px
- A x-coordinate value in user coordinates.py
- A y-coordinate value in user coordinates.pz
- A z-coordinate value in user coordinates.public ChartPoint3D userToWorld(ChartPoint3D source)
source
- A xy point in user coordinates.
public void userToWorld(ChartPoint3D dest, ChartPoint3D source)
source
- A xy point in user coordinates.dest
- Returns the world coordinate values corresponding to the input user coordinate values.public ChartPoint3D worldToUser(double wx1, double wy1, double wz1)
wx1
- A x-coordinate value in world coordinates.wy1
- A y-coordinate value in world coordinates.wz1
- A z-coordinate value in world coordinates.
public ChartPoint3D worldToUser(ChartPoint3D source)
source
- A xy point in world coordinates.
public void WorldToUser(ChartPoint3D dest, ChartPoint3D source)
source
- A xy point in world coordinates.dest
- Returns the user coordinate values corresponding to the input world coordinate values.public ChartPoint3D GetWorldCurrentPos()
public double getWorldX1()
public double getWorldY1()
public double getWorldZ1()
public double getWorldX2()
public double getWorldY2()
public double getWorldZ2()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |