![]() |
KSquare Utilities
|
Class that keeps track the Flow-Meter-Counter values by scan-lines; using these values it will compute estimated flow rate. More...
#include <FlowMeterTracker.h>
Public Types | |
| typedef FlowMeterTracker * | FlowMeterTrackerPtr |
Public Member Functions | |
| FlowMeterTracker () | |
| FlowMeterTracker (const FlowMeterTracker &entry) | |
| ~FlowMeterTracker () | |
| void | AddEntry (kkuint32 _scanLineNum, kkuint32 _counterValue) |
| float | ComputeFlowRateFromFlowRateRatio (float _flowRateRatio) |
| float | ComputeFlowRateRatioFromFlowRate (float _flowRate) |
| bool | FlowMeterPresent () const |
| float | FlowRateDefault () const |
| float | FlowRateInstantaneous () |
| float | FlowRateRatioDefault () const |
| void | FlowRateRatioDefaultChanged (float _flowRateRatioDefault) |
| float | FlowRateTrend () |
| void | GetFlowRateInstantaneous (float &flowRate, float &flowRateRatio) |
| void | GetFlowRateTrend (float &flowRate, float &flowRateRatio) |
| kkint32 | HistoryTableSize () const |
| float | ImagingWidthMeters () const |
| kkint32 | ImagingWidthPixels () const |
| void | Initialize (bool _flowMeterPresent, float _flowRateRatioDefault, kkint32 _historyTableSize, float _scanRate, float _imagingWidthMeters, kkint32 _imagingWidthPixels, float _ticsPerMeter) |
| kkint32 | MemoryConsumedEstimated () |
| void | ScanRateChanged (float _newScanRate) |
| float | TicsPerMeter () const |
Class that keeps track the Flow-Meter-Counter values by scan-lines; using these values it will compute estimated flow rate.
Definition at line 44 of file FlowMeterTracker.h.
Definition at line 47 of file FlowMeterTracker.h.
| FlowMeterTracker::FlowMeterTracker | ( | ) |
Definition at line 29 of file FlowMeterTracker.cpp.
| FlowMeterTracker::FlowMeterTracker | ( | const FlowMeterTracker & | entry | ) |
Definition at line 46 of file FlowMeterTracker.cpp.
| FlowMeterTracker::~FlowMeterTracker | ( | ) |
Definition at line 67 of file FlowMeterTracker.cpp.
Definition at line 128 of file FlowMeterTracker.cpp.
| float FlowMeterTracker::ComputeFlowRateFromFlowRateRatio | ( | float | _flowRateRatio | ) |
Definition at line 254 of file FlowMeterTracker.cpp.
Referenced by FlowRateRatioDefaultChanged(), Initialize(), and ScanRateChanged().
| float FlowMeterTracker::ComputeFlowRateRatioFromFlowRate | ( | float | _flowRate | ) |
Definition at line 267 of file FlowMeterTracker.cpp.
Referenced by GetFlowRateInstantaneous(), and GetFlowRateTrend().
|
inline |
Definition at line 76 of file FlowMeterTracker.h.
|
inline |
Definition at line 77 of file FlowMeterTracker.h.
| float FlowMeterTracker::FlowRateInstantaneous | ( | ) |
Computes flow rate using the two most current count entries.
Definition at line 163 of file FlowMeterTracker.cpp.
Referenced by GetFlowRateInstantaneous().
|
inline |
Definition at line 78 of file FlowMeterTracker.h.
| void FlowMeterTracker::FlowRateRatioDefaultChanged | ( | float | _flowRateRatioDefault | ) |
Definition at line 111 of file FlowMeterTracker.cpp.
References ComputeFlowRateFromFlowRateRatio().
| float FlowMeterTracker::FlowRateTrend | ( | ) |
Computes flow rate using full range of history table.
Definition at line 187 of file FlowMeterTracker.cpp.
Referenced by GetFlowRateTrend().
| void FlowMeterTracker::GetFlowRateInstantaneous | ( | float & | flowRate, |
| float & | flowRateRatio | ||
| ) |
Definition at line 210 of file FlowMeterTracker.cpp.
References ComputeFlowRateRatioFromFlowRate(), and FlowRateInstantaneous().
| void FlowMeterTracker::GetFlowRateTrend | ( | float & | flowRate, |
| float & | flowRateRatio | ||
| ) |
Definition at line 228 of file FlowMeterTracker.cpp.
References ComputeFlowRateRatioFromFlowRate(), and FlowRateTrend().
|
inline |
Definition at line 79 of file FlowMeterTracker.h.
|
inline |
Definition at line 80 of file FlowMeterTracker.h.
|
inline |
Definition at line 81 of file FlowMeterTracker.h.
| void FlowMeterTracker::Initialize | ( | bool | _flowMeterPresent, |
| float | _flowRateRatioDefault, | ||
| kkint32 | _historyTableSize, | ||
| float | _scanRate, | ||
| float | _imagingWidthMeters, | ||
| kkint32 | _imagingWidthPixels, | ||
| float | _ticsPerMeter | ||
| ) |
| [in] | _flowMeterPresent | Indicates if there is a Flow Meter or will FlowRate and FlowRateRatio be derived from configuration; see _flowRateRatioDefault. |
| [in] | _flowRateRatioDefault | When flow meter s not present or unable to compute FlowRate will utilize this value to return FlowRate and FlowRateRatio. |
| [in] | _historyTableSize | The number of FlowMeter readings that will be tracked. |
| [in] | _scanRate | Scan-Lines per second that camera is operating at. |
| [in] | _imagingWidthMeters | Width in meters that is being imaged. |
| [in] | _imagingWidthPixels | Number of pixels that is being imaged; this is the same as distance refereed to by _imagingWidthMeters. |
| [in] | _ticsPerMeter | The number counter ticks that occur per meter; this value will help compute FlowRate. |
Definition at line 74 of file FlowMeterTracker.cpp.
References ComputeFlowRateFromFlowRateRatio().
| kkint32 FlowMeterTracker::MemoryConsumedEstimated | ( | ) |
Definition at line 101 of file FlowMeterTracker.cpp.
| void FlowMeterTracker::ScanRateChanged | ( | float | _newScanRate | ) |
Definition at line 119 of file FlowMeterTracker.cpp.
References ComputeFlowRateFromFlowRateRatio().
|
inline |
Definition at line 82 of file FlowMeterTracker.h.