org.jzy3d.plot3d.primitives.textured
Class TexturedCylinder

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.TexturedCylinder
All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw, Selectable, ITranslucent

public class TexturedCylinder
extends AbstractComposite
implements Selectable, ITranslucent


Field Summary
protected  float alpha
           
protected  AbstractDrawable dArrowDown
           
protected  AbstractDrawable dArrowUp
           
protected  AbstractDrawable dDiskDown
           
protected  AbstractDrawable dDiskUp
           
protected  Polygon lastHull
           
protected  List<Coord3d> lastProjection
           
protected  List<TranslucentQuad> quads
           
 
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
TexturedCylinder(Coord3d position, Color color, Color bgcolor, MaskPair masks)
           
TexturedCylinder(Coord3d position, MaskPair masks)
           
TexturedCylinder(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

dArrowUp

protected AbstractDrawable dArrowUp

dArrowDown

protected AbstractDrawable dArrowDown

dDiskUp

protected AbstractDrawable dDiskUp

dDiskDown

protected AbstractDrawable dDiskDown

quads

protected List<TranslucentQuad> quads

lastProjection

protected List<Coord3d> lastProjection

lastHull

protected Polygon lastHull

alpha

protected float alpha
Constructor Detail

TexturedCylinder

public TexturedCylinder(MaskPair masks)

TexturedCylinder

public TexturedCylinder(Coord3d position,
                        MaskPair masks)

TexturedCylinder

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

setAlphaFactor

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

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