CExposureParamsComp.h
Go to the documentation of this file.
1 #ifndef icam_CExposureParamsComp_included
2 #define icam_CExposureParamsComp_included
3 
4 
5 #include "icomp/CComponentBase.h"
6 
7 #include "icam/IExposureParams.h"
9 
10 
11 namespace icam
12 {
13 
14 
16 {
17 public:
19 
20  I_BEGIN_COMPONENT(CExposureParamsComp);
21  I_REGISTER_INTERFACE(IExposureParams);
22  I_REGISTER_INTERFACE(iser::ISerializable);
23  I_ASSIGN(m_exposureConstraintsCompPtr, "Constraints", "Information about valid exposure parameters", false, "Constraints");
24  I_ASSIGN(m_defaultShutterTimeAttrPtr, "DefaultShutterTime", "Default value of shutter time in seconds", true, 0.001);
25  I_END_COMPONENT;
26 
28 
29  // reimplemented (icam::IExposureParams)
30  virtual const IExposureConstraints* GetExposureConstraints() const;
31  virtual double GetShutterTime() const;
32  virtual bool SetShutterTime(double time);
33  virtual double GetDelayTime() const;
34  virtual bool SetDelayTime(double time);
35  virtual double GetEenDelay() const;
36  virtual bool SetEenDelay(double time);
37 
38  // reimplemented (iser::ISerializable)
39  virtual bool Serialize(iser::IArchive& archive);
40 
41 protected:
42  // reimplemented (icomp::CComponentBase)
43  virtual void OnComponentCreated();
44 
45 private:
46  I_REF(IExposureConstraints, m_exposureConstraintsCompPtr);
47  I_ATTR(double, m_defaultShutterTimeAttrPtr);
48 
49  double m_shutterTime;
50  double m_delayTime;
51  double m_eenDelayTime;
52 };
53 
54 
55 } // namespace icam
56 
57 
58 #endif // !icam_CExposureParamsComp_included
59 
60 
virtual void OnComponentCreated()
virtual bool SetEenDelay(double time)
Set exposure enabled (EEN) signal delay time.
virtual double GetEenDelay() const
Get exposure enabled (EEN) signal delay time.
virtual bool Serialize(iser::IArchive &archive)
virtual const IExposureConstraints * GetExposureConstraints() const
Get constrints describing allowed value ranges.
virtual bool SetDelayTime(double time)
Set delay time.
virtual double GetShutterTime() const
Get shutter time (exposure time).
virtual double GetDelayTime() const
Get delay time.
icomp::CComponentBase BaseClass
virtual bool SetShutterTime(double time)
Set shutter time (exposure time).

© 2007-2011 Witold Gantzke and Kirill Lepskiy