CAcquisitionConstraintsComp.h
Go to the documentation of this file.
1 #ifndef icam_CAcquisitionConstraintsComp_included
2 #define icam_CAcquisitionConstraintsComp_included
3 
4 
5 // ACF includes
6 #include "icomp/CComponentBase.h"
7 
8 // IACF includes
10 
12 
13 
14 namespace icam
15 {
16 
17 
22  public icomp::CComponentBase,
23  virtual public isig::ITriggerConstraints,
24  virtual public IExposureConstraints
25 {
26 public:
28 
29  I_BEGIN_COMPONENT(CAcquisitionConstraintsComp);
30  I_REGISTER_INTERFACE(isig::ITriggerConstraints);
31  I_REGISTER_INTERFACE(IExposureConstraints);
32  I_ASSIGN(m_isNoAcquisitionSupportedAttrPtr, "NoAcquisitionSupported", "Enable to allow no acquisition", true, false);
33  I_ASSIGN(m_isContinuousAcqSupportedAttrPtr, "ContinuousSupported", "Enable to allow continuous acquisition mode", true, true);
34  I_ASSIGN(m_isRisingEdgeTriggerSupportedAttrPtr, "RisingEdgeTriggerSupported", "Rising edge trigger is supported by the device", true, false);
35  I_ASSIGN(m_isFallingEdgeTriggerSupportedAttrPtr, "FallingEdgeTriggerSupported", "Falling edge trigger is supported by the device", true, false);
36  I_ASSIGN(m_isNegativeLevelTriggerSupportedAttrPtr, "NegativeLevelTriggerSupported", "Negative level trigger is supported by the device", true, false);
37  I_ASSIGN(m_isPositiveLevelTriggerSupportedAttrPtr, "PositiveLevelTriggerSupported", "Positive level trigger is supported by the device", true, false);
38  I_ASSIGN(m_minShutterTimeAttrPtr, "MinShutterTime", "Minimal shutter time for this device", true, 0.0);
39  I_ASSIGN(m_maxShutterTimeAttrPtr, "MaxShutterTime", "Maximal shutter time for this device", true, 0.0);
40  I_ASSIGN(m_minDelayTimeAttrPtr, "MinDelayTime", "Minimal delay time for this device", true, 0.0);
41  I_ASSIGN(m_maxDelayTimeAttrPtr, "MaxDelayTime", "Maximal delay time for this device", true, 0.0);
42  I_ASSIGN(m_minEenDelayAttrPtr, "MinEenDelay", "Minimal EEN-delay for this device", true, 0.0);
43  I_ASSIGN(m_maxEenDelayAttrPtr, "MaxEenDelay", "Maximal EEN-delay for this device", true, 0.0);
44  I_END_COMPONENT;
45 
46  // reimplemented (icam::IExposureConstraints)
47  virtual bool IsTriggerModeSupported(int triggerMode) const;
48 
49  // reimplemented (icam::IExposureConstraints)
50  virtual istd::CRange GetShutterTimeRange() const;
51  virtual istd::CRange GetDelayTimeRange() const;
52  virtual istd::CRange GetEenDelayRange() const;
53 
54 private:
55  I_ATTR(bool, m_isNoAcquisitionSupportedAttrPtr);
56  I_ATTR(bool, m_isContinuousAcqSupportedAttrPtr);
57  I_ATTR(bool, m_isRisingEdgeTriggerSupportedAttrPtr);
58  I_ATTR(bool, m_isFallingEdgeTriggerSupportedAttrPtr);
59  I_ATTR(bool, m_isPositiveLevelTriggerSupportedAttrPtr);
60  I_ATTR(bool, m_isNegativeLevelTriggerSupportedAttrPtr);
61  I_ATTR(double, m_minShutterTimeAttrPtr);
62  I_ATTR(double, m_maxShutterTimeAttrPtr);
63  I_ATTR(double, m_minDelayTimeAttrPtr);
64  I_ATTR(double, m_maxDelayTimeAttrPtr);
65  I_ATTR(double, m_minEenDelayAttrPtr);
66  I_ATTR(double, m_maxEenDelayAttrPtr);
67 };
68 
69 
70 } // namespace icam
71 
72 
73 #endif // !icam_CAcquisitionConstraintsComp_included
74 
75 
Interface for AVT camera parameters.
virtual istd::CRange GetShutterTimeRange() const
Get range of posible shutter time (exposure time) values.
virtual bool IsTriggerModeSupported(int triggerMode) const
Check if specified trigger mode is supported.
virtual istd::CRange GetEenDelayRange() const
Get range of posible exposure enabled (EEN) signal delay time values.
Component for the static configuration of the acquisition constraints for a given camera device...
virtual istd::CRange GetDelayTimeRange() const
Get range of posible delay time values.

© 2007-2011 Witold Gantzke and Kirill Lepskiy