org.jzy3d.plot3d.primitives
Class Shape

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

public class Shape
extends AbstractComposite

Allows building custom shapes defined by an ArrayList of Polygons. Such ArrayList must be defined by the user.

Author:
Martin Pernollet

Field Summary
 
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
Shape()
          Initialize a Shape.
Shape(List<Polygon> polygons)
          Initialize a Shape and set its polygons (and bounding box).
 
Method Summary
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractComposite
add, add, clear, draw, get, getBounds, 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
 

Constructor Detail

Shape

public Shape()
Initialize a Shape.


Shape

public Shape(List<Polygon> polygons)
Initialize a Shape and set its polygons (and bounding box).

See Also:
for more information on the allowTransparency flag.