public final class WorldTransform
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
aspectRatio |
private int |
bottomMargin |
private boolean |
constantAspectRatio |
private double |
DBIG |
private double |
dpdwx |
private double |
dpdwx0 |
private double |
dpdwy |
private double |
dpdwy0 |
private int |
height |
private int |
hx |
private int |
hy |
private static int |
IBIG |
private int |
leftMargin |
private double[][] |
m3B |
private double |
m3xx |
private double |
m3xy |
private double |
m3xz |
private double |
m3yx |
private double |
m3yy |
private double |
m3yz |
private double |
m3zx |
private double |
m3zy |
private double |
m3zz |
(package private) int |
nRangeListener |
private Size |
p_pixelSize |
private int |
pcx |
private int |
pcy |
private RangeListener[] |
rangeListeners |
private boolean |
recordRange |
private int |
rightMargin |
private RotationListener |
rotationListener |
private static double |
SMALL |
private int |
topMargin |
private boolean |
trialPanning |
private double |
vxmax |
private double |
vxmin |
private double |
vymax |
private double |
vymin |
private double |
w2cx |
private double |
w2cy |
private double |
w2cz |
private double |
w3cx |
private double |
w3cy |
private double |
w3cz |
private double |
wcx |
private double |
wcx0 |
private double |
wcxtp |
private double |
wcy |
private double |
wcy0 |
private double |
wcytp |
private int |
width |
private boolean |
xRescalable |
private boolean |
yRescalable |
private double |
zoomCenX |
private double |
zoomCenY |
Constructor and Description |
---|
WorldTransform() |
Modifier and Type | Method and Description |
---|---|
void |
addRangeListener(RangeListener rl) |
(package private) void |
applyRecordedRange() |
(package private) void |
applyRotation(double[][] mr) |
(package private) void |
axisRotate(double thax,
double thr) |
(package private) void |
boxSelected(int x0,
int y0,
int x1,
int y1) |
(package private) void |
clearRanges() |
double[] |
deProject(double x,
double y,
double z) |
double |
dPdX() |
double |
dPdY() |
void |
dragRollRotate(int idx,
int idy) |
(package private) void |
dragZoom(double fxin,
double fyin,
int xc,
int yc) |
void |
dragZRotate(int idx,
int idy) |
private void |
enforceAspectRatioX() |
private void |
enforceAspectRatioY() |
void |
ensureCovers(double xl,
double yl,
double xh,
double yh) |
void |
fixRanges() |
(package private) float[] |
floatDeviceX(double[] wx) |
(package private) float[] |
floatDeviceY(double[] wy) |
double[] |
get2Center() |
double[] |
get3Center() |
int |
getBottomMargin() |
int |
getCanvasHeight() |
int |
getCanvasWidth() |
int |
getHeight() |
int[] |
getIntPosition(double x,
double y) |
int |
getLeftMargin() |
double |
getPixelArea() |
Size |
getPixelSize() |
double[][] |
getProjectionMatrix() |
double |
getScale() |
int |
getWidth() |
double |
getWorldCanvasWidth() |
Position |
getWorldPosition(int x,
int y) |
double[] |
getXRange() |
double[] |
getXYXYLimits() |
double[] |
getYRange() |
void |
initializeRotation(double x,
double y,
double z) |
void |
initializeRotation(int ixcen,
int iycen) |
void |
initializeRotationLocal(double x,
double y,
double z) |
(package private) void |
initializeZoom(int xc,
int yc) |
(package private) int[] |
intDeviceX(double[] wx) |
(package private) int[] |
intDeviceY(double[] wy) |
boolean |
intIsOnCanvas(int x,
int y) |
boolean |
isOnCanvas(double x,
double y) |
boolean |
isShowing(double x,
double y) |
void |
notifyRangeChange() |
void |
notifyRangeChange(int axis) |
private void |
p_setXRange(double xlin,
double xhin) |
private void |
p_setYRange(double ylin,
double yhin) |
(package private) void |
permanentPan(int xfrom,
int yfrom,
int xto,
int yto) |
protected int |
powx(double xr) |
protected int |
powy(double yr) |
void |
printRot() |
double[] |
project(double x,
double y,
double z) |
double |
pubDxDpix() |
double |
pubDyDpix() |
int |
pubPixDx(double dxr) |
int |
pubPixDy(double dyr) |
int |
pubPowx(double xr) |
int |
pubPowy(double yr) |
double |
pubWopx(int x) |
double |
pubWopy(int y) |
private int |
qpowx(double xr) |
private int |
qpowy(double yr) |
void |
rangeChange(int axis) |
void |
reframe(Box b) |
void |
set2Center(double[] cen) |
void |
set3Center(double[] cen) |
void |
setAspectRatio(double f) |
void |
setAspectRatioFree() |
void |
setCanvasSize(int w,
int h) |
void |
setFixedAspectRatio(double f) |
void |
setHeight(int h) |
void |
setMargins(int l,
int r,
int b,
int t) |
void |
setPixelScalingFromTop(double d) |
void |
setProjectionMatrix(double[][] pm) |
void |
setRotationListener(RotationListener rl) |
void |
setScale(double sf) |
void |
setWidth(int w) |
void |
setXRange(double xl,
double xh) |
void |
setXRescalable(boolean b) |
void |
setXYXYLimits(double xl,
double yl,
double xh,
double yh) |
void |
setYRange(double yl,
double yh) |
void |
setYRescalable(boolean b) |
(package private) void |
startRangeRecording() |
(package private) void |
stopRangeRecording() |
(package private) void |
trialPan(int xfrom,
int yfrom,
int xto,
int yto) |
boolean |
visible3D(double x,
double y,
double z) |
protected double |
wopx(int x) |
protected double |
wopy(int y) |
double |
wxLeft() |
double |
wxRight() |
double |
wyBottom() |
double |
wyTop() |
protected double |
xProj(double x,
double y,
double z) |
private void |
xZoomAbout(double f,
int xc) |
protected double |
yProj(double x,
double y,
double z) |
private void |
yZoomAbout(double f,
int yc) |
(package private) void |
zoom(double xfac,
double yfac,
int xc,
int yc) |
(package private) void |
zoom(double fac,
int xc,
int yc) |
private void |
zoomAbout(double fx,
double fy,
int xc,
int yc) |
private void |
zoomAbout(double f,
int xc,
int yc) |
protected double |
zProj(double x,
double y,
double z) |
void |
zRotate(double theta) |
private double wcx
private double wcy
private int pcx
private int pcy
private int width
private int height
private int hx
private int hy
private double dpdwx
private double dpdwy
private int leftMargin
private int rightMargin
private int topMargin
private int bottomMargin
private boolean xRescalable
private boolean yRescalable
private static final int IBIG
private static final double SMALL
private final double DBIG
private boolean recordRange
private double aspectRatio
private boolean constantAspectRatio
private double vxmin
private double vxmax
private double vymin
private double vymax
private boolean trialPanning
private double wcxtp
private double wcytp
private double w2cx
private double w2cy
private double w2cz
private double w3cx
private double w3cy
private double w3cz
private double m3xx
private double m3yy
private double m3zz
private double m3xy
private double m3xz
private double m3yx
private double m3yz
private double m3zx
private double m3zy
private double[][] m3B
private double zoomCenX
private double zoomCenY
private double dpdwx0
private double dpdwy0
private double wcx0
private double wcy0
int nRangeListener
private RangeListener[] rangeListeners
private RotationListener rotationListener
private Size p_pixelSize
public void setCanvasSize(int w, int h)
public int getWidth()
public int getHeight()
public int getLeftMargin()
public int getBottomMargin()
public final void setMargins(int l, int r, int b, int t)
public boolean isOnCanvas(double x, double y)
public boolean intIsOnCanvas(int x, int y)
public void addRangeListener(RangeListener rl)
public void setRotationListener(RotationListener rl)
public void fixRanges()
public void rangeChange(int axis)
public void notifyRangeChange()
public void notifyRangeChange(int axis)
public void setPixelScalingFromTop(double d)
public void setAspectRatioFree()
public void setFixedAspectRatio(double f)
public void setAspectRatio(double f)
public void setXRescalable(boolean b)
public void setYRescalable(boolean b)
void clearRanges()
void startRangeRecording()
void stopRangeRecording()
public void setWidth(int w)
public void setHeight(int h)
public int getCanvasWidth()
public int getCanvasHeight()
public double getWorldCanvasWidth()
public boolean isShowing(double x, double y)
int[] intDeviceX(double[] wx)
int[] intDeviceY(double[] wy)
float[] floatDeviceX(double[] wx)
float[] floatDeviceY(double[] wy)
public Size getPixelSize()
public double getPixelArea()
protected final double wopx(int x)
protected final double wopy(int y)
protected final int powx(double xr)
protected final int powy(double yr)
private final int qpowx(double xr)
private final int qpowy(double yr)
public final int pubPowx(double xr)
public final int pubPowy(double yr)
public final Position getWorldPosition(int x, int y)
public final double pubWopx(int x)
public final double pubWopy(int y)
public final int pubPixDx(double dxr)
public final int pubPixDy(double dyr)
public final double dPdX()
public final double dPdY()
public final double pubDyDpix()
public final double pubDxDpix()
public final double wxLeft()
public final double wxRight()
public final double wyBottom()
public final double wyTop()
private final void enforceAspectRatioY()
private final void enforceAspectRatioX()
private void zoomAbout(double f, int xc, int yc)
private void zoomAbout(double fx, double fy, int xc, int yc)
private void xZoomAbout(double f, int xc)
private void yZoomAbout(double f, int yc)
void initializeZoom(int xc, int yc)
void dragZoom(double fxin, double fyin, int xc, int yc)
public void reframe(Box b)
public void setXRange(double xl, double xh)
public void setYRange(double yl, double yh)
private void p_setXRange(double xlin, double xhin)
public void ensureCovers(double xl, double yl, double xh, double yh)
private void p_setYRange(double ylin, double yhin)
public final double[] getXYXYLimits()
public double[] getXRange()
public double[] getYRange()
public final void setXYXYLimits(double xl, double yl, double xh, double yh)
void applyRecordedRange()
void boxSelected(int x0, int y0, int x1, int y1)
void zoom(double fac, int xc, int yc)
void zoom(double xfac, double yfac, int xc, int yc)
void trialPan(int xfrom, int yfrom, int xto, int yto)
void permanentPan(int xfrom, int yfrom, int xto, int yto)
public int[] getIntPosition(double x, double y)
protected final double xProj(double x, double y, double z)
protected final double yProj(double x, double y, double z)
protected final double zProj(double x, double y, double z)
public double[] project(double x, double y, double z)
public double[] deProject(double x, double y, double z)
public void initializeRotation(int ixcen, int iycen)
public void initializeRotationLocal(double x, double y, double z)
public void initializeRotation(double x, double y, double z)
final void applyRotation(double[][] mr)
final void axisRotate(double thax, double thr)
public void zRotate(double theta)
public void printRot()
public void dragZRotate(int idx, int idy)
public void dragRollRotate(int idx, int idy)
public boolean visible3D(double x, double y, double z)
public double[][] getProjectionMatrix()
public double[] get3Center()
public double[] get2Center()
public void setProjectionMatrix(double[][] pm)
public void set3Center(double[] cen)
public void set2Center(double[] cen)
public void setScale(double sf)
public double getScale()
Copyright © 2013. All Rights Reserved.