Package WildMagic.LibGraphics.Rendering
Class ZBufferState
- java.lang.Object
-
- WildMagic.LibGraphics.ObjectSystem.GraphicsObject
-
- WildMagic.LibGraphics.Rendering.GlobalState
-
- WildMagic.LibGraphics.Rendering.ZBufferState
-
- All Implemented Interfaces:
java.io.Serializable
,StreamInterface
public class ZBufferState extends GlobalState implements StreamInterface, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZBufferState.CompareMode
Depth compre modes.-
Nested classes/interfaces inherited from class WildMagic.LibGraphics.Rendering.GlobalState
GlobalState.StateType
-
-
Field Summary
Fields Modifier and Type Field Description ZBufferState.CompareMode
Compare
CompareMode default: CF_LEQUALboolean
Enabled
ZBuffer enabled default: trueprivate static ZBufferState.CompareMode
ms_eCompareModeStatic
Initializes static enum for depth compare modes.private static java.util.HashMap<java.lang.Integer,ZBufferState.CompareMode>
ms_pkCompareModeMap
Maps compare mode enum to int values.private static long
serialVersionUID
boolean
Writable
ZBuffer writeable default: true-
Fields inherited from class WildMagic.LibGraphics.Rendering.GlobalState
Default, DefaultInitialized
-
-
Constructor Summary
Constructors Constructor Description ZBufferState()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the current StreamVersion parameter.GlobalState.StateType
GetStateType()
Return type.void
Load(Stream rkStream, Stream.Link pkLink)
Loads this object from the input parameter rkStream, using the input Stream.Link to store the IDs of children objects of this object for linking after all objects are loaded from the Stream.void
Save(Stream rkStream)
Write this object and all it's children to the Stream.StringTree
SaveStrings(java.lang.String acTitle)
Write this object into a StringTree for the scene-graph visualization.-
Methods inherited from class WildMagic.LibGraphics.ObjectSystem.GraphicsObject
dispose, GetAllObjectsByName, GetID, GetName, GetNextID, GetObjectByID, GetObjectByIDBase, GetObjectByName, GetObjectByNameBase, Link, Register, SetName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface WildMagic.LibGraphics.ObjectSystem.StreamInterface
Link, Register
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ms_pkCompareModeMap
private static java.util.HashMap<java.lang.Integer,ZBufferState.CompareMode> ms_pkCompareModeMap
Maps compare mode enum to int values.
-
ms_eCompareModeStatic
private static ZBufferState.CompareMode ms_eCompareModeStatic
Initializes static enum for depth compare modes.
-
Enabled
public boolean Enabled
ZBuffer enabled default: true
-
Writable
public boolean Writable
ZBuffer writeable default: true
-
Compare
public ZBufferState.CompareMode Compare
CompareMode default: CF_LEQUAL
-
-
Method Detail
-
GetDiskUsed
public int GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the current StreamVersion parameter.- Specified by:
GetDiskUsed
in interfaceStreamInterface
- Overrides:
GetDiskUsed
in classGraphicsObject
- Parameters:
rkVersion
- the current version of the Stream file being created.- Returns:
- the size of this object on disk.
-
GetStateType
public final GlobalState.StateType GetStateType()
Return type.- Specified by:
GetStateType
in classGlobalState
- Returns:
- StateType.ZBUFFER;
-
Load
public void Load(Stream rkStream, Stream.Link pkLink)
Loads this object from the input parameter rkStream, using the input Stream.Link to store the IDs of children objects of this object for linking after all objects are loaded from the Stream.- Specified by:
Load
in interfaceStreamInterface
- Overrides:
Load
in classGraphicsObject
- Parameters:
rkStream
- the Stream from which this object is being read.pkLink
- the Link class for storing the IDs of this object's children objects.
-
Save
public void Save(Stream rkStream)
Write this object and all it's children to the Stream.- Specified by:
Save
in interfaceStreamInterface
- Overrides:
Save
in classGraphicsObject
- Parameters:
rkStream
- the Stream where the child objects are stored.
-
SaveStrings
public StringTree SaveStrings(java.lang.String acTitle)
Write this object into a StringTree for the scene-graph visualization.- Specified by:
SaveStrings
in interfaceStreamInterface
- Overrides:
SaveStrings
in classGlobalState
- Parameters:
acTitle
- the header for this object in the StringTree.- Returns:
- StringTree containing a String-based representation of this object and it's children.
-
-