org.jzy3d.plot3d.primitives.axes
Class ContourAxeBox

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.axes.AxeBox
      extended by org.jzy3d.plot3d.primitives.axes.ContourAxeBox
All Implemented Interfaces:
IAxe

public class ContourAxeBox
extends AxeBox

An axe box for displaying a contour map that remains on bottom of the box, whatever the box scale is.

Author:
Martin Pernollet

Field Summary
protected  BufferedImage contourImg
           
protected  DrawableTexture contourTexture
           
protected  ContourMesh mesh
           
protected  float xmax
           
protected  float xmin
           
protected  float ymax
           
protected  float ymin
           
protected  float zmax
           
protected  float zmin
           
 
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, txtRenderer, view, wholeBounds, xrange, yrange, zrange
 
Constructor Summary
ContourAxeBox(BoundingBox3d bbox)
           
ContourAxeBox(BoundingBox3d bbox, IAxeLayout layout)
           
 
Method Summary
 void draw(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera camera)
          Draws the AxeBox.
 void drawMesh(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera camera, ContourMesh mesh)
           
 BufferedImage getContourImage()
           
 ContourMesh getContourMesh()
           
protected  List<Coord2d> getDefaultTextureMapping()
           
protected  void rebuildTexture()
           
protected  void setAxeBox(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)
          Set the parameters and data of the AxeBox.
 void setContourImg(BufferedImage contourImage, Range xrange, Range yrange)
           
 void setContourMesh(ContourMesh contour)
           
 
Methods inherited from class org.jzy3d.plot3d.primitives.axes.AxeBox
dispose, drawCube, drawGridOnQuad, drawTicks, drawTicks, findClosestXaxe, findClosestYaxe, findClosestZaxe, getBoxBounds, getCenter, getExperimentalTextRenderer, getHiddenQuads, getLayout, getTextRenderer, getView, getWholeBounds, init, min, print3DcolorVertex, printHiddenQuads, setAxe, setExperimentalTextOverlayRenderer, setScale, setTextRenderer, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmin

protected float xmin

xmax

protected float xmax

ymin

protected float ymin

ymax

protected float ymax

zmin

protected float zmin

zmax

protected float zmax

contourImg

protected BufferedImage contourImg

contourTexture

protected DrawableTexture contourTexture

mesh

protected ContourMesh mesh
Constructor Detail

ContourAxeBox

public ContourAxeBox(BoundingBox3d bbox,
                     IAxeLayout layout)

ContourAxeBox

public ContourAxeBox(BoundingBox3d bbox)
Method Detail

getContourImage

public BufferedImage getContourImage()

setContourImg

public void setContourImg(BufferedImage contourImage,
                          Range xrange,
                          Range yrange)

getContourMesh

public ContourMesh getContourMesh()

setContourMesh

public void setContourMesh(ContourMesh contour)

rebuildTexture

protected void rebuildTexture()

getDefaultTextureMapping

protected List<Coord2d> getDefaultTextureMapping()

setAxeBox

protected void setAxeBox(float xmin,
                         float xmax,
                         float ymin,
                         float ymax,
                         float zmin,
                         float zmax)
Description copied from class: AxeBox
Set the parameters and data of the AxeBox.

Overrides:
setAxeBox in class AxeBox

draw

public void draw(javax.media.opengl.GL2 gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera camera)
Description copied from class: AxeBox
Draws the AxeBox. The camera is used to determine which axis is closest to the ur point ov view, in order to decide for an axis on which to diplay the tick values.

Specified by:
draw in interface IAxe
Overrides:
draw in class AxeBox

drawMesh

public void drawMesh(javax.media.opengl.GL2 gl,
                     javax.media.opengl.glu.GLU glu,
                     Camera camera,
                     ContourMesh mesh)