org.jzy3d.plot3d.primitives
Class AbstractWireframeable

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
All Implemented Interfaces:
IGLRenderer, ISortableDraw
Direct Known Subclasses:
AbstractComposite, AbstractEnlightable, CompileableComposite, Disk, LineStrip, Parallelepiped, Polygon, Sphere, Tube

public abstract class AbstractWireframeable
extends AbstractDrawable

An AbstractWireframeable is a AbstractDrawable that 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().

Author:
Martin Pernollet

Field Summary
protected  boolean facestatus
           
protected  Color wfcolor
           
protected  boolean wfstatus
           
protected  float wfwidth
           
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, displayed, hasListeners, legend, legendDisplayed, listeners, transform
 
Constructor Summary
AbstractWireframeable()
          Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.
 
Method Summary
 boolean getFaceDisplayed()
          Get the face display status to on or off.
 Color getWireframeColor()
          Get the wireframe color.
 boolean getWireframeDisplayed()
          Get the wireframe display status to on or off.
 float getWireframeWidth()
          Get the wireframe width.
 void setFaceDisplayed(boolean status)
          Set the face display status to on or off.
 void setWireframeColor(Color color)
          Set the wireframe color.
 void setWireframeDisplayed(boolean status)
          Set the wireframe display status to on or off.
 void setWireframeWidth(float width)
          Set the wireframe width.
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, call, call, callWithAlphaFactor, dispose, draw, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getTransform, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wfcolor

protected Color wfcolor

wfwidth

protected float wfwidth

wfstatus

protected boolean wfstatus

facestatus

protected boolean facestatus
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.