Package org.jzy3d.plot3d.primitives
Class ParallelepipedComposite
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.Wireframeable
-
- org.jzy3d.plot3d.primitives.Composite
-
- org.jzy3d.plot3d.primitives.ParallelepipedComposite
-
- All Implemented Interfaces:
IMultiColorable,ISingleColorable,IGLRenderer,ISortableDraw
public class ParallelepipedComposite extends Composite implements ISingleColorable, IMultiColorable
A composite implementation of a parallelepiped, meaning it can be decomposed into distinct primitive for polygon ordering. Supports two kind of sub polygon: culled or simple.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParallelepipedComposite.PolygonType
-
Field Summary
Fields Modifier and Type Field Description protected Polygon[]quadsprotected ParallelepipedComposite.PolygonTypetype-
Fields inherited from class org.jzy3d.plot3d.primitives.Composite
color, components, detailedToString, mapper, transform
-
Fields inherited from class org.jzy3d.plot3d.primitives.Wireframeable
faceDisplayed, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, polygonWireframeDepthTrick, wireframeColor, wireframeColorFromPolygonPoints, wireframeDisplayed, wireframeWidth
-
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transformBefore
-
-
Constructor Summary
Constructors Constructor Description ParallelepipedComposite()Initialize a parallelepiped.ParallelepipedComposite(BoundingBox3d b)Initialize a parallelepiped.ParallelepipedComposite(BoundingBox3d b, ParallelepipedComposite.PolygonType type)ParallelepipedComposite(ParallelepipedComposite.PolygonType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PolygoncreatePolygon()voidsetData(BoundingBox3d box)Set the parallelepiped data.voidsetPolygonMode(PolygonMode mode)voidsetPolygonOffsetFill(boolean value)-
Methods inherited from class org.jzy3d.plot3d.primitives.Composite
add, add, applyGeometryTransform, clear, draw, get, getBounds, getColor, getColorMapper, getDrawables, getTransform, isDetailedToString, remove, setColor, setColorMapper, setDetailedToString, setDisplayed, setFaceDisplayed, setPolygonOffsetFillEnable, setPolygonWireframeDepthTrick, setSpaceTransformer, setTransform, setTransformBefore, setWireframeColor, setWireframeColorFromPolygonPoints, setWireframeDisplayed, setWireframeWidth, size, toString, toString, updateBounds
-
Methods inherited from class org.jzy3d.plot3d.primitives.Wireframeable
applyDepthRangeForOverlying, applyDepthRangeForUnderlying, getFaceDisplayed, getPolygonOffsetFactor, getPolygonOffsetUnit, getWireframeColor, getWireframeDisplayed, getWireframeWidth, isPolygonOffsetFillEnable, isPolygonWireframeDepthTrick, isWireframeColorFromPolygonPoints, polygonOffseFillEnable, polygonOffsetFillDisable, polygonOffsetLineDisable, polygonOffsetLineEnable, setPolygonOffsetFactor, setPolygonOffsetUnit
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, dispose, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setLegend, setLegendDisplayed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jzy3d.colors.IMultiColorable
getColorMapper, setColorMapper
-
Methods inherited from interface org.jzy3d.colors.ISingleColorable
getColor, setColor
-
-
-
-
Field Detail
-
quads
protected Polygon[] quads
-
type
protected ParallelepipedComposite.PolygonType type
-
-
Constructor Detail
-
ParallelepipedComposite
public ParallelepipedComposite()
Initialize a parallelepiped.
-
ParallelepipedComposite
public ParallelepipedComposite(ParallelepipedComposite.PolygonType type)
-
ParallelepipedComposite
public ParallelepipedComposite(BoundingBox3d b)
Initialize a parallelepiped.
-
ParallelepipedComposite
public ParallelepipedComposite(BoundingBox3d b, ParallelepipedComposite.PolygonType type)
-
-
Method Detail
-
setData
public void setData(BoundingBox3d box)
Set the parallelepiped data.
-
createPolygon
protected Polygon createPolygon()
-
setPolygonOffsetFill
public void setPolygonOffsetFill(boolean value)
-
setPolygonMode
public void setPolygonMode(PolygonMode mode)
-
-