API Documentation > Interface Classes > Class pfcParameter
Class pfcParameter

# include <pfcModelItem.h>

class
pfcParameter
: public virtual
pfcBaseParameter,
: public virtual
pfcNamedModelItem
{
xaideclare(pfcParameter)
...
};


Description
This class defines a parameter object.
Manual References:
Direct Known Subclasses:
Method Summary
void
Deletes a parameter.
void
Parameter description string.
Obtains the type of driver for a material parameter.
Identifies if a parameter's value is restricted to a certain range or enumerated.
Gets the parameter value in the units of the parameter, instead of the units of the owner model.
Units assigned to the parameter.
void
Reorders the given parameter to come just after the indicated parameter.
void
Sets the parameter value in terms of the units provided, instead of using the units of the owner model.
Methods Inherited from Class pfcBaseParameter::
Methods Inherited from Class pfcChild::
Methods Inherited from Class pfcNamedModelItem::
Method Detail
void
Delete
()
Deletes a parameter.
Exceptions thrown (but not limited to):
pfcXToolkitNotFound - The owner was not found.
Manual References:
Returns:
GetUnits
()
Units assigned to the parameter.
Exceptions thrown (but not limited to):
pfcXToolkitNotFound - The parameter is unitless.
Manual References:
GetScaledValue
()
Gets the parameter value in the units of the parameter, instead of the units of the owner model.
Exceptions thrown (but not limited to):
pfcXToolkitNotFound - The owner was not found.
Manual References:
Returns:
The parameter scaled value.
void
SetScaledValue
Sets the parameter value in terms of the units provided, instead of using the units of the owner model.
Exceptions thrown (but not limited to):
pfcXToolkitNotFound - The owner was not found.
pfcXToolkitInvalidType - The unit type provided does not match the units of the parameter.
Manual References:
Parameters:
value
The value of the parameter to be set.
Units
The units in which the value is expressed. The value can be null.
Returns:
GetDescription
()
void
SetDescription
(optional xrstring value)
Parameter description string.
Exceptions thrown (but not limited to):
pfcXToolkitNotFound - The parameter's description is not set.
Manual References:
void
Reorder
(optional pfcParameter_ptr ParamBefore)
Reorders the given parameter to come just after the indicated parameter.
Exceptions thrown (but not limited to):
pfcXToolkitBadContext - Parameter 'param_before' does not have the same owner as the parameter to be reordered.
pfcXToolkitNoLicense - No license is available for this functionality.
Manual References:
Parameters:
ParamBefore
The parameter to be just before the reordered parameter. If NULL, the reordered parameter is moved to the first position in the parameter list.
Returns:
Obtains the type of driver for a material parameter.
Manual References:
Returns:
The parameter driver type.
Identifies if a parameter's value is restricted to a certain range or enumerated.
Manual References:
Returns:
The parameter restriction.
Was this helpful?