|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart3d.Transform
Field Summary | |
protected Matrix4d |
absolute
|
protected com.klg.jclass.chart3d.JCChart3dArea |
area
|
static int |
CORNER_XMAX_YMAX
|
static int |
CORNER_XMAX_YMIN
|
static int |
CORNER_XMIN_YMAX
|
static int |
CORNER_XMIN_YMIN
|
protected com.klg.jclass.chart3d.JCBox |
currentViewport
|
static double |
EDGE_PAD
|
static int |
EDGE_XMAX
|
static int |
EDGE_XMIN
|
static int |
EDGE_YMAX
|
static int |
EDGE_YMIN
|
static int |
EDGE_ZMAX
|
static int |
EDGE_ZMIN
|
protected Point4d |
eyePosition
|
static int |
FACE_ON
|
protected Matrix4d |
iAbsolute
|
protected Matrix4d |
iRotation
|
protected Matrix4d |
iScreen
|
protected Matrix4d |
perspective
|
protected int |
processingOrder
|
static int |
ROTATE_180
|
static int |
ROTATE_270
|
static int |
ROTATE_90
|
static int |
ROTATE_NONE
|
protected Matrix4d |
rotation
|
protected Matrix4d |
screen
|
protected Matrix4d |
textView
|
protected Matrix4d |
view
|
Constructor Summary | |
Transform()
|
|
Transform(com.klg.jclass.chart3d.JCChart3dArea area)
|
Method Summary | |
void |
adjustForUserViewport(com.klg.jclass.chart3d.JCBox vp,
double scale,
double horizontalShift,
double verticalShift)
Adjusts the viewport, based on the scale and translations. |
protected void |
calcProcessingOrder()
Finds the processing order for the grid facets based on the relative position of the viewpoint to the grid. |
protected void |
computeAbsoluteMatrix(com.klg.jclass.chart3d.JCBox dataport)
Squishes data into a ( +/-1, +/-1, +/-1) cube. |
Point4d |
computeEyePosition()
Create viewpoint position vector with eye at least at double the unit cube and do an inverse rotation to get it into absolute space. |
protected void |
computePerspectiveMatrix()
|
void |
computeRotationMatrix()
|
protected void |
computeScreenMatrix()
Adjusts projected image to show only what which lies within the viewport. |
void |
computeTransformations(Graphics gc)
|
protected void |
computeViewMatrix()
Computes a combined xform matrix to take an absolute coordinate system vector and xform it to screen coordinates in one step. |
Matrix4d |
getAbsolute()
|
com.klg.jclass.chart3d.JCChart3dArea |
getChart3dArea()
Gets the parent chart3d area. |
com.klg.jclass.chart3d.JCBox |
getCurrentViewport()
|
Point4d |
getEyePosition()
|
Matrix4d |
getInverseAbsolute()
|
Matrix4d |
getInverseRotation()
|
Matrix4d |
getInverseScreen()
|
Matrix4d |
getPerspective()
|
protected int |
getProcessingOrder()
|
Matrix4d |
getRotation()
|
Matrix4d |
getScreen()
|
Matrix4d |
getTextView()
|
Matrix4d |
getView()
|
static void |
rotateMatrix(Matrix4d m,
double angle,
int axis,
boolean doFast)
Rotates the input matrix by a given angle about the X, Y, or Z axis. |
static void |
rotateMatrix(Matrix4d m,
int rotate,
int axis)
Rotates the input matrix by a given predefined angle enum about the X , Y , or Z axis. |
static void |
scaleMatrix(Matrix4d m,
double sx,
double sy,
double sz)
Scales the input matrix by the given scale factor in x, y, and z. |
void |
setChart3dArea(com.klg.jclass.chart3d.JCChart3dArea area)
Sets the parent chart3d area |
static void |
transformPoint(Matrix4d m,
Point4d p)
|
static void |
translateMatrix(Matrix4d m,
double tx,
double ty,
double tz)
Translates the input matrix by the given translation in x, y, and z. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double EDGE_PAD
public static final int FACE_ON
public static final int EDGE_XMAX
public static final int EDGE_XMIN
public static final int EDGE_YMAX
public static final int EDGE_YMIN
public static final int EDGE_ZMAX
public static final int EDGE_ZMIN
public static final int CORNER_XMAX_YMAX
public static final int CORNER_XMIN_YMAX
public static final int CORNER_XMAX_YMIN
public static final int CORNER_XMIN_YMIN
public static final int ROTATE_NONE
public static final int ROTATE_90
public static final int ROTATE_180
public static final int ROTATE_270
protected Matrix4d absolute
protected Matrix4d rotation
protected Matrix4d perspective
protected Matrix4d screen
protected Matrix4d view
protected Matrix4d textView
protected Matrix4d iAbsolute
protected Matrix4d iRotation
protected Matrix4d iScreen
protected Point4d eyePosition
protected com.klg.jclass.chart3d.JCBox currentViewport
protected int processingOrder
protected com.klg.jclass.chart3d.JCChart3dArea area
Constructor Detail |
public Transform()
public Transform(com.klg.jclass.chart3d.JCChart3dArea area)
Method Detail |
public com.klg.jclass.chart3d.JCChart3dArea getChart3dArea()
chart3d
area.
JCChart3dArea
objectpublic void setChart3dArea(com.klg.jclass.chart3d.JCChart3dArea area)
chart3d
area
area
- public Matrix4d getAbsolute()
public Matrix4d getRotation()
public Matrix4d getPerspective()
public Matrix4d getScreen()
public Matrix4d getView()
public Matrix4d getTextView()
public Matrix4d getInverseAbsolute()
public Matrix4d getInverseRotation()
public Matrix4d getInverseScreen()
public Point4d getEyePosition()
public com.klg.jclass.chart3d.JCBox getCurrentViewport()
protected int getProcessingOrder()
public static void rotateMatrix(Matrix4d m, int rotate, int axis)
X
, Y
, or Z
axis.
m
- rotate
- axis
- public static void rotateMatrix(Matrix4d m, double angle, int axis, boolean doFast)
m
- angle
- axis
- doFast
- public static void scaleMatrix(Matrix4d m, double sx, double sy, double sz)
doFast
is true, we assume that all but one of the
scale factors is equal to 1 and thus scaling can be optimized.
m
- sx
- sy
- sz
- public static void translateMatrix(Matrix4d m, double tx, double ty, double tz)
m
- tx
- ty
- tz
- public static void transformPoint(Matrix4d m, Point4d p)
public void adjustForUserViewport(com.klg.jclass.chart3d.JCBox vp, double scale, double horizontalShift, double verticalShift)
vp
- The current viewportscale
- The scale to apply to the viewporthorizontalShift
- The horizontal shift to apply to the viewportverticalShift
- The vertical shift to apply to the viewportpublic Point4d computeEyePosition()
protected void computeAbsoluteMatrix(com.klg.jclass.chart3d.JCBox dataport)
dataport
- public void computeRotationMatrix()
protected void computePerspectiveMatrix()
protected void computeScreenMatrix()
public void computeTransformations(Graphics gc)
protected void computeViewMatrix()
protected void calcProcessingOrder()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |