public class IGraphicMode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IGraphicMode.GraphicType |
Modifier and Type | Field and Description |
---|---|
boolean |
fill |
IGraphicMode.GraphicType |
graphicType |
boolean |
light |
boolean |
lightWireframe
if lightWireframe is false, wireframe doesn't use material in GL light mode
|
boolean |
transparent |
boolean |
transparentWireframe
if transparentWireframe is false, wireframe doesn't become transparent in transparent mode
|
boolean |
wireframe |
Constructor and Description |
---|
IGraphicMode() |
IGraphicMode(IGraphicMode.GraphicType g) |
IGraphicMode(IGraphicMode.GraphicType g,
boolean enableFill,
boolean enableWireframe,
boolean enableTransparent) |
IGraphicMode(IGraphicMode m) |
Modifier and Type | Method and Description |
---|---|
void |
disableLight() |
void |
enableLight() |
static IGraphicMode[] |
getAllModes() |
IGraphicMode.GraphicType |
getGraphicType() |
boolean |
isFill() |
boolean |
isGL() |
boolean |
isGraphic2D()
2D graphic elements already flattened in 2D; need to be sorted and vary depending on view
|
boolean |
isGraphic3D()
3D graphic elements keeping 3D info; no need to be sorted due to depth buffer
|
boolean |
isJ2D() |
boolean |
isLight() |
boolean |
isLightWireframe() |
boolean |
isNone() |
boolean |
isP3D() |
boolean |
isTransparent() |
boolean |
isTransparentWireframe() |
boolean |
isWireframe() |
void |
setDrawMode(boolean wireframe,
boolean fill,
boolean transparent) |
void |
setGraphicType(IGraphicMode.GraphicType g) |
void |
toggleFill() |
void |
toggleTransparent() |
void |
toggleWireframe() |
public IGraphicMode.GraphicType graphicType
public boolean wireframe
public boolean fill
public boolean transparent
public boolean transparentWireframe
public boolean lightWireframe
public boolean light
public IGraphicMode()
public IGraphicMode(IGraphicMode.GraphicType g)
public IGraphicMode(IGraphicMode.GraphicType g, boolean enableFill, boolean enableWireframe, boolean enableTransparent)
public IGraphicMode(IGraphicMode m)
public void setGraphicType(IGraphicMode.GraphicType g)
public IGraphicMode.GraphicType getGraphicType()
public boolean isGL()
public boolean isJ2D()
public boolean isP3D()
public boolean isGraphic3D()
public boolean isGraphic2D()
public boolean isWireframe()
public boolean isFill()
public boolean isTransparent()
public boolean isNone()
public boolean isLight()
public boolean isTransparentWireframe()
public boolean isLightWireframe()
public void setDrawMode(boolean wireframe, boolean fill, boolean transparent)
public void toggleWireframe()
public void toggleFill()
public void toggleTransparent()
public void enableLight()
public void disableLight()
public static IGraphicMode[] getAllModes()