|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jzy3d.plot3d.primitives.axes.AxeBox
org.jzy3d.plot3d.primitives.axes.FeedbackBufferAxeBox
public class FeedbackBufferAxeBox
This AxeBox
implementation was the first to appear in Jzy3d.
It computes hidden faces using the OpenGL feedback buffer, which seems
to fail on some hardware (especially Lenovo notepads).
The parent AxeBox
doesn't rely anymore one feedback buffer, and
this implementation has been kept in order to provide an example of
feedback buffer use.
http://code.google.com/p/jzy3d/issues/detail?id=10
Field Summary |
---|
Fields inherited from class org.jzy3d.plot3d.primitives.axes.AxeBox |
---|
AXE_X, AXE_Y, AXE_Z, axeXquads, axeXx, axeXy, axeXz, axeYquads, axeYx, axeYy, axeYz, axeZquads, axeZx, axeZy, axeZz, boxBounds, center, layout, normx, normy, normz, PRECISION, quadIsHidden, quadx, quady, quadz, scale, txt, view, wholeBounds, xrange, yrange, zrange |
Constructor Summary | |
---|---|
FeedbackBufferAxeBox(BoundingBox3d bbox)
|
|
FeedbackBufferAxeBox(BoundingBox3d bbox,
IAxeLayout layout)
|
Method Summary | |
---|---|
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 GL calls allowing to build a cube with 6 separate quads. |
protected boolean[] |
getEmptyTokens(int ntokens,
float[] buffer,
int size)
This utility function inform wether a GL_PASS_THROUGH_TOKEN was followed by other OpenGL tokens (GL_POLYGON_TOKEN, GL_LINE_TOKEN, etc), or not. |
protected boolean[] |
getHiddenQuads(javax.media.opengl.GL gl)
COMPUTATION OF HIDDEN QUADS |
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. |
Methods inherited from class org.jzy3d.plot3d.primitives.axes.AxeBox |
---|
dispose, drawGridOnQuad, drawTicks, drawTicks, findClosestXaxe, findClosestYaxe, findClosestZaxe, getBoxBounds, getCenter, getHiddenQuads, getLayout, getTextRenderer, getView, getWholeBounds, init, min, setAxe, setAxeBox, setScale, setTextRenderer, setView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jzy3d.plot3d.primitives.axes.IAxe |
---|
dispose, getBoxBounds, getCenter, getLayout, setAxe, setScale |
Constructor Detail |
---|
public FeedbackBufferAxeBox(BoundingBox3d bbox)
public FeedbackBufferAxeBox(BoundingBox3d bbox, IAxeLayout layout)
Method Detail |
---|
public void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera camera)
AxeBox
draw
in interface IAxe
draw
in class AxeBox
protected void drawCube(javax.media.opengl.GL gl, int mode)
drawCube
in class AxeBox
protected boolean[] getHiddenQuads(javax.media.opengl.GL gl)
protected boolean[] getEmptyTokens(int ntokens, float[] buffer, int size)
a
- RuntimeException if a parsed token is either GL_BITMAP_TOKEN, GL_DRAW_PIXEL_TOKEN, or GL_COPY_PIXEL_TOKEN.protected int print3DcolorVertex(int size, int count, float[] buffer)
print3DcolorVertex
in class AxeBox
protected void printHiddenQuads()
printHiddenQuads
in class AxeBox
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |