#include <parametervec.h>
Public Member Functions | |
virtual void | setValue (const Parameter &value) override |
void | setValue (T value) |
void | setRange (typename T::value_type minimum, typename T::value_type maximum) |
![]() | |
const std::string | getDisplayName () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
T | mValue |
Property: 'Value' the value of this parameter. More... | |
bool | mClamp = false |
Property: 'Clamp' if the vector is clamped to the min / max value. More... | |
T::value_type | mMinimum = static_cast<typename T::value_type>(0) |
Property: 'Minimum' the minimum value of this parameter. More... | |
T::value_type | mMaximum = static_cast<typename T::value_type>(1) |
Property: 'Maximum' the maximum value of this parameter. More... | |
Signal< T > | valueChanged |
Signal that's raised when the value changes. More... | |
![]() | |
std::string | mName |
Property 'Name': The name of this property. The name is separate from the ID and doesn't have to be unique. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
A numeric vector parameter can hold any numeric vector type (i.e. glm::vec2, glm::vec3, etc) The values associated with the vector are clamped to the specified min and max bounds.
void setRange | ( | typename T::value_type | minimum, |
typename T::value_type | maximum | ||
) |
Sets the min/max range of this parameter to the specified values. If the current value is outside of the specified range, it will be clamped.
minimum | The minimum value for this parameter |
maximum | The maximum value for this parameter |
|
overridevirtual |
Set the value of this enum from another parameter
value | The parameter to set the value from |
Implements Parameter.
void setValue | ( | T | value | ) |
Set the value of this parameter. Will raise the valueChanged signal if the value actually changes.
value | The value to set |
bool mClamp = false |
Property: 'Clamp' if the vector is clamped to the min / max value.
T::value_type mMaximum = static_cast<typename T::value_type>(1) |
Property: 'Maximum' the maximum value of this parameter.
T::value_type mMinimum = static_cast<typename T::value_type>(0) |
Property: 'Minimum' the minimum value of this parameter.
T mValue |
Property: 'Value' the value of this parameter.