public class TriMesh extends Triangles implements StreamInterface, Serializable
Geometry.GeometryType
Bindable.Info
Spatial.CullingMode
Modifier and Type | Field and Description |
---|---|
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 |
---|
TriMesh()
Default constructor.
|
TriMesh(TriMesh kMesh)
Construction.
|
TriMesh(VertexBuffer pkVBuffer,
IndexBuffer pkIBuffer)
Construction.
|
TriMesh(VertexBuffer pkVBuffer,
IndexBuffer pkIBuffer,
boolean bUpdate) |
TriMesh(VertexBuffer pkVBuffer,
IndexBuffer pkIBuffer,
BoundingVolume kBounds)
Construction.
|
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.
|
boolean |
GetTriangle(int i,
int[] riV)
Get triangl at the specified index.
|
int |
GetTriangleQuantity()
Interpretation of the index buffer data.
|
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.
|
GetModelTriangle, GetWorldTriangle, SetInside, UpdateModelNormals
Copy, dispose, GetAllObjectsByName, GetModelBound, GetObjectByID, GetObjectByName, GetVisibleSet, UpdateModelBound, 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
public TriMesh()
public TriMesh(TriMesh kMesh)
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.public TriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer)
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.public TriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer, boolean bUpdate)
public TriMesh(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer, BoundingVolume kBounds)
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class Triangles
rkVersion
- the current version of the Stream file being created.public boolean GetTriangle(int i, int[] riV)
GetTriangle
in class Triangles
i
- index.rkV
- int[3] array to contain the three triangle index values.public final int GetTriangleQuantity()
GetTriangleQuantity
in class Triangles
public void Link(Stream rkStream, Stream.Link pkLink)
Link
in interface StreamInterface
Link
in class Triangles
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 Triangles
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 Triangles
rkStream
- the Stream where the child objects are stored.public void Save(Stream rkStream)
Save
in interface StreamInterface
Save
in class Triangles
rkStream
- the Stream where the child objects are stored.public StringTree SaveStrings(String acTitle)
SaveStrings
in interface StreamInterface
SaveStrings
in class Triangles
acTitle
- the header for this object in the StringTree.