3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::Shapes::MeshSet Class Reference

Defines a set of MeshResource references remote rendering. More...

Inheritance diagram for Tes::Shapes::MeshSet:
Tes::Shapes::Shape

List of all members.

Public Member Functions

 MeshSet (uint id=0)
 Construct an empty mesh set.
 MeshSet (uint id, ushort category)
 Construct an empty mesh set.
MeshResource PartAt (int index)
 Access a mesh resource path.
Matrix4 PartTransformAt (int index)
 Request the transformation for a part.
MeshSet AddPart (MeshResource part, Matrix4 transform)
 Add a part to the mesh set.
MeshSet AddPart (MeshResource part)
 Add a part to the mesh set with an identity local transformation.
override bool WriteCreate (PacketBuffer packet)
 Override to write part details.
override object Clone ()
 Clone this shape.

Protected Member Functions

void OnClone (MeshSet copy)
 Overridden to copy mesh parts.

Protected Attributes

List< MeshResource_parts = new List<MeshResource>()
 List of parts.
List< Matrix4_transforms = new List<Matrix4>()
 Transforms corresponding to _parts.

Properties

override IEnumerable< ResourceResources [get]
 Enumerate the mesh resource.
int PartCount [get]
 Queries the number of mesh resource parts.

Detailed Description

Defines a set of MeshResource references remote rendering.


Constructor & Destructor Documentation

Tes::Shapes::MeshSet::MeshSet ( uint  id = 0) [inline]

Construct an empty mesh set.

Parameters:
idThe shape ID. Zero for transient shapes.
Tes::Shapes::MeshSet::MeshSet ( uint  id,
ushort  category 
) [inline]

Construct an empty mesh set.

Parameters:
idThe shape ID. Zero for transient shapes.
categoryCategory to which the shape belongs.

Member Function Documentation

MeshSet Tes::Shapes::MeshSet::AddPart ( MeshResource  part,
Matrix4  transform 
) [inline]

Add a part to the mesh set.

Parameters:
partThe mesh resource to add.
transformThe local transform for part .
Returns:
This
MeshSet Tes::Shapes::MeshSet::AddPart ( MeshResource  part) [inline]

Add a part to the mesh set with an identity local transformation.

Parameters:
partThe mesh resource to add.
Returns:
This
override object Tes::Shapes::MeshSet::Clone ( ) [inline, virtual]

Clone this shape.

Returns:
A deep copy of this object.

Reimplemented from Tes::Shapes::Shape.

void Tes::Shapes::MeshSet::OnClone ( MeshSet  copy) [inline, protected]

Overridden to copy mesh parts.

Parameters:
copyThe clone object.
MeshResource Tes::Shapes::MeshSet::PartAt ( int  index) [inline]

Access a mesh resource path.

Parameters:
indexThe part index.
Returns:
The requested part.
Matrix4 Tes::Shapes::MeshSet::PartTransformAt ( int  index) [inline]

Request the transformation for a part.

Parameters:
indexThe part index.
Returns:
The requested part transformation matrix.
override bool Tes::Shapes::MeshSet::WriteCreate ( PacketBuffer  packet) [inline, virtual]

Override to write part details.

Parameters:
packetPacket buffer to write to.
Returns:
true on success.

Reimplemented from Tes::Shapes::Shape.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events