Package org.jzy3d.plot3d.primitives
Class Parallelepiped
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.Wireframeable
org.jzy3d.plot3d.primitives.Parallelepiped
- All Implemented Interfaces:
IMultiColorable,ISingleColorable,IGLRenderer,ISortableDraw
A Parallelepiped is a parallelepiped rectangle that is Drawable and Wireframeable. A future
version of Rectangle3d should consider it as a Composite3d.
This class has been implemented for debugging purpose and inconsistency of its input w.r.t other
primitives should not be considered (no setData function).
- Author:
- Martin Pernollet
-
Field Summary
Fields inherited from class org.jzy3d.plot3d.primitives.Wireframeable
depthFunctionChangeForWireframe, faceDisplayed, materialAmbiantReflection, materialDiffuseReflection, materialEmission, materialShininess, materialSpecularReflection, NO_OVERLAP_DEPTH_RATIO, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, polygonWireframeDepthTrick, reflectLight, wireframeColor, wireframeColorFromPolygonPoints, wireframeDisplayed, wireframeWidth, wireframeWithLineLoopFields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
ConstructorsConstructorDescriptionInitialize a parallelepiped.Initialize a parallelepiped. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGeometryTransform(Transform transform) voidCall OpenGL2 routines for rendering the object.getColor()Get the color.Get the colormapper.Get the wireframe color.floatGet the wireframe width.booleanGet the face display status to on or off.booleanGet the wireframe display status to on or off.voidSet the color.voidsetColorMapper(ColorMapper mapper) Set the colormapper that will be used by the Drawable, instead of using precomputed colors.voidsetData(BoundingBox3d box) Set the parallelepiped data.voidsetFaceDisplayed(boolean status) Set the face display status to on or off.voidsetTransform(Transform transform) Set object's transformation that is applied at the beginning of a call toDrawable.draw(IPainter).voidsetWireframeColor(Color color) Set the wireframe color.voidsetWireframeDisplayed(boolean status) Set the wireframe display status to on or off.voidsetWireframeWidth(float width) Set the wireframe width.voidMethods inherited from class org.jzy3d.plot3d.primitives.Wireframeable
applyDepthRangeDefault, applyDepthRangeForOverlying, applyDepthRangeForUnderlying, applyMaterial, doDrawBoundsIfDisplayed, getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, getPolygonOffsetFactor, getPolygonOffsetUnit, isPolygonOffsetFillEnable, isPolygonWireframeDepthTrick, isReflectLight, isWireframeColorFromPolygonPoints, polygonOffsetFillDisable, polygonOffsetFillEnable, polygonOffsetLineDisable, polygonOffsetLineEnable, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection, setPolygonOffsetFactor, setPolygonOffsetFillEnable, setPolygonOffsetUnit, setPolygonWireframeDepthTrick, setReflectLight, setWireframeColorFromPolygonPointsMethods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransformBefore, toString, toString
-
Constructor Details
-
Parallelepiped
public Parallelepiped()Initialize a parallelepiped. -
Parallelepiped
Initialize a parallelepiped.
-
-
Method Details
-
draw
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
setTransform
Description copied from class:DrawableSet object's transformation that is applied at the beginning of a call toDrawable.draw(IPainter).- Overrides:
setTransformin classDrawable
-
setWireframeColor
Description copied from class:WireframeableSet the wireframe color.- Overrides:
setWireframeColorin classWireframeable
-
setWireframeDisplayed
public void setWireframeDisplayed(boolean status) Description copied from class:WireframeableSet the wireframe display status to on or off.- Overrides:
setWireframeDisplayedin classWireframeable
-
setWireframeWidth
public void setWireframeWidth(float width) Description copied from class:WireframeableSet the wireframe width.- Overrides:
setWireframeWidthin classWireframeable
-
setFaceDisplayed
public void setFaceDisplayed(boolean status) Description copied from class:WireframeableSet the face display status to on or off.- Overrides:
setFaceDisplayedin classWireframeable
-
getWireframeColor
Description copied from class:WireframeableGet the wireframe color.- Overrides:
getWireframeColorin classWireframeable
-
isWireframeDisplayed
public boolean isWireframeDisplayed()Description copied from class:WireframeableGet the wireframe display status to on or off.- Overrides:
isWireframeDisplayedin classWireframeable
-
getWireframeWidth
public float getWireframeWidth()Description copied from class:WireframeableGet the wireframe width.- Overrides:
getWireframeWidthin classWireframeable
-
isFaceDisplayed
public boolean isFaceDisplayed()Description copied from class:WireframeableGet the face display status to on or off.- Overrides:
isFaceDisplayedin classWireframeable
-
setData
Set the parallelepiped data. -
setColorMapper
Description copied from interface:IMultiColorableSet the colormapper that will be used by the Drawable, instead of using precomputed colors.- Specified by:
setColorMapperin interfaceIMultiColorable
-
getColorMapper
Description copied from interface:IMultiColorableGet the colormapper.- Specified by:
getColorMapperin interfaceIMultiColorable
-
setColor
Description copied from interface:ISingleColorableSet the color.- Specified by:
setColorin interfaceISingleColorable- Parameters:
color- the color
-
getColor
Description copied from interface:ISingleColorableGet the color.- Specified by:
getColorin interfaceISingleColorable- Returns:
- color the color.
-
applyGeometryTransform
- Specified by:
applyGeometryTransformin classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBoundsin classDrawable
-