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

Handles capsule shapes (cylinders with rounded, hemisphere end caps). More...

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

List of all members.

Public Member Functions

 CapsuleHandler (Runtime.CategoryCheckDelegate categoryCheck)
 Create the shape handler.

Protected Member Functions

override GameObject CreateObject ()
 Override to create an object per capsule part: top, bottom and cylinder.
override void InitialiseVisual (ShapeComponent obj, Color colour)
 Initialise the visual components (e.g., meshes) for obj .
override void DecodeTransform (ObjectAttributes attributes, Transform transform, ObjectFlag flags)
 Override to decode ScaleX as radius and ScaleZ as length.
override void EncodeAttributes (ref ObjectAttributes attr, GameObject obj, ShapeComponent comp)
 Overridden to handle component pieces.
override Shapes.Shape CreateSerialisationShape (ShapeComponent shapeComponent)
 Creates an capsule shape for serialisation.

Properties

override string Name [get]
 Handler name.
override ushort RoutingID [get]
 ShapeID.Capsule
override Mesh SolidMesh [get]
 Solid mesh representation.
override Mesh WireframeMesh [get]
 Wireframe mesh representation.

Detailed Description

Handles capsule shapes (cylinders with rounded, hemisphere end caps).


Constructor & Destructor Documentation

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

Create the shape handler.

Parameters:
categoryCheck

Member Function Documentation

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

Override to create an object per capsule part: top, bottom and cylinder.

Returns:
The capsule object.

Reimplemented from Tes::Handlers::ShapeHandler.

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

Creates an capsule shape for serialisation.

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

Implements Tes::Handlers::ShapeHandler.

override void Tes::Handlers::Shape3D::CapsuleHandler::InitialiseVisual ( ShapeComponent  obj,
Color  colour 
) [inline, protected, virtual]

Initialise the visual components (e.g., meshes) for obj .

Parameters:
objThe object to initialise visuals for.
colourPrimary rendering colour.

Requires special handling as the capsule is made up of several components.

Reimplemented from Tes::Handlers::ShapeHandler.


Property Documentation

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

ShapeID.Capsule

Reimplemented from Tes::Runtime::MessageHandler.


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