3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::Handlers::Shape3D::MeshHandler Class Reference

Shape handler for mesh shapes. More...

Inheritance diagram for Tes::Handlers::Shape3D::MeshHandler:
Tes::Handlers::ShapeHandler Tes::Runtime::MessageHandler

List of all members.

Classes

class  MeshDataComponent
 Tracks support data for mesh shapes. More...

Public Member Functions

 MeshHandler (Runtime.CategoryCheckDelegate categoryCheck)
 Create the shape handler.
override void Initialise (GameObject root, GameObject serverRoot, MaterialLibrary materials)
 Initialise, caching the MaterialLibrary.
override void Reset ()
 Overridden to release mesh resources.
override void PreRender ()
 Finalises Unity mesh objects.
override void BeginFrame (uint frameNumber, bool maintainTransient)
 Overridden to release mesh resources.

Protected Member Functions

override GameObject CreateObject ()
 Overridden to add MeshDataComponent.
override Shapes.Shape CreateSerialisationShape (ShapeComponent shapeComponent)
 Creates a mesh shape for serialising shapeComponent and its associated mesh data.
override Error PostHandleMessage (GameObject obj, CreateMessage msg, PacketBuffer packet, BinaryReader reader)
 Handle triangle count.
override Error HandleMessage (DataMessage msg, PacketBuffer packet, BinaryReader reader)
 Overridden to handle triangle data in the msg
override Error PostHandleMessage (GameObject obj, DestroyMessage msg, PacketBuffer packet, BinaryReader reader)
 Overridden to clear mesh data and release resources even for transient objects.
void FinaliseMesh (GameObject obj, ShapeComponent shape, MeshDataComponent meshData, Material material, Color32 colour)
 Finalises the mesh object an child objects.

Properties

override string Name [get]
 Handler name.
override ushort RoutingID [get]
 ShapeID.Mesh
override Mesh SolidMesh [get]
 Irrelevant.
override Mesh WireframeMesh [get]
 Irrelevant.

Detailed Description

Shape handler for mesh shapes.

Mesh shapes represent pseudo immediate mode rendering of vertex data with optional indexing.


Constructor & Destructor Documentation

Tes::Handlers::Shape3D::MeshHandler::MeshHandler ( Runtime.CategoryCheckDelegate  categoryCheck) [inline]

Create the shape handler.

Parameters:
categoryCheck

Member Function Documentation

override void Tes::Handlers::Shape3D::MeshHandler::BeginFrame ( uint  frameNumber,
bool  maintainTransient 
) [inline, virtual]

Overridden to release mesh resources.

Parameters:
frameNumber
maintainTransient

Reimplemented from Tes::Handlers::ShapeHandler.

override GameObject Tes::Handlers::Shape3D::MeshHandler::CreateObject ( ) [inline, protected, virtual]

Overridden to add MeshDataComponent.

Returns:
A new object supporting the mesh shape.

Reimplemented from Tes::Handlers::ShapeHandler.

override Shapes.Shape Tes::Handlers::Shape3D::MeshHandler::CreateSerialisationShape ( ShapeComponent  shapeComponent) [inline, protected, virtual]

Creates a mesh shape for serialising shapeComponent and its associated mesh data.

Parameters:
shapeComponentThe component to create a shape for.
Returns:
A shape instance suitable for configuring to generate serialisation messages.

Implements Tes::Handlers::ShapeHandler.

void Tes::Handlers::Shape3D::MeshHandler::FinaliseMesh ( GameObject  obj,
ShapeComponent  shape,
MeshDataComponent  meshData,
Material  material,
Color32  colour 
) [inline, protected]

Finalises the mesh object an child objects.

Parameters:
objGame object to set the mesh on or create children on.
shapeThe ShapeComponent belonging to obj .
meshDataMesh vertex and index data.
materialMaterial to render with. Chosen based on topology.
colourThe mesh render colour.
override Error Tes::Handlers::Shape3D::MeshHandler::HandleMessage ( DataMessage  msg,
PacketBuffer  packet,
BinaryReader  reader 
) [inline, protected, virtual]

Overridden to handle triangle data in the msg

Parameters:
msg
packet
reader
Returns:

Reimplemented from Tes::Handlers::ShapeHandler.

override void Tes::Handlers::Shape3D::MeshHandler::Initialise ( GameObject  root,
GameObject  serverRoot,
MaterialLibrary  materials 
) [inline, virtual]

Initialise, caching the MaterialLibrary.

Parameters:
root
serverRoot
materials

Reimplemented from Tes::Handlers::ShapeHandler.

override Error Tes::Handlers::Shape3D::MeshHandler::PostHandleMessage ( GameObject  obj,
CreateMessage  msg,
PacketBuffer  packet,
BinaryReader  reader 
) [inline, protected, virtual]

Handle triangle count.

Parameters:
obj
msg
packet
reader
Returns:

Reimplemented from Tes::Handlers::ShapeHandler.

override Error Tes::Handlers::Shape3D::MeshHandler::PostHandleMessage ( GameObject  obj,
DestroyMessage  msg,
PacketBuffer  packet,
BinaryReader  reader 
) [inline, protected, virtual]

Overridden to clear mesh data and release resources even for transient objects.

Parameters:
obj
msg
packet
reader
Returns:

Reimplemented from Tes::Handlers::ShapeHandler.


Property Documentation

override ushort Tes::Handlers::Shape3D::MeshHandler::RoutingID [get]

ShapeID.Mesh

Reimplemented from Tes::Runtime::MessageHandler.

override Mesh Tes::Handlers::Shape3D::MeshHandler::SolidMesh [get]

Irrelevant.

Each object has its own geometry.

Reimplemented from Tes::Handlers::ShapeHandler.

override Mesh Tes::Handlers::Shape3D::MeshHandler::WireframeMesh [get]

Irrelevant.

Each object has its own geometry.

Reimplemented from Tes::Handlers::ShapeHandler.


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