|
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.Cube
Field Summary | |
protected boolean[] |
annotateEdge
|
protected com.klg.jclass.chart3d.JCChart3dArea |
area
|
protected Point4d[] |
cubePoints
|
protected boolean[] |
drawEdge
|
protected static int[][] |
edges
|
static int |
FACE_BOTTOM
|
static int |
FACE_FAR
|
static int |
FACE_LEFT
|
static int |
FACE_NEAR
|
static int |
FACE_RIGHT
|
static int |
FACE_TOP
|
protected static int[][] |
faces
|
protected boolean[] |
faceVisible
|
static int |
NUM_EDGES
|
static int |
NUM_FACES
|
static int |
NUM_POINTS
|
static int |
NUM_POINTS_IN_FACE
|
protected static int[][] |
pointEdges
|
protected static double[][] |
points
|
static int |
VP_XMASK
|
static int |
VP_XMAX
|
static int |
VP_XMIN
|
static int |
VP_YMASK
|
static int |
VP_YMAX
|
static int |
VP_YMIN
|
static int |
VP_ZMASK
|
static int |
VP_ZMAX
|
static int |
VP_ZMIN
|
static int |
XNEG_YNEG
|
static int |
XNEG_YPOS
|
static int |
XNEG_ZNEG
|
static int |
XNEG_ZPOS
|
static int |
XPOS_YNEG
|
static int |
XPOS_YPOS
|
static int |
XPOS_ZNEG
|
static int |
XPOS_ZPOS
|
static int |
YNEG_ZNEG
|
static int |
YNEG_ZPOS
|
static int |
YPOS_ZNEG
|
static int |
YPOS_ZPOS
|
Constructor Summary | |
Cube()
Null constructor |
|
Cube(com.klg.jclass.chart3d.JCChart3dArea area)
|
Method Summary | |
protected void |
calc2DAnnoEdges()
|
protected void |
calc3DAnnoEdges()
This routine determines the edges which will be used for annotations. |
protected void |
calcCorner(int min_pt,
int max_pt)
|
protected void |
calcEdge(int vp_code)
Constructs the id of the leading edge from the vp_code
We know that exactly one of the x,y,z groups must be zero in the
vp_code for this routine to be called. |
protected void |
calcFace(int vp_code)
|
protected boolean |
edgeInFace(int face,
int edge)
|
protected boolean |
faceBackfacing(int face)
Determines if the given face is backfacing or not. |
protected int |
findViewPosition()
|
boolean[] |
getAnnotateEdge()
Gets the array which determines whether edges are annotated or not. |
com.klg.jclass.chart3d.JCChart3dArea |
getChart3dArea()
Gets the parent chart3d area. |
protected Point4d[] |
getCubePoints()
Gets the precomputed cube points in projected space. |
protected boolean[] |
getDrawEdge()
Gets the array which determines whether edges are drawn or not. |
protected boolean[] |
getFaceVisible()
Gets the array which determines whether faces are visible or not. |
void |
setChart3dArea(com.klg.jclass.chart3d.JCChart3dArea area)
Sets the parent chart3d area |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int YNEG_ZNEG
public static final int YNEG_ZPOS
public static final int YPOS_ZNEG
public static final int YPOS_ZPOS
public static final int XNEG_ZNEG
public static final int XNEG_ZPOS
public static final int XPOS_ZNEG
public static final int XPOS_ZPOS
public static final int XNEG_YNEG
public static final int XNEG_YPOS
public static final int XPOS_YNEG
public static final int XPOS_YPOS
public static final int FACE_LEFT
public static final int FACE_RIGHT
public static final int FACE_BOTTOM
public static final int FACE_TOP
public static final int FACE_FAR
public static final int FACE_NEAR
public static final int NUM_POINTS
public static final int NUM_EDGES
public static final int NUM_FACES
public static final int NUM_POINTS_IN_FACE
public static final int VP_XMAX
public static final int VP_XMIN
public static final int VP_YMAX
public static final int VP_YMIN
public static final int VP_ZMAX
public static final int VP_ZMIN
public static final int VP_XMASK
public static final int VP_YMASK
public static final int VP_ZMASK
protected static final double[][] points
protected static final int[][] faces
protected static final int[][] edges
protected static final int[][] pointEdges
protected boolean[] faceVisible
protected boolean[] annotateEdge
protected boolean[] drawEdge
protected Point4d[] cubePoints
protected com.klg.jclass.chart3d.JCChart3dArea area
Constructor Detail |
public Cube()
public Cube(com.klg.jclass.chart3d.JCChart3dArea area)
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
- protected Point4d[] getCubePoints()
protected boolean[] getFaceVisible()
public boolean[] getAnnotateEdge()
protected boolean[] getDrawEdge()
protected boolean faceBackfacing(int face)
face
- protected int findViewPosition()
protected boolean edgeInFace(int face, int edge)
face
- edge
- protected void calcFace(int vp_code)
vp_code
- protected void calcEdge(int vp_code)
vp_code
We know that exactly one of the x,y,z groups must be zero in the
vp_code
for this routine to be called. The vp_code
is organized as:
00 00 01 XMAX (x-pos)
00 00 10 XMIN (x-neg)
00 01 00 YMAX (y-pos)
00 10 00 YMIN (y-neg)
01 00 00 ZMAX (z-pos)
10 00 00 ZMIN (z-neg)
vp_code
- protected void calcCorner(int min_pt, int max_pt)
min_pt
- max_pt
- protected void calc3DAnnoEdges()
protected void calc2DAnnoEdges()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |