3rd Eye Scene C#
3rd Eye Scene C# documentation
|
Shape message handler for point clouds. More...
Public Member Functions | |
PointCloudHandler (Runtime.CategoryCheckDelegate categoryCheck, MeshCache meshCache) | |
Create the shape handler. | |
override void | Initialise (GameObject root, GameObject serverRoot, MaterialLibrary materials) |
Override. | |
override void | Reset () |
Clear all current objects and mesh references. | |
override void | PreRender () |
Ensures mesh objects are finalised. | |
Protected Member Functions | |
override GameObject | CreateObject () |
Overridden to not create a mesh filter or renderer for the points root. | |
override Shapes.Shape | CreateSerialisationShape (ShapeComponent shapeComponent) |
Creates a point cloud shape for serialising shapeComponent and its point data. | |
override Error | HandleMessage (CreateMessage msg, PacketBuffer packet, BinaryReader reader) |
Overridden to read information about mesh parts. | |
override Error | HandleMessage (DataMessage msg, PacketBuffer packet, BinaryReader reader) |
Overridden to read optional point cloud indices. | |
override Error | PostHandleMessage (GameObject obj, DestroyMessage msg, PacketBuffer packet, BinaryReader reader) |
Post destroy message: destroy sub-objects. | |
void | RegisterForMesh (PointsComponent points) |
Register points for mesh resolving. | |
virtual void | OnMeshFinalised (MeshCache.MeshDetails meshDetails) |
Mesh resource completion notification. | |
virtual void | OnMeshRemoved (MeshCache.MeshDetails meshDetails) |
Mesh resource removal notification. | |
virtual void | SetMesh (PointsComponent points, MeshCache.MeshDetails meshDetails) |
Set the visuals of <pararef name="points"> to use meshDetails . | |
Properties | |
override string | Name [get] |
Handler name. | |
override ushort | RoutingID [get] |
ShapeID.PointCloud | |
override Mesh | SolidMesh [get] |
Irrelevant. | |
override Mesh | WireframeMesh [get] |
Irrelevant. | |
MeshCache | MeshCache [get, set] |
Access the MeshCache from which mesh resources are resolved. |
Shape message handler for point clouds.
Whilst very similar to meshes, point cloud shapes do not support referencing an external mesh. The point data are encoded in a series of DataMessages.
Note: objects from the MeshCache can be marked for redefinition. In this case objects maintain the last valid visuals until a new finalisation message arrives.
Tes::Handlers::Shape3D::PointCloudHandler::PointCloudHandler | ( | Runtime.CategoryCheckDelegate | categoryCheck, |
MeshCache | meshCache | ||
) | [inline] |
Create the shape handler.
categoryCheck | |
meshCache | The mesh cache from which to read resources. |
override GameObject Tes::Handlers::Shape3D::PointCloudHandler::CreateObject | ( | ) | [inline, protected, virtual] |
Overridden to not create a mesh filter or renderer for the points root.
Reimplemented from Tes::Handlers::ShapeHandler.
override Shapes.Shape Tes::Handlers::Shape3D::PointCloudHandler::CreateSerialisationShape | ( | ShapeComponent | shapeComponent | ) | [inline, protected, virtual] |
Creates a point cloud shape for serialising shapeComponent and its point data.
shapeComponent | The component to create a shape for. |
Implements Tes::Handlers::ShapeHandler.
override Error Tes::Handlers::Shape3D::PointCloudHandler::HandleMessage | ( | CreateMessage | msg, |
PacketBuffer | packet, | ||
BinaryReader | reader | ||
) | [inline, protected, virtual] |
Overridden to read information about mesh parts.
msg | |
packet | |
reader |
Reimplemented from Tes::Handlers::ShapeHandler.
override Error Tes::Handlers::Shape3D::PointCloudHandler::HandleMessage | ( | DataMessage | msg, |
PacketBuffer | packet, | ||
BinaryReader | reader | ||
) | [inline, protected, virtual] |
Overridden to read optional point cloud indices.
msg | Message header. |
packet | Data packet. |
reader | Data packet reader. |
Reimplemented from Tes::Handlers::ShapeHandler.
override void Tes::Handlers::Shape3D::PointCloudHandler::Initialise | ( | GameObject | root, |
GameObject | serverRoot, | ||
MaterialLibrary | materials | ||
) | [inline, virtual] |
virtual void Tes::Handlers::Shape3D::PointCloudHandler::OnMeshFinalised | ( | MeshCache.MeshDetails | meshDetails | ) | [inline, protected, virtual] |
Mesh resource completion notification.
meshDetails | The mesh(es) finalised. |
Links objects waiting on meshDetails to use the associated meshes.
virtual void Tes::Handlers::Shape3D::PointCloudHandler::OnMeshRemoved | ( | MeshCache.MeshDetails | meshDetails | ) | [inline, protected, virtual] |
Mesh resource removal notification.
meshDetails | The mesh(es) being removed. |
Stops referencing the associated mesh objects.
override Error Tes::Handlers::Shape3D::PointCloudHandler::PostHandleMessage | ( | GameObject | obj, |
DestroyMessage | msg, | ||
PacketBuffer | packet, | ||
BinaryReader | reader | ||
) | [inline, protected, virtual] |
Post destroy message: destroy sub-objects.
obj | |
msg | |
packet | |
reader |
Reimplemented from Tes::Handlers::ShapeHandler.
void Tes::Handlers::Shape3D::PointCloudHandler::RegisterForMesh | ( | PointsComponent | points | ) | [inline, protected] |
Register points for mesh resolving.
The mesh is either resolved now, or on mesh finalisation. Note that any limited indexing must be completed before calling this function. That is PointsComponent.Indices must have been resolved.
points | The points component. |
virtual void Tes::Handlers::Shape3D::PointCloudHandler::SetMesh | ( | PointsComponent | points, |
MeshCache.MeshDetails | meshDetails | ||
) | [inline, protected, virtual] |
Set the visuals of <pararef name="points"> to use meshDetails .
points | The points object |
meshDetails | The mesh details. |
Adds multiple children to points when meshDetails contains multiple mesh objects.
override ushort Tes::Handlers::Shape3D::PointCloudHandler::RoutingID [get] |
ShapeID.PointCloud
Reimplemented from Tes::Runtime::MessageHandler.
override Mesh Tes::Handlers::Shape3D::PointCloudHandler::SolidMesh [get] |
override Mesh Tes::Handlers::Shape3D::PointCloudHandler::WireframeMesh [get] |