A base class which provides the basic implementation of ICustomizationState.Client's CustomizationState object should derive from this class.
Public Types |
|
enum | BasePropertyKeys { StateName } |
List of properties that this State class serializes. More... |
|
Public Member Functions |
|
virtual bool | AddChild (ICustomizationState stateObject) |
Add a child customizationState object to the
current object. |
|
virtual ICustomizationState | GetChildByIndex (int index) |
Get the index-th child state object.
|
|
virtual ICustomizationState | GetChildByName (String name) |
Get the child state object by its state
name. |
|
virtual bool | RemoveChildByIndex (int index) |
Remove the index-th child state object.
|
|
virtual bool | RemoveChildByName (String name) |
Remove the child state object by its state
name. |
|
virtual bool | LoadProperties (Dictionary< String, String > aPropertySet) |
Given a dictionary mapping keyNames to
properties, loads the properties into this CustomizationState
object. |
|
virtual
Dictionary< String, String > |
SaveProperties () |
Create a dictionary mapping keyNames to
properties, saves the properties into this dictionary. |
|
Properties |
|
virtual int |
ChildrenCount [get] |
Get the count of child states. |
|
virtual ICustomizationState |
ParentState [get, set] |
Get or set the parent customizationState of
current one. |
|
virtual String |
StateName [get, set] |
Get or set the name of the current ICustomizationState
instance. |
virtual bool MaxCustomControls::BaseCustomizationState::AddChild | ( | ICustomizationState | stateObject | ) | [inline, virtual] |
Add a child customizationState object to the current object.
stateObject | The child state object |
Implements MaxCustomControls::ICustomizationState.
virtual ICustomizationState MaxCustomControls::BaseCustomizationState::GetChildByIndex | ( | int | index | ) | [inline, virtual] |
Get the index-th child state object.
index | the child state's index |
Implements MaxCustomControls::ICustomizationState.
virtual ICustomizationState MaxCustomControls::BaseCustomizationState::GetChildByName | ( | String | name | ) | [inline, virtual] |
Get the child state object by its state name.
Client should use this method to get the correct child state object.
name | the name of the child state object. |
Implements MaxCustomControls::ICustomizationState.
virtual bool MaxCustomControls::BaseCustomizationState::RemoveChildByIndex | ( | int | index | ) | [inline, virtual] |
Remove the index-th child state object.
index | the index of the child state object. |
Implements MaxCustomControls::ICustomizationState.
virtual bool MaxCustomControls::BaseCustomizationState::RemoveChildByName | ( | String | name | ) | [inline, virtual] |
Remove the child state object by its state name.
name | the name of the child state object to be removed. |
Implements MaxCustomControls::ICustomizationState.
virtual bool MaxCustomControls::BaseCustomizationState::LoadProperties | ( | Dictionary< String, String > | aPropertySet | ) | [inline, virtual] |
Given a dictionary mapping keyNames to properties, loads the properties into this CustomizationState object.
It is the client's responsibility to serialize and deserialize custom properties, since the Value type in the Dictionary is a String.
aPropertySet | A dictionary mapping keyNames to properties. |
Implements MaxCustomControls::ICustomizationState.
Reimplemented in MaxCustomControls::BaseMaterialControls::RichMaterialExplorerControlState, MaxCustomControls::ExplorerCustomizationState, MaxCustomControls::FormCustomizationState, MaxCustomControls::MaterialExplorerControls::MaterialExplorerCustomizationState, MaxCustomControls::MaterialExplorerControls::SceneMaterialExplorerState, MaxCustomControls::MaterialExplorerControls::SelectedMaterialExplorerState, and MaxCustomControls::SceneExplorerControls::SceneExplorerCustomizationState.
virtual Dictionary<String, String> MaxCustomControls::BaseCustomizationState::SaveProperties | ( | ) | [inline, virtual] |
Create a dictionary mapping keyNames to properties, saves the properties into this dictionary.
It is the client's responsibility to serialize and deserialize custom properties, since the Value type in the Dictionary is a String.
Implements MaxCustomControls::ICustomizationState.
Reimplemented in MaxCustomControls::BaseMaterialControls::RichMaterialExplorerControlState, MaxCustomControls::ExplorerCustomizationState, MaxCustomControls::FormCustomizationState, MaxCustomControls::MaterialExplorerControls::MaterialExplorerCustomizationState, MaxCustomControls::MaterialExplorerControls::SceneMaterialExplorerState, MaxCustomControls::MaterialExplorerControls::SelectedMaterialExplorerState, and MaxCustomControls::SceneExplorerControls::SceneExplorerCustomizationState.
virtual int
MaxCustomControls::BaseCustomizationState::ChildrenCount
[get] |
Get the count of child states.
Implements MaxCustomControls::ICustomizationState.
virtual ICustomizationState
MaxCustomControls::BaseCustomizationState::ParentState [get,
set] |
Get or set the parent customizationState of current one.
Implements MaxCustomControls::ICustomizationState.
virtual String
MaxCustomControls::BaseCustomizationState::StateName [get,
set] |
Get or set the name of the current ICustomizationState instance.
the StateName should be unique among all sibling state objects.
Implements MaxCustomControls::ICustomizationState.