29#ifndef GENAPI_IFLOAT_H
30#define GENAPI_IFLOAT_H
37# pragma warning ( push )
38# pragma warning ( disable : 4251 )
41namespace GENAPI_NAMESPACE
51 GENICAM_INTERFACE GENAPI_DECL_ABSTRACT
IFloat :
virtual public IValue
58 virtual void SetValue(
double Value,
bool Verify =
true) = 0;
69 virtual double GetValue(
bool Verify =
false,
bool IgnoreCache =
false) = 0;
121#ifndef DOXYGEN_IGNORE
129 class CFloatRefT :
public CValueRefT<T>
131 typedef CValueRefT<T> ref;
139 virtual void SetValue(
double Value,
bool Verify =
true)
143 ref::m_Ptr->SetValue(Value, Verify);
147 virtual IFloat& operator=(
double Value)
151 return ref::m_Ptr->operator=(Value);
155 virtual double GetValue(
bool Verify =
false,
bool IgnoreCache =
false)
159 return ref::m_Ptr->GetValue(Verify, IgnoreCache);
163 virtual double operator()()
167 return ref::m_Ptr->operator()();
171 virtual double operator*()
175 return ref::m_Ptr->operator*();
179 virtual double GetMin()
183 return ref::m_Ptr->GetMin();
187 virtual double GetMax()
191 return ref::m_Ptr->GetMax();
195 virtual bool HasInc()
199 return ref::m_Ptr->HasInc();
205 return ref::m_Ptr->GetIncMode();
209 virtual double GetInc()
213 return ref::m_Ptr->GetInc();
221 return ref::m_Ptr->GetListOfValidValues(bounded);
229 return ref::m_Ptr->GetRepresentation();
237 return ref::m_Ptr->GetUnit();
245 return ref::m_Ptr->GetDisplayNotation();
249 virtual int64_t GetDisplayPrecision()
const
253 return ref::m_Ptr->GetDisplayPrecision();
261 return dynamic_cast<IInteger*
>(ref::m_Ptr->GetNode()->GetCastAlias());
269 return dynamic_cast<IEnumeration*
>(ref::m_Ptr->GetNode()->GetCastAlias());
273 virtual void ImposeMin(
double Value)
277 ref::m_Ptr->ImposeMin(Value);
281 virtual void ImposeMax(
double Value)
285 ref::m_Ptr->ImposeMax(Value);
299# pragma warning ( pop )
declspec's to be used for GenApi Windows dll
virtual IBoolean & operator=(bool Value)
Set node value.
Definition IBoolean.h:62
virtual bool operator()() const
Get node value.
Definition IBoolean.h:77
virtual bool GetValue(bool Verify=false, bool IgnoreCache=false) const =0
Get node value.
virtual GENICAM_NAMESPACE::gcstring operator*()=0
Get string node value.
virtual EIncMode GetIncMode()=0
Get increment mode.
virtual EDisplayNotation GetDisplayNotation() const =0
Get the way the float should be converted to a string.
virtual ERepresentation GetRepresentation()=0
Get recommended representation.
virtual bool HasInc()=0
True if the float has a constant increment.
virtual int64_t GetDisplayPrecision() const =0
Get the precision to be used when converting the float to a string.
virtual double_autovector_t GetListOfValidValues(bool bounded=true)=0
Get list of valid value.
virtual double GetMax()=0
Get maximum value allowed.
virtual void ImposeMin(double Value)=0
Restrict minimum value.
virtual double GetMin()=0
Get minimum value allowed.
virtual GENICAM_NAMESPACE::gcstring GetUnit() const =0
Get the physical unit name.
virtual void ImposeMax(double Value)=0
Restrict maximum value.
virtual double GetInc()=0
Get the constant increment if there is any.
Definition of the interface IValue.
Common types used in the public GenApi interface.
Vector of doubles with reference counting.
Definition Autovector.h:75
A string class which is a clone of std::string.
Definition GCString.h:51
#define ACCESS_EXCEPTION
Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
Definition GCException.h:252
enum GENAPI_NAMESPACE::_EIncMode EIncMode
enum GENAPI_NAMESPACE::_EDisplayNotation EDisplayNotation
CFloatRefT< IFloat > CFloatRef
Definition IFloat.h:292
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
Definition IEnumeration.h:58
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IValue
Interface for value properties.
Definition IValue.h:59
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
Definition IFloat.h:58
GENICAM_INTERFACE IInteger
Interface for integer properties.
Definition IFloat.h:118
enum GENAPI_NAMESPACE::_ERepresentation ERepresentation