class methods
- ofParameter()
- addListener()
- disableEvents()
- enableEvents()
- fromString()
- get()
- getFirstParent()
- getInternalObject()
- getMax()
- getMin()
- getName()
- getNumListeners()
- isReadOnly()
- isSerializable()
- makeReferenceTo()
- newListener()
- newReference()
- operator%=()
- operator&=()
- operator*=()
- operator++()
- operator+=()
- operator--()
- operator-=()
- operator->()
- operator/=()
- operator<<=()
- operator=()
- operator>>=()
- operator^=()
- operator|=()
- removeListener()
- set()
- setMax()
- setMin()
- setName()
- setParent()
- setSerializable()
- setWithoutEventNotifications()
- toString()
- valueType()
Extends
This class extends others, you can call their methods on an instance of ofParameter too:
Documentation from code comments
ofParameter holds a value and notifies its listeners when it changes.
ofParameter can be used as the value itself. For example an ofParameter<int>
can be added, multiplied, substracted, etc with another number.
For an ofParameter with a custom object such as ofParameter<MyObject> myObject
,
MyObject
's methods can be accessed using pointer syntax,
e.g. myObject->myMethod();
.
\tparam ParameterType The data wrapped by the ofParameter.
ofParameter(...)
ofParameter::ofParameter(const string &name, const ParameterType &v, const ParameterType &min, const ParameterType &max)
addListener(...)
void ofParameter::addListener(ListenerClass *listener, ListenerMethod method, int prio)
operator=(...)
ofParameter< ParameterType > & ofParameter::operator=(const ofParameter< ParameterType > &v)
removeListener(...)
void ofParameter::removeListener(ListenerClass *listener, ListenerMethod method, int prio)
set(...)
ofParameter< ParameterType > & ofParameter::set(const string &name, const ParameterType &v)
set(...)
ofParameter< ParameterType > & ofParameter::set(const string &name, const ParameterType &v, const ParameterType &min, const ParameterType &max)
setWithoutEventNotifications(...)
ofParameter< ParameterType > & ofParameter::setWithoutEventNotifications(const ParameterType &v)
Last updated 星期二, 19 十一月 2024 17:24:59 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue