public class Polyline extends Geometry implements StreamInterface, Serializable
Geometry.GeometryType
Bindable.Info
Spatial.CullingMode
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_bClosed
polyline is open or closed
|
protected boolean |
m_bContiguous
polyline is contiguous or disjoint segments
|
protected int |
m_iActiveQuantity
Allow application to specify fewer than the maximum number of vertices
to draw.
|
private static long |
serialVersionUID |
HWorld, IBuffer, m_spkLEffect, ModelBound, States, Type, VBuffer
m_bShared, m_kInfoArray
Culling, Local, m_iStartEffect, m_kEffects, m_kGlobalStates, m_kLights, m_pkParent, World, WorldBound, WorldBoundIsCurrent, WorldIsCurrent
Constructor and Description |
---|
Polyline()
Default constructor.
|
Polyline(VertexBuffer pkVBuffer,
boolean bClosed,
boolean bContiguous)
construction
|
Modifier and Type | Method and Description |
---|---|
void |
Copy(Polyline kSource)
construction
|
int |
GetActiveQuantity()
Get the number of active points.
|
boolean |
GetClosed()
Get closed value.
|
boolean |
GetContiguous()
Get contiguous value.
|
int |
GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the
current StreamVersion parameter.
|
void |
Link(Stream rkStream,
Stream.Link pkLink)
Copies this objects children objects from the input Stream's HashTable,
based on the LinkID of the child stored in the pkLink parameter.
|
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.
|
boolean |
Register(Stream rkStream)
Registers this object with the input Stream parameter.
|
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.
|
void |
SetActiveQuantity(int iActiveQuantity)
Set the number of active points.
|
void |
SetClosed(boolean bClosed)
Set closed value.
|
void |
SetContiguous(boolean bContiguous)
Set contiguous value.
|
protected void |
SetGeometryType(boolean bInit)
Sets the geometric type based on the closed and contiguous values.
|
Copy, dispose, GetAllObjectsByName, GetModelBound, GetObjectByID, GetObjectByName, GetVisibleSet, UpdateModelBound, UpdateModelNormals, UpdateMS, UpdateMS, UpdateState, UpdateWorldBound, UpdateWorldData
GetIdentifier, GetIdentifier, GetInfoQuantity, GetShared, IsReload, IsReload, OnLoad, OnRelease, Release, Reload, Reload, Remove, SetShared
AttachEffect, AttachGlobalState, AttachLight, DetachAllEffects, DetachAllGlobalStates, DetachAllLights, DetachEffect, DetachGlobalState, DetachLight, GetEffect, GetEffectQuantity, GetGlobalState, GetGlobalState, GetGlobalStateQuantity, GetLight, GetLightQuantity, GetParent, GetStartEffect, OnGetVisibleSet, PopState, PropagateBoundToRoot, PropagateStateFromRoot, PushState, SetParent, SetStartEffect, UpdateBS, UpdateGS, UpdateGS, UpdateRS, UpdateRS
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
private static final long serialVersionUID
protected int m_iActiveQuantity
protected boolean m_bClosed
protected boolean m_bContiguous
public Polyline(VertexBuffer pkVBuffer, boolean bClosed, boolean bContiguous)
pkVBuffer
- VertexBuffer containing Polyline data.bClosed
- when true polyline is closed, when false polyline is open.bContiguous
- when true polyline is contiguous or when false
polyline is disjoint segmentspublic Polyline()
public void Copy(Polyline kSource)
pkVBuffer
- VertexBuffer containing Polyline data.bClosed
- when true polyline is closed, when false polyline is open.bContiguous
- when true polyline is contiguous or when false
polyline is disjoint segmentspublic final int GetActiveQuantity()
public final boolean GetClosed()
public final boolean GetContiguous()
public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class Geometry
rkVersion
- the current version of the Stream file being created.public void Link(Stream rkStream, Stream.Link pkLink)
Link
in interface StreamInterface
Link
in class Geometry
rkStream
- the Stream where the child objects are stored.pkLink
- the Link class from which the child object IDs are read.public void Load(Stream rkStream, Stream.Link pkLink)
Load
in interface StreamInterface
Load
in class Geometry
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 boolean Register(Stream rkStream)
Register
in interface StreamInterface
Register
in class Geometry
rkStream
- the Stream where the child objects are stored.public void Save(Stream rkStream)
Save
in interface StreamInterface
Save
in class Geometry
rkStream
- the Stream where the child objects are stored.public StringTree SaveStrings(String acTitle)
SaveStrings
in interface StreamInterface
SaveStrings
in class Geometry
acTitle
- the header for this object in the StringTree.public void SetActiveQuantity(int iActiveQuantity)
iActiveQuantity
- the number of active points.public void SetClosed(boolean bClosed)
bClosed
- polyline closed value.public void SetContiguous(boolean bContiguous)
bContiguous
- polyline contiguous value.protected void SetGeometryType(boolean bInit)
bInit
- when true the function is called from the Constructor, so
do not increment/decrement index quantity.