Specialized SwissKnife for float nodes. More...
#include <SwissKnife.h>
Public Member Functions | |
CSwissKnifeImpl () | |
Constructor. | |
virtual void | FinalConstruct () |
virtual bool | GetProperty (CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const |
virtual double | GetValueWithInput (double input, bool Verify=false, bool IgnoreCache=false) |
Get feature value using m_InputName as hard coded variable name. | |
virtual void | Parse () |
virtual void | SetProperty (CProperty &Property) |
virtual | ~CSwissKnifeImpl () |
Destructor. | |
Protected Member Functions | |
virtual EAccessMode | InternalGetAccessMode () const |
Get the access mode of the node. | |
virtual ECachingMode | InternalGetCachingMode () const |
Get Caching Mode. | |
virtual EDisplayNotation | InternalGetDisplayNotation () const |
Get the way the float should be converted to a string. | |
virtual int64_t | InternalGetDisplayPrecision () const |
Get the precision to be used when converting the float to a string. | |
virtual double | InternalGetInc () |
Get the constant increment if there is any. | |
virtual const double_autovector_t | InternalGetListOfValidValues () |
Get list of valid value. | |
virtual double | InternalGetMax () |
virtual double | InternalGetMin () |
virtual EInterfaceType | InternalGetPrincipalInterfaceType () const |
Implementation of IBase::GetPrincipalInterfaceType() | |
virtual ERepresentation | InternalGetRepresentation () |
virtual GENICAM_NAMESPACE::gcstring | InternalGetUnit () const |
virtual double | InternalGetValue (bool Verify=false, bool IgnoreCache=false) |
virtual bool | InternalHasInc () |
True if the float has a constant increment. | |
virtual void | InternalSetValue (double, bool) |
Protected Attributes | |
EDisplayNotation | m_DisplayNotation |
the printf format specifier used to convert the float number to a string | |
int64_t | m_DisplayPrecision |
the precision the float is converted with to a string | |
GENICAM_NAMESPACE::gcstring | m_Formula |
the formula evaluated by the swiss knife | |
CFloatPolyRef | m_Input |
Pointer to the input required when the SwissKnife is used to implement a Converter. | |
GENAPI_NAMESPACE::EInputDirection | m_InputDirection |
Indicates if the SwissKnife is part of a Converter and shows which direction is implemented. | |
GENICAM_NAMESPACE::gcstring | m_InputName |
A hard-coded variable name. | |
CMathParser | m_MathParser |
the parser doing the actual work | |
double | m_Max |
maximum value to be stored in the Register | |
double | m_Min |
minimum value to be stored in the Register | |
ERepresentation | m_Representation |
the node's representation | |
std::map < GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring > | m_Symbolics |
Mapping of the variable's node names to the SYMBOLIC names in the formulas. | |
GENICAM_NAMESPACE::gcstring | m_Unit |
the physical unit name | |
CStrMap | m_VariableMap |
the vairble used by th parser | |
std::map < GENICAM_NAMESPACE::gcstring, CFloatPolyRef > | m_Variables |
Mapping of SYMBOLIC names to the references of the variables. |
Specialized SwissKnife for float nodes.
Used for formula evaluation with ToPhysical and FromPhysical children
Definition at line 56 of file SwissKnife.h.
Constructor.
virtual GENAPI_NAMESPACE::CSwissKnifeImpl::~CSwissKnifeImpl | ( | ) | [virtual] |
Destructor.
virtual void GENAPI_NAMESPACE::CSwissKnifeImpl::FinalConstruct | ( | ) | [virtual] |
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual bool GENAPI_NAMESPACE::CSwissKnifeImpl::GetProperty | ( | CNodeDataMap * | pNodeDataMap, |
CPropertyID::EProperty_ID_t | PropertyID, | ||
CNodeData::PropertyVector_t & | PropertyList | ||
) | const [virtual] |
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual double GENAPI_NAMESPACE::CSwissKnifeImpl::GetValueWithInput | ( | double | input, |
bool | Verify = false , |
||
bool | IgnoreCache = false |
||
) | [virtual] |
Get feature value using m_InputName as hard coded variable name.
This is a helper for the implementation of the converter
virtual EAccessMode GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetAccessMode | ( | ) | const [protected, virtual] |
Get the access mode of the node.
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual ECachingMode GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetCachingMode | ( | ) | const [protected, virtual] |
Get Caching Mode.
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
virtual EDisplayNotation GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetDisplayNotation | ( | ) | const [inline, protected, virtual] |
Get the way the float should be converted to a string.
Definition at line 157 of file SwissKnife.h.
virtual int64_t GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetDisplayPrecision | ( | ) | const [inline, protected, virtual] |
Get the precision to be used when converting the float to a string.
Definition at line 163 of file SwissKnife.h.
virtual double GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetInc | ( | ) | [inline, protected, virtual] |
Get the constant increment if there is any.
Definition at line 127 of file SwissKnife.h.
virtual const double_autovector_t GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetListOfValidValues | ( | ) | [inline, protected, virtual] |
Get list of valid value.
Definition at line 135 of file SwissKnife.h.
virtual double GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetMax | ( | ) | [inline, protected, virtual] |
Definition at line 112 of file SwissKnife.h.
virtual double GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetMin | ( | ) | [inline, protected, virtual] |
Definition at line 106 of file SwissKnife.h.
virtual EInterfaceType GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetPrincipalInterfaceType | ( | ) | const [inline, protected, virtual] |
Implementation of IBase::GetPrincipalInterfaceType()
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
Definition at line 74 of file SwissKnife.h.
virtual ERepresentation GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetRepresentation | ( | ) | [inline, protected, virtual] |
Definition at line 142 of file SwissKnife.h.
virtual GENICAM_NAMESPACE::gcstring GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetUnit | ( | ) | const [inline, protected, virtual] |
Definition at line 151 of file SwissKnife.h.
virtual double GENAPI_NAMESPACE::CSwissKnifeImpl::InternalGetValue | ( | bool | Verify = false , |
bool | IgnoreCache = false |
||
) | [protected, virtual] |
virtual bool GENAPI_NAMESPACE::CSwissKnifeImpl::InternalHasInc | ( | ) | [inline, protected, virtual] |
True if the float has a constant increment.
Definition at line 118 of file SwissKnife.h.
virtual void GENAPI_NAMESPACE::CSwissKnifeImpl::InternalSetValue | ( | double | , |
bool | |||
) | [inline, protected, virtual] |
Definition at line 96 of file SwissKnife.h.
virtual void GENAPI_NAMESPACE::CSwissKnifeImpl::Parse | ( | ) | [virtual] |
virtual void GENAPI_NAMESPACE::CSwissKnifeImpl::SetProperty | ( | CProperty & | Property | ) | [virtual] |
Reimplemented from GENAPI_NAMESPACE::CNodeImpl.
the printf format specifier used to convert the float number to a string
Definition at line 217 of file SwissKnife.h.
the precision the float is converted with to a string
Definition at line 220 of file SwissKnife.h.
the formula evaluated by the swiss knife
Definition at line 196 of file SwissKnife.h.
Pointer to the input required when the SwissKnife is used to implement a Converter.
Definition at line 230 of file SwissKnife.h.
Indicates if the SwissKnife is part of a Converter and shows which direction is implemented.
Definition at line 227 of file SwissKnife.h.
A hard-coded variable name.
This is a helper for the implementation of the converter
Definition at line 224 of file SwissKnife.h.
the parser doing the actual work
Definition at line 208 of file SwissKnife.h.
double GENAPI_NAMESPACE::CSwissKnifeImpl::m_Max [protected] |
maximum value to be stored in the Register
Definition at line 193 of file SwissKnife.h.
double GENAPI_NAMESPACE::CSwissKnifeImpl::m_Min [protected] |
minimum value to be stored in the Register
Definition at line 190 of file SwissKnife.h.
the node's representation
Definition at line 211 of file SwissKnife.h.
std::map<GENICAM_NAMESPACE::gcstring, GENICAM_NAMESPACE::gcstring> GENAPI_NAMESPACE::CSwissKnifeImpl::m_Symbolics [protected] |
Mapping of the variable's node names to the SYMBOLIC names in the formulas.
Definition at line 199 of file SwissKnife.h.
the physical unit name
Definition at line 214 of file SwissKnife.h.
the vairble used by th parser
Definition at line 205 of file SwissKnife.h.
std::map<GENICAM_NAMESPACE::gcstring, CFloatPolyRef> GENAPI_NAMESPACE::CSwissKnifeImpl::m_Variables [protected] |
Mapping of SYMBOLIC names to the references of the variables.
Definition at line 202 of file SwissKnife.h.