|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.scene.state.RenderState
com.jme.scene.state.WireframeState
public abstract class WireframeState
WireframeState
maintains whether a node and it's children
should be drawn in wireframe or solid fill. By default all nodes are rendered
solid.
Nested Class Summary | |
---|---|
static class |
WireframeState.Face
|
Nested classes/interfaces inherited from class com.jme.scene.state.RenderState |
---|
RenderState.StateType |
Field Summary | |
---|---|
protected boolean |
antialiased
Default line style |
protected WireframeState.Face |
face
Default wireframe of front and back. |
protected float |
lineWidth
Default line width of 1 pixel. |
Fields inherited from class com.jme.scene.state.RenderState |
---|
QUICK_COMPARE, RS_BLEND, RS_CLIP, RS_COLORMASK_STATE, RS_CULL, RS_FOG, RS_FRAGMENT_PROGRAM, RS_GLSL_SHADER_OBJECTS, RS_LIGHT, RS_MATERIAL, RS_MAX_STATE, RS_SHADE, RS_STENCIL, RS_TEXTURE, RS_VERTEX_PROGRAM, RS_WIREFRAME, RS_ZBUFFER |
Constructor Summary | |
---|---|
WireframeState()
|
Method Summary | |
---|---|
java.lang.Class<?> |
getClassTag()
|
WireframeState.Face |
getFace()
Returns the face state of this wireframe state. |
float |
getLineWidth()
Returns the current lineWidth. |
RenderState.StateType |
getStateType()
getStateType returns the type RenderState.StateType.Wireframe |
int |
getType()
Deprecated. As of 2.0, use RenderState.getStateType() instead. |
boolean |
isAntialiased()
|
void |
read(JMEImporter e)
|
void |
setAntialiased(boolean antialiased)
Set whether this wireframe should use antialiasing when drawing lines. |
void |
setFace(WireframeState.Face face)
setFace sets which face will recieve the wireframe. |
void |
setLineWidth(float width)
setLineWidth sets the width of lines the wireframe is
drawn in. |
void |
write(JMEExporter e)
|
Methods inherited from class com.jme.scene.state.RenderState |
---|
apply, createStateRecord, extract, isEnabled, needsRefresh, setEnabled, setNeedsRefresh, setQuickCompares |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected WireframeState.Face face
protected float lineWidth
protected boolean antialiased
Constructor Detail |
---|
public WireframeState()
Method Detail |
---|
public int getType()
RenderState.getStateType()
instead.
getType
returns the type of render state this is.
(RS_WIREFRAME).
getType
in class RenderState
RenderState.getType()
public RenderState.StateType getStateType()
getStateType
returns the type RenderState.StateType.Wireframe
getStateType
in class RenderState
RenderState.StateType.Wireframe
RenderState.getStateType()
public void setLineWidth(float width)
setLineWidth
sets the width of lines the wireframe is
drawn in. Attempting to set a line width smaller than 0.0 throws an
IllegalArgumentException
.
width
- the line width, in pixelspublic float getLineWidth()
public void setFace(WireframeState.Face face)
setFace
sets which face will recieve the wireframe.
face
- which face will be rendered in wireframe.
java.lang.IllegalArgumentException
- if face is nullpublic WireframeState.Face getFace()
public void setAntialiased(boolean antialiased)
antialiased
- true for using smoothed antialiased lines.public boolean isAntialiased()
public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
write
in class RenderState
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
read
in class RenderState
java.io.IOException
public java.lang.Class<?> getClassTag()
getClassTag
in interface Savable
getClassTag
in class RenderState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |