public abstract class AbstractWireframeable extends AbstractDrawable
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().Modifier and Type | Field and Description |
---|---|
protected boolean |
facestatus |
protected Color |
wfcolor |
protected boolean |
wfstatus |
protected float |
wfwidth |
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
Constructor and Description |
---|
AbstractWireframeable()
Initialize the wireframeable with a white color and
width of 1 for wires, hidden wireframe, and displayed faces.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addDrawableListener, applyGeometryTransform, call, call, callWithAlphaFactor, colorGL2, colorGLES2, dispose, doDrawBounds, doTransform, draw, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, updateBounds, vertexGL2, vertexGLES2
protected Color wfcolor
protected float wfwidth
protected boolean wfstatus
protected boolean facestatus
public AbstractWireframeable()
public void setWireframeColor(Color color)
public void setWireframeDisplayed(boolean status)
public void setWireframeWidth(float width)
public void setFaceDisplayed(boolean status)
public Color getWireframeColor()
public boolean getWireframeDisplayed()
public float getWireframeWidth()
public boolean getFaceDisplayed()
Copyright © 2016. All rights reserved.