org.jzy3d.plot3d.primitives.axes
Class AxeBase

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

public class AxeBase
extends java.lang.Object
implements IAxe

An AxeBase provide a simple 3-segment object which is configured by a BoundingBox.

Author:
Martin Pernollet

Constructor Summary
AxeBase()
          Create a simple axe centered on (0,0,0), with a dimension of 1.
AxeBase(BoundingBox3d box)
          Create a simple axe centered on (box.xmin, box.ymin, box.zmin)
 
Method Summary
 void dispose()
           
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera camera)
           
 BoundingBox3d getBoxBounds()
           
 Coord3d getCenter()
          Get the minimum values of the bounding box for each dimension.
 IAxeLayout getLayout()
           
 void setAxe(BoundingBox3d box)
           
 void setScale(Coord3d scale)
          Set the scaling factor that are applied on this object before GL commands.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxeBase

public AxeBase()
Create a simple axe centered on (0,0,0), with a dimension of 1.


AxeBase

public AxeBase(BoundingBox3d box)
Create a simple axe centered on (box.xmin, box.ymin, box.zmin)

Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IAxe

setAxe

public void setAxe(BoundingBox3d box)
Specified by:
setAxe in interface IAxe

draw

public void draw(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera camera)
Specified by:
draw in interface IAxe

setScale

public void setScale(Coord3d scale)
Set the scaling factor that are applied on this object before GL commands.

Specified by:
setScale in interface IAxe

getBoxBounds

public BoundingBox3d getBoxBounds()
Specified by:
getBoxBounds in interface IAxe

getCenter

public Coord3d getCenter()
Get the minimum values of the bounding box for each dimension.

Specified by:
getCenter in interface IAxe

getLayout

public IAxeLayout getLayout()
Specified by:
getLayout in interface IAxe