IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Protected Attributes | List of all members
ipsdk::shape::analysis::FormulaManager Class Reference

Object allowing to manage shape analysis formula. More...

#include <FormulaManager.h>

Inheritance diagram for ipsdk::shape::analysis::FormulaManager:

Public Member Functions

bool isInit () const
 retrieve object initialization flag
 
BoolResult init (const std::string &formulaStr, const bool bDebugMode=false)
 initialization of object More...
 
const std::string & getFormulaStr () const
 retrieve string associated to formula More...
 
const eMsrFormulaResultTypegetResultType () const
 retrieve result type associated to formula More...
 
const ConstantMapgetConstantMap () const
 retrieve image constants associated to formula More...
 
const VariableMapgetVariableMap () const
 retrieve variables associated to formula More...
 
EvalStatus evaluate (ipBool &result)
 evaluate logic formula More...
 
EvalStatus evaluate (ipReal64 &result)
 evaluate arithmetic formula More...
 
void clear ()
 clear of object data
 
Constructors and destructors
 FormulaManager ()
 
 ~FormulaManager ()
 

Protected Attributes

bool _bInit
 object initialization flag
 
std::string _formulaStr
 formula string associated to object$
 
FormulaItemColl _itemsColl
 items collection associated to formula
 
ConstantMap _csteMap
 image constant collection associated to formula
 
VariableMap _varMap
 variable collection associated to formula
 
eMsrFormulaResultType _resultType
 result type associated to formula
 

Detailed Description

Object allowing to manage shape analysis formula.

Author
E. Noirfalise
Date
2015/07/27

Member Function Documentation

◆ init()

BoolResult ipsdk::shape::analysis::FormulaManager::init ( const std::string &  formulaStr,
const bool  bDebugMode = false 
)

initialization of object

Returns
false in case of failure

◆ getFormulaStr()

const std::string& ipsdk::shape::analysis::FormulaManager::getFormulaStr ( ) const

retrieve string associated to formula

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isInit() == false

◆ getResultType()

const eMsrFormulaResultType& ipsdk::shape::analysis::FormulaManager::getResultType ( ) const

retrieve result type associated to formula

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isInit() == false

◆ getConstantMap()

const ConstantMap& ipsdk::shape::analysis::FormulaManager::getConstantMap ( ) const

retrieve image constants associated to formula

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isInit() == false

◆ getVariableMap()

const VariableMap& ipsdk::shape::analysis::FormulaManager::getVariableMap ( ) const

retrieve variables associated to formula

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isInit() == false

◆ evaluate() [1/2]

EvalStatus ipsdk::shape::analysis::FormulaManager::evaluate ( ipBool result)

evaluate logic formula

Note
image constants retrieved via getConstantMap() must have been previously set
variable values retrieved via getVariableMap() must have been previously set
Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif getResultType() != eMsrFormulaResultType::eMFRT_Logic
Returns
evaluation status

◆ evaluate() [2/2]

EvalStatus ipsdk::shape::analysis::FormulaManager::evaluate ( ipReal64 result)

evaluate arithmetic formula

Note
image constants retrieved via getConstantMap() must have been previously set
variable values retrieved via getVariableMap() must have been previously set
Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif getResultType() != eMsrFormulaResultType::eMFRT_Arithmetic
Returns
evaluation status

The documentation for this class was generated from the following file: