org.jzy3d.plot3d.primitives.textured
Class TexturedCube

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
          extended by org.jzy3d.plot3d.primitives.AbstractComposite
              extended by org.jzy3d.plot3d.primitives.textured.TexturedCube
All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLRenderer, IInteractive, ISortableDraw, IWireframeable, ITranslucent

public class TexturedCube
extends AbstractComposite
implements IInteractive, ITranslucent


Constructor Summary
TexturedCube(Coord3d position, Color color, Color bgcolor, MaskPair masks)
           
TexturedCube(Coord3d position, MaskPair masks)
           
TexturedCube(MaskPair masks)
           
 
Method Summary
 BoundingBox3d getBounds()
          Creates and return a BoundingBox3d that embed all available Drawable bounds.
 java.awt.Polygon getHull2d()
           
 java.util.List<Coord3d> getLastProjection()
           
 void project(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
           
 void setAlphaFactor(float a)
           
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractComposite
add, add, canBeSplitted, clear, draw, get, getColor, getColorMapper, getDrawables, getTransform, isDetailedToString, remove, setColor, setColorMapper, setDetailedToString, setDisplayed, setFaceDisplayed, setTransform, setWireframeColor, setWireframeDisplayed, setWireframeWidth, size, toString, toString
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, getBarycentre, getDistance, getFace, getLongestDistance, getShortestDistance, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setLegend, setLegendDisplayed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TexturedCube

public TexturedCube(MaskPair masks)

TexturedCube

public TexturedCube(Coord3d position,
                    MaskPair masks)

TexturedCube

public TexturedCube(Coord3d position,
                    Color color,
                    Color bgcolor,
                    MaskPair masks)
Method Detail

getBounds

public BoundingBox3d getBounds()
Description copied from class: AbstractComposite
Creates and return a BoundingBox3d that embed all available Drawable bounds.

Overrides:
getBounds in class AbstractComposite
Returns:
a bounding box

project

public void project(javax.media.opengl.GL gl,
                    javax.media.opengl.glu.GLU glu,
                    Camera cam)
Specified by:
project in interface IInteractive

getHull2d

public java.awt.Polygon getHull2d()
Specified by:
getHull2d in interface IInteractive

getLastProjection

public java.util.List<Coord3d> getLastProjection()
Specified by:
getLastProjection in interface IInteractive

setAlphaFactor

public void setAlphaFactor(float a)
Specified by:
setAlphaFactor in interface ITranslucent