![]() |
![]() |
Extends the GenApi::IInteger interface with convenience methods. More...
#include <pylon/IntegerParameter.h>
Public Member Functions | |
virtual bool | TrySetValue (int64_t value)=0 |
Sets the value of the parameter if the parameter is writable. More... | |
virtual int64_t | GetValueOrDefault (int64_t defaultValue)=0 |
Gets the value of the parameter if the parameter is readable. More... | |
virtual bool | TrySetValue (int64_t value, EIntegerValueCorrection correction)=0 |
Sets the value of the parameter if the parameter is writable and readable. More... | |
virtual void | SetValue (int64_t value, EIntegerValueCorrection correction)=0 |
Sets the value of the parameter. More... | |
virtual double | GetValuePercentOfRange ()=0 |
Gets the value of the parameter in percent of its value range (from minimum to maximum). More... | |
virtual void | SetValuePercentOfRange (double percentOfRange)=0 |
Sets the value of the parameter to a value within its range, using this formula (simplified): ((max - min) * (percentOfRange / 100.0)) + min. More... | |
virtual bool | TrySetValuePercentOfRange (double percentOfRange)=0 |
If the parameter is writable and readable, sets the value of the parameter to a value within its range, using this formula (simplified): ((max - min) * (percentOfRange / 100.0)) + min. More... | |
virtual void | SetToMaximum ()=0 |
Sets the value of the parameter to the maximum possible value. More... | |
virtual void | SetToMinimum ()=0 |
Sets the value of the parameter to the minimum possible value. More... | |
virtual bool | TrySetToMaximum ()=0 |
Sets the value of the parameter to the maximum possible value if the parameter is readable and writable. More... | |
virtual bool | TrySetToMinimum ()=0 |
Sets the value of the parameter to the minimum possible value if the parameter is readable and writable. More... | |
virtual void | SetValue (int64_t Value, bool Verify=true)=0 |
Set node value. More... | |
virtual int64_t | GetValue (bool Verify=false, bool IgnoreCache=false)=0 |
Get node value. More... | |
virtual int64_t | operator() ()=0 |
Get node value. | |
virtual int64_t | operator* ()=0 |
Get node value. | |
virtual int64_t | GetMin ()=0 |
Get minimum value allowed. | |
virtual int64_t | GetMax ()=0 |
Get maximum value allowed. | |
virtual EIncMode | GetIncMode ()=0 |
Get increment mode. | |
virtual int64_t | GetInc ()=0 |
Get increment. | |
virtual int64_autovector_t | GetListOfValidValues (bool bounded=true)=0 |
Get list of valid value. | |
virtual ERepresentation | GetRepresentation ()=0 |
Get recommended representation. | |
virtual GenICam::gcstring | GetUnit ()=0 |
Get the physical unit name. | |
virtual void | ImposeMin (int64_t Value)=0 |
Restrict minimum value. | |
virtual void | ImposeMax (int64_t Value)=0 |
Restrict maximum value. | |
virtual INode * | GetNode () |
Get the INode interface of the node. | |
virtual GenICam::gcstring | ToString (bool Verify=false, bool IgnoreCache=false)=0 |
Get content of the node as string. More... | |
virtual void | FromString (const GenICam::gcstring &ValueStr, bool Verify=true)=0 |
Set content of the node as string. More... | |
virtual bool | IsValueCacheValid () const =0 |
Checks if the value comes from cache or is requested from another node. | |
virtual EAccessMode | GetAccessMode () const =0 |
Get the access mode of the node. | |
virtual bool | IsReadable () const =0 |
Indicates whether the parameter is readable. More... | |
virtual bool | IsWritable () const =0 |
Indicates whether the parameter is writable. More... | |
virtual bool | IsValid () const =0 |
Indicates whether a node is attached. More... | |
virtual String_t | GetInfo (EParameterInfo info)=0 |
Gets the parameter information. More... | |
virtual String_t | GetInfoOrDefault (EParameterInfo info, const String_t defaultInfo)=0 |
Gets the parameter information if the parameter is attached to a node. More... | |
virtual String_t | ToStringOrDefault (const String_t &defaultValue)=0 |
Gets the parameter value as string if the parameter is readable. More... | |
Extends the GenApi::IInteger interface with convenience methods.
|
pure virtualinherited |
Set content of the node as string.
ValueStr | The value to set |
Verify | Enables AccessMode and Range verification (default = true) |
Implemented in Pylon::CParameter.
|
pure virtualinherited |
Gets the parameter information.
[in] | info | The type information to return. |
Implemented in Pylon::CParameter.
|
pure virtualinherited |
Gets the parameter information if the parameter is attached to a node.
See IsValid().
[in] | info | The type information to return. Otherwise returns the default information. This method is useful if you want to display parameter information and handle the case that some parameters are not available for a device. |
[in] | defaultInfo | The default information returned if the parameter is not attached to a node. |
Implemented in Pylon::CParameter.
|
pure virtualinherited |
Get node value.
Verify | Enables Range verification (default = false). The AccessMode is always checked |
IgnoreCache | If true the value is read ignoring any caches (default = false) |
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Gets the value of the parameter if the parameter is readable.
Otherwise returns the default value.
[in] | defaultValue | The default value returned if the parameter is not readable. |
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Gets the value of the parameter in percent of its value range (from minimum to maximum).
Implemented in Pylon::CIntegerParameter.
|
pure virtualinherited |
Indicates whether the parameter is readable.
Implemented in Pylon::CParameter.
|
pure virtualinherited |
Indicates whether a node is attached.
Implemented in Pylon::CFloatParameter, Pylon::CIntegerParameter, Pylon::CEnumParameter, Pylon::CParameter, Pylon::CStringParameter, Pylon::CBooleanParameter, Pylon::CCommandParameter, and Pylon::CArrayParameter.
|
pure virtualinherited |
Indicates whether the parameter is writable.
Implemented in Pylon::CParameter.
|
pure virtual |
Sets the value of the parameter to the maximum possible value.
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Sets the value of the parameter to the minimum possible value.
Implemented in Pylon::CIntegerParameter.
|
pure virtualinherited |
Set node value.
Value | The value to set |
Verify | Enables AccessMode and Range verification (default = true) |
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Sets the value of the parameter.
The value is automatically corrected if needed.
[in] | value | The value to set. |
[in] | correction | The correction method. |
correction
equals IntegerValueCorrection_None. Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Sets the value of the parameter to a value within its range, using this formula (simplified): ((max - min) * (percentOfRange / 100.0)) + min.
The value is always corrected to the nearest valid value.
[in] | percentOfRange | The percentage of the range to be used in the calculation. |
The parameter must be writable.
Implemented in Pylon::CIntegerParameter.
|
pure virtualinherited |
Get content of the node as string.
Verify | Enables Range verification (default = false). The AccessMode is always checked |
IgnoreCache | If true the value is read ignoring any caches (default = false) |
Implemented in Pylon::CParameter.
|
pure virtualinherited |
Gets the parameter value as string if the parameter is readable.
Otherwise returns the default value.
[in] | defaultValue | The default value returned if the parameter is not readable. |
Implemented in Pylon::CParameter.
|
pure virtual |
Sets the value of the parameter to the maximum possible value if the parameter is readable and writable.
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Sets the value of the parameter to the minimum possible value if the parameter is readable and writable.
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Sets the value of the parameter if the parameter is writable.
The value must be in the valid range and the increment must be correct.
[in] | value | The value to set. |
Implemented in Pylon::CIntegerParameter.
|
pure virtual |
Sets the value of the parameter if the parameter is writable and readable.
The value is automatically corrected if needed.
[in] | value | The value to set. |
[in] | correction | The correction method. |
correction
equals IntegerValueCorrection_None. Implemented in Pylon::CIntegerParameter.
|
pure virtual |
If the parameter is writable and readable, sets the value of the parameter to a value within its range, using this formula (simplified): ((max - min) * (percentOfRange / 100.0)) + min.
The value is always corrected to the nearest valid value.
[in] | percentOfRange | The percentage of the range to be used in the calculation. |
Implemented in Pylon::CIntegerParameter.