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, ISortableDraw, Selectable, ITranslucent

public class TexturedCube
extends AbstractComposite
implements Selectable, ITranslucent


Field Summary
protected  float alpha
           
protected  AbstractDrawable east
           
protected  AbstractDrawable eastBg
           
protected  AbstractDrawable far
           
protected  AbstractDrawable farBg
           
protected  Polygon lastHull
           
protected  List<Coord3d> lastProjection
           
protected  AbstractDrawable near
           
protected  AbstractDrawable nearBg
           
protected  AbstractDrawable north
           
protected  AbstractDrawable northBg
           
protected  AbstractDrawable south
           
protected  AbstractDrawable southBg
           
protected  AbstractDrawable west
           
protected  AbstractDrawable westBg
           
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractComposite
color, components, detailedToString, mapper, transform
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
facestatus, wfcolor, wfstatus, wfwidth
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, displayed, hasListeners, legend, legendDisplayed, listeners
 
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.
 Polygon getHull2d()
           
 List<Coord3d> getLastProjection()
           
 void project(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam)
           
 void setAlphaFactor(float a)
           
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractComposite
add, add, 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, call, call, callWithAlphaFactor, dispose, fireDrawableChanged, fireDrawableChanged, getBarycentre, getDistance, getLegend, getLongestDistance, getShortestDistance, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setLegend, setLegendDisplayed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

north

protected AbstractDrawable north

south

protected AbstractDrawable south

west

protected AbstractDrawable west

east

protected AbstractDrawable east

near

protected AbstractDrawable near

far

protected AbstractDrawable far

northBg

protected AbstractDrawable northBg

southBg

protected AbstractDrawable southBg

westBg

protected AbstractDrawable westBg

eastBg

protected AbstractDrawable eastBg

nearBg

protected AbstractDrawable nearBg

farBg

protected AbstractDrawable farBg

lastProjection

protected List<Coord3d> lastProjection

lastHull

protected Polygon lastHull

alpha

protected float alpha
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.GL2 gl,
                    javax.media.opengl.glu.GLU glu,
                    Camera cam)
Specified by:
project in interface Selectable

getHull2d

public Polygon getHull2d()
Specified by:
getHull2d in interface Selectable

getLastProjection

public List<Coord3d> getLastProjection()
Specified by:
getLastProjection in interface Selectable

setAlphaFactor

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