Configure state groups in a state manager. More...
Public Member Functions | |
| StateTransition | CloneTransition (StateTransition sourceTransition) |
| Duplicates a transition. | |
| StateTransition | CreateTransition (State startState, State endState) |
| Creates a transition between two states. | |
| void | DeleteTransition (StateTransition transition) |
| Deletes a transition. | |
| void | MoveTransition (StateTransition transition, int indicesToMove) |
| Moves a transition relative to its current position. | |
Public Member Functions inherited from ProjectItem | |
| void | AddProperty (Property property) |
| Adds a property to an item. | |
| void | AddProperty (string propertyName) |
| Adds a property to an item. | |
| void | BeginBatchModification (string batchName) |
| bool | CanAddProperty (Property property) |
| Checks whether Kanzi Studio allows you to add a specific property to an item. | |
| bool | CanAddProperty (string propertyName) |
| Checks whether Kanzi Studio allows you to add a specific property to an item. | |
| void | CommitBatchModification () |
| bool | Delete () |
| Deletes a project item. | |
| void | DeregisterThumbnailUser (object user) |
| Deregisters a registerd thumbnail user. | |
| IEnumerable< Property > | GetAddableProperties () |
| Gets a list of properties which you can add to an item. | |
| T | GetAncestor< T > () |
| Gets the nearest item of given type in the parent tree. | |
| ProjectItem | GetChild (string childName) |
| Gets the child item of the current item with the given name. | |
| T | GetChild< T > (string childName) |
| Gets the child item of the current item with the given name and type. | |
| int | GetChildIndex (ProjectItem child) |
| IEnumerable< Property > | GetContextProperties () |
| IEnumerable< Property > | GetFixedProperties () |
| IEnumerable< Property > | GetFrequentlyAddedProperties () |
| ProjectItem | GetProjectItemByPath (string path) |
| string | GetRelativeProjectPathTo (ProjectItem anotherItem) |
| IEnumerable< Property > | GetRemovableProperties () |
| Gets a list of properties which you can remove from an item. | |
| BitmapSource | GetThumbnail (int width, int height, bool showChildren, bool showFullScreen, Node contextNode) |
| Gets the thumbnail image for a project item. | |
| BitmapSource | GetThumbnail (int width, int height, bool showChildren, bool showFullScreen, Node contextNode, float[] letterboxColorRGBA) |
| Gets the thumbnail image for a project item. | |
| IEnumerable< ProjectItem > | GetTreeItemsAsList () |
| Enumerates the items under this ProjectItem including this item itself, children, and grand children. | |
| bool | HasProperty (Property property) |
| Checks whether an item has a specific property. | |
| bool | HasProperty (string propertyName) |
| Checks whether an item has a specific property. | |
| bool | IsPropertyReadOnly (Property property) |
| void | RegisterThumbnailUser (object user, uint width, uint height, bool showChildren, bool showFullScreen, Node contextNode) |
| Registers a user for the thumbnail images for a project item. | |
| void | RemoveProperty (Property property) |
| Removes a property from an item. | |
| void | RemoveProperty (string propertyName) |
| Removes a property from an item. | |
| void | SetChildIndex (ProjectItem child, int index) |
| void | SetPropertyReadOnlyStatus (Property property, bool? value) |
| void | UpdateValidity () |
| Recalculates the validity the item. | |
Public Member Functions inherited from PropertyContainer | |
| object | Get (Property property) |
| Gets the value of a property. | |
| object | Get (string propertyName) |
| Gets the value of a property. | |
| T | Get< T > (TypedProperty< T > property) |
| Gets the value of a property. | |
| void | Set (string propertyName, object value) |
| Sets the value of a property. | |
| void | Set< T > (TypedProperty< T > property, T value) |
| Sets the value of a property. | |
Public Member Functions inherited from ChildContainer | |
| string | GenerateUniqueChildName (string defaultName) |
| Generates a unique name. | |
| string | GetInvalidityReasonOfNewName (string newName) |
| Returns the reason why the passed name is not valid. | |
Properties | |
| bool | IgnoreStateValidityCheck [get, set] |
| bool | IsDisabledOnExport [get, set] |
| new StateGroupProperties | PropertyTypes [get] |
| IEnumerable< State > | States [get] |
| Gets the states in a state group. | |
| IEnumerable< StateTransition > | StateTransitions [get] |
| Gets the state transitions in a state group. | |
Properties inherited from ProjectItem | |
| IEnumerable< ProjectItem > | Children [get] |
| Gets all child items of a project item. | |
| string | IconLocation [get] |
| object | IconModifier [get, set] |
| string | InvalidityReason [get] |
| bool | IsDeleted [get] |
| bool | IsDisposed [get] |
| bool | IsHidden [get, set] |
| bool | IsReadOnly [get, set] |
| bool | IsValidState [get] |
| string | KzbUrl [get] |
| Gets the kzb URL of a project item. | |
| string | Name [get, set] |
| Gets or sets the name of a project item. | |
| ProjectItem | Parent [get, set] |
| string | Path [get] |
| Project | Project [get] |
| Gets the project in which this item is located. | |
| Type | ProjectItemType [get] |
| PropertyTypeLibrary | PropertyTypeLibrary [get] |
| Gets the Property Types library of the project of this item which stores all property types you create in a Kanzi Studio project. | |
| object | this[Property property] [get, set] |
| object | this[string propertyName] [get, set] |
| string | ToolTip [get] |
| string | TypeDisplayName [get] |
| Gets the type of a project item. | |
Properties inherited from PropertyContainer | |
| IEnumerable< Property > | Properties [get] |
| Gets the properties in a project item or node component. | |
Configure state groups in a state manager.
State groups contain states, define controller properties, and transitions between states in a state group. A typical transition defines a period and interpolation paths between property values of two states. You can define transitions using a general guideline for all properties, using interpolations for each property as specified, or using animation items.
Examples
To create, duplicate, move, and get transitions in a state group:
To set the controller property in a state group:
To set a custom controller property in a state group:
| StateTransition CloneTransition | ( | StateTransition | sourceTransition | ) |
Duplicates a transition.
Kanzi adds a duplicated transition as the last transition in a state group. You can move transitions in a state group using MoveTransition.
| sourceTransition | The name of the transition you want to duplicate. |
| StateTransition CreateTransition | ( | State | startState, |
| State | endState ) |
Creates a transition between two states.
Kanzi adds a new transition as the last transition in a state group. You can move transitions in a state group using MoveTransition.
| startState | The state from which the transition starts. |
| endState | The state where the transition ends. |
| void DeleteTransition | ( | StateTransition | transition | ) |
Deletes a transition.
| transition | The name of the transition you want to delete. |
| void MoveTransition | ( | StateTransition | transition, |
| int | indicesToMove ) |
Moves a transition relative to its current position.
| transition | The transition you want to move. |
| indicesToMove | The position relative to the current position of the transition. Positive values move the transition down, negative values move the transition up. |
|
getset |
|
getset |
|
get |
Implements ProjectItem.
|
get |
Gets the states in a state group.
The states.
Examples
To get all states in a state group:
|
get |
Gets the state transitions in a state group.
The state transitions.