public class PolygonOffsetState extends GlobalState implements StreamInterface, Serializable
GlobalState.StateType
Modifier and Type | Field and Description |
---|---|
float |
Bias
The offset is Scale*dZ + Bias*r where dZ is the change in depth
relative to the screen space area of the poly, and r is the smallest
resolvable depth difference.
|
boolean |
FillEnabled
Set whether offset should be enabled for the various polygon drawing
modes (fill, line, point).
|
boolean |
LineEnabled
Set whether offset should be enabled for the various polygon drawing
modes (fill, line, point).
|
boolean |
PointEnabled
Set whether offset should be enabled for the various polygon drawing
modes (fill, line, point).
|
float |
Scale
The offset is Scale*dZ + Bias*r where dZ is the change in depth
relative to the screen space area of the poly, and r is the smallest
resolvable depth difference.
|
private static long |
serialVersionUID |
Default, DefaultInitialized
Constructor and Description |
---|
PolygonOffsetState()
Default constructor.
|
Modifier and Type | Method and 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(String acTitle)
Write this object into a StringTree for the scene-graph visualization.
|
dispose, GetAllObjectsByName, GetID, GetName, GetNextID, GetObjectByID, GetObjectByIDBase, GetObjectByName, GetObjectByNameBase, Link, Register, SetName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Link, Register
private static final long serialVersionUID
public boolean FillEnabled
public boolean LineEnabled
public boolean PointEnabled
public float Scale
public float Bias
public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class GraphicsObject
rkVersion
- the current version of the Stream file being created.public final GlobalState.StateType GetStateType()
GetStateType
in class GlobalState
public void Load(Stream rkStream, Stream.Link pkLink)
Load
in interface StreamInterface
Load
in class GraphicsObject
rkStream
- the Stream from which this object is being read.pkLink
- the Link class for storing the IDs of this object's
children objects.public void Save(Stream rkStream)
Save
in interface StreamInterface
Save
in class GraphicsObject
rkStream
- the Stream where the child objects are stored.public StringTree SaveStrings(String acTitle)
SaveStrings
in interface StreamInterface
SaveStrings
in class GlobalState
acTitle
- the header for this object in the StringTree.