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, IWireframeable

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

Constructor Summary
Shape()
          Initialize a Shape.
Shape(java.util.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, canBeSplitted, 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, 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

Shape

public Shape()
Initialize a Shape.


Shape

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

See Also:
for more information on the allowTransparency flag.