|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jzy3d.plot3d.primitives.axes.AxeBox
public class AxeBox
The AxeBox displays a box with front face invisible and ticks labels.
Field Summary | |
---|---|
protected static int |
AXE_X
|
protected static int |
AXE_Y
|
protected static int |
AXE_Z
|
protected int[][] |
axeXquads
|
protected float[][] |
axeXx
|
protected float[][] |
axeXy
|
protected float[][] |
axeXz
|
protected int[][] |
axeYquads
|
protected float[][] |
axeYx
|
protected float[][] |
axeYy
|
protected float[][] |
axeYz
|
protected int[][] |
axeZquads
|
protected float[][] |
axeZx
|
protected float[][] |
axeZy
|
protected float[][] |
axeZz
|
protected BoundingBox3d |
boxBounds
|
protected Coord3d |
center
|
protected IAxeLayout |
layout
|
protected float[] |
normx
|
protected float[] |
normy
|
protected float[] |
normz
|
protected static int |
PRECISION
|
protected boolean[] |
quadIsHidden
|
protected float[][] |
quadx
|
protected float[][] |
quady
|
protected float[][] |
quadz
|
protected Coord3d |
scale
|
protected ITextRenderer |
txt
|
protected View |
view
|
protected BoundingBox3d |
wholeBounds
|
protected float |
xrange
|
protected float |
yrange
|
protected float |
zrange
|
Constructor Summary | |
---|---|
AxeBox(BoundingBox3d bbox)
|
|
AxeBox(BoundingBox3d bbox,
IAxeLayout layout)
|
Method Summary | |
---|---|
void |
dispose()
|
void |
draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera camera)
Draws the AxeBox. |
protected void |
drawCube(javax.media.opengl.GL gl,
int mode)
Make all GL2 calls allowing to build a cube with 6 separate quads. |
protected void |
drawGridOnQuad(javax.media.opengl.GL gl,
int quad)
Draw a grid on the desired quad. |
protected BoundingBox3d |
drawTicks(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam,
int axis,
int direction,
Color color)
|
protected BoundingBox3d |
drawTicks(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam,
int axis,
int direction,
Color color,
Halign hal,
Valign val)
|
protected int |
findClosestXaxe(Camera cam)
Selects the closest displayable X axe from camera |
protected int |
findClosestYaxe(Camera cam)
Selects the closest displayable Y axe from camera |
protected int |
findClosestZaxe(Camera cam)
Selects the closest displayable Z axe from camera |
BoundingBox3d |
getBoxBounds()
|
Coord3d |
getCenter()
|
protected boolean[] |
getHiddenQuads(javax.media.opengl.GL gl,
Camera cam)
Computes the visibility of each cube face. |
IAxeLayout |
getLayout()
|
ITextRenderer |
getTextRenderer()
|
View |
getView()
|
BoundingBox3d |
getWholeBounds()
Return the boundingBox of this axis, including the volume occupied by the texts. |
protected void |
init()
|
protected int |
min(double[] values)
Return the index of the minimum value contained in the input array of doubles. |
protected int |
print3DcolorVertex(int size,
int count,
float[] buffer)
Print out parameters of a gl call in 3dColor mode. |
protected void |
printHiddenQuads()
Print out display status of quads. |
void |
setAxe(BoundingBox3d bbox)
|
protected void |
setAxeBox(float xmin,
float xmax,
float ymin,
float ymax,
float zmin,
float zmax)
Set the parameters and data of the AxeBox. |
void |
setScale(Coord3d scale)
Set the scaling factor that are applyed on this object before GL2 commands. |
void |
setTextRenderer(ITextRenderer renderer)
|
void |
setView(View view)
When setting a current view, the AxeBox can know the view is on mode CameraMode.TOP, and optimize some axis placement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int PRECISION
protected View view
protected ITextRenderer txt
protected IAxeLayout layout
protected BoundingBox3d boxBounds
protected BoundingBox3d wholeBounds
protected Coord3d center
protected Coord3d scale
protected float xrange
protected float yrange
protected float zrange
protected float[][] quadx
protected float[][] quady
protected float[][] quadz
protected float[] normx
protected float[] normy
protected float[] normz
protected float[][] axeXx
protected float[][] axeXy
protected float[][] axeXz
protected float[][] axeYx
protected float[][] axeYy
protected float[][] axeYz
protected float[][] axeZx
protected float[][] axeZy
protected float[][] axeZz
protected int[][] axeXquads
protected int[][] axeYquads
protected int[][] axeZquads
protected boolean[] quadIsHidden
protected static final int AXE_X
protected static final int AXE_Y
protected static final int AXE_Z
Constructor Detail |
---|
public AxeBox(BoundingBox3d bbox)
public AxeBox(BoundingBox3d bbox, IAxeLayout layout)
Method Detail |
---|
protected void init()
public void dispose()
dispose
in interface IAxe
public ITextRenderer getTextRenderer()
public void setTextRenderer(ITextRenderer renderer)
public View getView()
public void setView(View view)
public void setAxe(BoundingBox3d bbox)
setAxe
in interface IAxe
public BoundingBox3d getBoxBounds()
getBoxBounds
in interface IAxe
public IAxeLayout getLayout()
getLayout
in interface IAxe
public BoundingBox3d getWholeBounds()
draw()
before, which computes actual
ticks position in 3d, and updates the bounds.
public Coord3d getCenter()
getCenter
in interface IAxe
public void setScale(Coord3d scale)
setScale
in interface IAxe
public void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera camera)
draw
in interface IAxe
protected void setAxeBox(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)
protected void drawCube(javax.media.opengl.GL gl, int mode)
protected void drawGridOnQuad(javax.media.opengl.GL gl, int quad)
protected BoundingBox3d drawTicks(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam, int axis, int direction, Color color)
protected BoundingBox3d drawTicks(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam, int axis, int direction, Color color, Halign hal, Valign val)
protected int findClosestXaxe(Camera cam)
protected int findClosestYaxe(Camera cam)
protected int findClosestZaxe(Camera cam)
protected int min(double[] values)
protected boolean[] getHiddenQuads(javax.media.opengl.GL gl, Camera cam)
protected int print3DcolorVertex(int size, int count, float[] buffer)
protected void printHiddenQuads()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |