public abstract class Triangles extends Geometry implements StreamInterface, Serializable
Geometry.GeometryType
Bindable.Info
Spatial.CullingMode
Modifier and Type | Field and Description |
---|---|
private boolean |
m_bInside
Inside mesh, or Outside mesh.
|
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
Modifier | Constructor and Description |
---|---|
|
Triangles()
Default constructor.
|
protected |
Triangles(Triangles kTris)
Protected constructor.
|
protected |
Triangles(VertexBuffer pkVBuffer,
IndexBuffer pkIBuffer)
Protected constructor.
|
protected |
Triangles(VertexBuffer pkVBuffer,
IndexBuffer pkIBuffer,
BoundingVolume kBounds)
Protected 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.
|
boolean |
GetModelTriangle(int i,
Triangle3f rkMTri)
Get the triangle in model coodinates.
|
abstract boolean |
GetTriangle(int i,
int[] riV)
Get the triangle at given index.
|
abstract int |
GetTriangleQuantity()
Get the number of triangles.
|
boolean |
GetWorldTriangle(int i,
Triangle3f rkWTri)
Get the triangle in world coodinates.
|
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 |
SetInside(boolean bInside) |
protected void |
UpdateModelNormals()
Update model normals.
|
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
private boolean m_bInside
public Triangles()
protected Triangles(Triangles kTris)
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.protected Triangles(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer)
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.protected Triangles(VertexBuffer pkVBuffer, IndexBuffer pkIBuffer, BoundingVolume kBounds)
pkVBuffer
- vertex buffer.pkIBuffer
- index buffer.public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class Geometry
rkVersion
- the current version of the Stream file being created.public boolean GetModelTriangle(int i, Triangle3f rkMTri)
i
- index.rkMTri
- triangle in model-coordinates.public abstract boolean GetTriangle(int i, int[] riV)
i
- index.riV
- int[3] array to contain 3 triangle indices.public abstract int GetTriangleQuantity()
public boolean GetWorldTriangle(int i, Triangle3f rkWTri)
i
- index.rkMTri
- triangle in world-coordinates.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 SetInside(boolean bInside)
protected void UpdateModelNormals()
UpdateModelNormals
in class Geometry