org.jzy3d.plot3d.primitives
Class AbstractWireframeable
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.AbstractDrawable
-
- org.jzy3d.plot3d.primitives.AbstractWireframeable
-
- All Implemented Interfaces:
- IGLRenderer, ISortableDraw
- Direct Known Subclasses:
- AbstractComposite, AbstractEnlightable, AbstractGeometry, CompileableComposite, Disk, LineStrip, Parallelepiped, Sphere, Tube
public abstract class AbstractWireframeable extends AbstractDrawable
AnAbstractWireframeableis aAbstractDrawablethat has a wireframe mode for display. Defining an object as Wireframeable means this object may have a wireframe mode status (on/off), a wireframe color, and a wireframe width. As a consequence of being wireframeable, a 3d object may have his faces displayed or not by setFaceDisplayed().
-
-
Constructor Summary
Constructors Constructor and Description AbstractWireframeable()Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleangetFaceDisplayed()Get the face display status to on or off.ColorgetWireframeColor()Get the wireframe color.booleangetWireframeDisplayed()Get the wireframe display status to on or off.floatgetWireframeWidth()Get the wireframe width.voidsetFaceDisplayed(boolean status)Set the face display status to on or off.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.-
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, applyGeometryTransform, dispose, doTransform, draw, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, updateBounds
-
-
-
-
Constructor Detail
-
AbstractWireframeable
public AbstractWireframeable()
Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.
-
-
Method Detail
-
setWireframeColor
public void setWireframeColor(Color color)
Set the wireframe color.
-
setWireframeDisplayed
public void setWireframeDisplayed(boolean status)
Set the wireframe display status to on or off.
-
setWireframeWidth
public void setWireframeWidth(float width)
Set the wireframe width.
-
setFaceDisplayed
public void setFaceDisplayed(boolean status)
Set the face display status to on or off.
-
getWireframeColor
public Color getWireframeColor()
Get the wireframe color.
-
getWireframeDisplayed
public boolean getWireframeDisplayed()
Get the wireframe display status to on or off.
-
getWireframeWidth
public float getWireframeWidth()
Get the wireframe width.
-
getFaceDisplayed
public boolean getFaceDisplayed()
Get the face display status to on or off.
-
-
DMelt 3.0 © DataMelt by jWork.ORG