Navigation
API > API/Plugins > API/Plugins/MutableRuntime > API/Plugins/MutableRuntime/MuR
Warnings * Every object of this class holds a reference to the model that it was created from. This implies that while any instance of a Parameters object is alive, its model will not be freed.
Inheritance Hierarchy
- Base
- RefCounted
- Parameters
References
| Module | MutableRuntime |
| Header | /Engine/Plugins/Experimental/Mutable/Source/MutableRuntime/Public/MuR/Parameters.h |
| Include | #include "MuR/Parameters.h" |
Syntax
class Parameters : public mu::RefCounted
Remarks
Every object of this class holds a reference to the model that it was created from. This implies that while any instance of a Parameters object is alive, its model will not be freed.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Parameters ()
|
Forbid creation. Instances of this class must be obtained from a Model instance. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~Parameters () |
Forbidden. Manage with the Ptr<> template. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearAllValues
(
int paramIndex |
Remove all the multidimensional values for a parameter. The current non-dimensional value is kept. | |
| ParametersPtr | Clone () |
Deep clone this object. | |
| int | Find
(
const char* strName |
Find the parameter index by name. It returns -1 if the parameter doesn't exist. | |
| bool | GetBoolValue
(
int index, |
Return the value of a boolean parameter. The parameter specified by index is a T_BOOL. | |
| void | GetColourValue
(
int index, |
Return the value of a colour parameter. The parameter specified by index is a T_FLOAT. | |
| int | GetCount () |
Return the number of parameters. | |
| PARAMETER_DETAILED_TYPE | GetDetailedType
(
int index |
Return the additional type data of the parameter. | |
| float | GetFloatValue
(
int index, |
Return the value of a float parameter. The parameter specified by index is a T_FLOAT. | |
| FName | GetImageValue
(
int index, |
Return the value of an image parameter. The parameter specified by index is a T_IMAGE. | |
| int | GetIntPossibleValue
(
int paramIndex, |
Get the value of one of the possible values for this integer. | |
| int | GetIntPossibleValueCount
(
int paramIndex |
Get the number of possible values for this integer parameter. | |
| const char * | GetIntPossibleValueName
(
int paramIndex, |
Get the name of one of the possible values for this integer. | |
| int | GetIntValue
(
int index, |
Return the value of a integer parameter. The parameter specified by index is a T_INT. | |
| int | GetIntValueIndex
(
int paramIndex, |
Get the index of the value of one of the possible values for this integer. | |
| int | GetIntValueIndex
(
int paramIndex, |
Get the index of the value of one of the possible values for this integer. | |
| const char * | GetName
(
int index |
Return the name of the parameter. | |
| Private * | GetPrivate () |
||
| void | GetProjectorValue
(
int ParameterIndex, |
Return the value of a projector parameter, as a 4x4 matrix. | |
| const char * | GetStringValue
(
int index, |
Return the value of a float parameter. The parameter specified by index is a T_FLOAT. | |
| PARAMETER_TYPE | GetType
(
int index |
Return the type of the parameter. | |
| const char * | GetUid
(
int index |
Return the Guid of the parameter, resistant to parameter name changes. | |
| int | GetValueCount
(
int paramIndex |
Return the number of values other than the default that have been set to a specific parameter. | |
| Ptr< RangeIndex > | GetValueIndex
(
int paramIndex, |
Return the RangeIndex of a value that has been set to a parameter. | |
| bool | HasSameValue
(
int thisParamIndex, |
Utility method to compare the values of a specific parameter with the values of another Parameters object. | |
| Ptr< RangeIndex > | NewRangeIndex
(
int paramIndex |
Create a new RangeIndex object to use to access a multi-dimensional parameter. | |
| void | Serialise
(
const Parameters* p, |
Life cycle. | |
| void | SerialisePortable
(
const Parameters*, |
Portable serialisation, which tries to keep values when: | |
| void | SetBoolValue
(
int index, |
Set the value of a parameter of type boolean. The parameter specified by index is a T_BOOL. | |
| void | SetColourValue
(
int index, |
If the parameter is of the colour type, set its value. | |
| void | SetFloatValue
(
int index, |
If the parameter is of the float type, set its value. | |
| void | SetImageValue
(
int index, |
If the parameter is of the image type, set its value. | |
| void | SetIntValue
(
int index, |
If the parameter is of the integer type, set its value. | |
| void | SetProjectorValue
(
int ParameterIndex, |
If the parameter is of the projector type, set its value. | |
| void | SetStringValue
(
int index, |
If the parameter is of the float type, set its value. | |
| ParametersPtr | StaticUnserialise
(
InputArchive& arch |
||
| ParametersPtr | UnserialisePortable
(
InputArchive&, |
Classes
| Type | Name | Description | |
|---|---|---|---|
| Private |