|
3rd Eye Scene C#
3rd Eye Scene C# documentation
|
Maintains camera objects which may be used to view the scene. More...
Classes | |
| class | Category |
| Category details. More... | |
Public Member Functions | |
| delegate void | NewCategoryDelegate (Category category) |
| Delegate for receiving a message defining a new category. | |
| delegate void | ClearCategoriesDelegate () |
| Delegate for clearing/resetting all categories. | |
| delegate void | ActivationChangeDelegate (ushort categoryId, bool active) |
| Delegate for changes to the active state of a category. | |
| CategoriesHandler () | |
| Constructor initialising the persistent and transient caches. | |
| void | AddCategory (ushort id, ushort parentId, string name, bool active) |
| Add a category to the list of known categories. | |
| Category | Lookup (ushort id) |
| Lookup and retrieve details of a category. | |
| IEnumerable< Category > | ChildCategories (ushort id) |
| Enumerates categories which are children of the category with id | |
| bool | IsActive (ushort id) |
| Check if a category is active. | |
| void | SetActive (ushort id, bool active) |
| Set the active state of a category. | |
| override void | BeginFrame (uint frameNumber, bool maintainTransient) |
| Empty. | |
| override void | EndFrame (uint frameNumber) |
| Empty. | |
| override void | Initialise (GameObject root, GameObject serverRoot, MaterialLibrary materials) |
| Initialise the shape handler by initialising the shape scene root and fetching the default materials. | |
| override void | Reset () |
| Clear all current objects. | |
| override Error | ReadMessage (PacketBuffer packet, BinaryReader reader) |
| The primary message handling function. | |
| override Error | Serialise (BinaryWriter writer, ref SerialiseInfo info) |
| Serialises the currently active objects in for playback from file. | |
| override void | OnCategoryChange (ushort categoryId, bool active) |
| Empty: this event is sourced from this class. | |
Protected Member Functions | |
| void | NotifyNewCategory (Category category) |
| Invoke OnNewCategory | |
Properties | |
| override string | Name [get] |
| Handler name. | |
| override ushort | RoutingID [get] |
| Routing ID. | |
| IEnumerable< Category > | Categories [get] |
| Enumerates the known categories. | |
Events | |
| NewCategoryDelegate | OnNewCategory |
| Invoked on receiving a message defining a new category. | |
| ClearCategoriesDelegate | OnClearCategories |
| Invoked on clearing/resetting all categories. | |
| ActivationChangeDelegate | OnActivationChange |
| Invoked on changes to the active state of a category. | |
Maintains camera objects which may be used to view the scene.
Camera objects represent predetermined views into the scene. A camera object is really just a reference transform which the scene camera may optionally follow.
Camera objects are implicitly created when a message with a new camera ID arrives. A camera object is never destroyed and may only be updated with a new message.
| delegate void Tes::Handlers::CategoriesHandler::ActivationChangeDelegate | ( | ushort | categoryId, |
| bool | active | ||
| ) |
Delegate for changes to the active state of a category.
| categoryId | The category changing state. |
| active | True when becoming active. |
| void Tes::Handlers::CategoriesHandler::AddCategory | ( | ushort | id, |
| ushort | parentId, | ||
| string | name, | ||
| bool | active | ||
| ) | [inline] |
Add a category to the list of known categories.
| id | The category ID |
| parentId | The parent ID. Zero is none (even though 0 is a valid category). |
| name | The category display name. |
| active | The default active state. |
| override void Tes::Handlers::CategoriesHandler::BeginFrame | ( | uint | frameNumber, |
| bool | maintainTransient | ||
| ) | [inline, virtual] |
| IEnumerable<Category> Tes::Handlers::CategoriesHandler::ChildCategories | ( | ushort | id | ) | [inline] |
Enumerates categories which are children of the category with id
| id | The category ID to enumerate the children of. |
| override void Tes::Handlers::CategoriesHandler::EndFrame | ( | uint | frameNumber | ) | [inline, virtual] |
| override void Tes::Handlers::CategoriesHandler::Initialise | ( | GameObject | root, |
| GameObject | serverRoot, | ||
| MaterialLibrary | materials | ||
| ) | [inline, virtual] |
Initialise the shape handler by initialising the shape scene root and fetching the default materials.
| root | The 3rd Eye Scene root object. |
| serverRoot | The server scene root (transformed into the server reference frame). |
| materials | Material library from which to resolve materials. |
Reimplemented from Tes::Runtime::MessageHandler.
| bool Tes::Handlers::CategoriesHandler::IsActive | ( | ushort | id | ) | [inline] |
Check if a category is active.
| id | The category ID. |
| Category Tes::Handlers::CategoriesHandler::Lookup | ( | ushort | id | ) | [inline] |
Lookup and retrieve details of a category.
| id | The category to lookup. |
| delegate void Tes::Handlers::CategoriesHandler::NewCategoryDelegate | ( | Category | category | ) |
Delegate for receiving a message defining a new category.
| category | The new category details. |
| void Tes::Handlers::CategoriesHandler::NotifyNewCategory | ( | Category | category | ) | [inline, protected] |
Invoke OnNewCategory
| category | The new category details. |
| override void Tes::Handlers::CategoriesHandler::OnCategoryChange | ( | ushort | categoryId, |
| bool | active | ||
| ) | [inline, virtual] |
Empty: this event is sourced from this class.
| categoryId | |
| active |
Implements Tes::Runtime::MessageHandler.
| override Error Tes::Handlers::CategoriesHandler::ReadMessage | ( | PacketBuffer | packet, |
| BinaryReader | reader | ||
| ) | [inline, virtual] |
The primary message handling function.
| packet | |
| reader |
Implements Tes::Runtime::MessageHandler.
| override Error Tes::Handlers::CategoriesHandler::Serialise | ( | BinaryWriter | writer, |
| ref SerialiseInfo | info | ||
| ) | [inline, virtual] |
Serialises the currently active objects in for playback from file.
| writer | The write to serialise to. |
| info | Statistics |
Implements Tes::Runtime::MessageHandler.
| void Tes::Handlers::CategoriesHandler::SetActive | ( | ushort | id, |
| bool | active | ||
| ) | [inline] |
Set the active state of a category.
| id | The category ID. |
| active | The desired active state. |
This invokes the OnActivationChange event when active does not match the category state.
Unknown id values are ignored.