CRingPatternGeneratorParamsComp.h
Go to the documentation of this file.
1 #ifndef iipr_CRingPatternGeneratorParamsComp_included
2 #define iipr_CRingPatternGeneratorParamsComp_included
3 
4 
5 // ACF includes
6 #include "icomp/CComponentBase.h"
7 
8 
9 // IACF includes
11 
12 
13 namespace iipr
14 {
15 
16 
18  public icomp::CComponentBase,
20 {
21 public:
23 
24  I_BEGIN_COMPONENT(CRingPatternGeneratorParamsComp);
25  I_REGISTER_INTERFACE(iipr::IRingPatternGeneratorParams);
26  I_REGISTER_INTERFACE(iser::ISerializable);
27  I_ASSIGN(m_defaultPatternModeAttrPtr, "DefaultPatternMode", "Default mode for ring pattern generation.\n0 - Fixed wavelength ist used\n1 - Dynamic wavelength is used", false, 0);
28  I_ASSIGN(m_defaultWaveLengthAttrPtr, "DefaultWaveLength", "Default wavelength used for generated ring pattern in pixel", false, 4);
29  I_END_COMPONENT;
30 
32 
33  // reimplemented (iipr::IRingPatternGeneratorParams)
34  virtual int GetPatternMode() const;
35  virtual void SetPatternMode(int patternMode);
36  virtual double GetWaveLength() const;
37  virtual void SetWaveLength(double waveLength);
38 
39  // reimplemented (iser::ISerializable)
40  virtual bool Serialize(iser::IArchive& archive);
41 
42 protected:
43  // reimplemented (icomp::CComponentBase)
44  virtual void OnComponentCreated();
45 
46 private:
47  I_ATTR(int, m_defaultPatternModeAttrPtr);
48  I_ATTR(double, m_defaultWaveLengthAttrPtr);
49 
50  int m_patternMode;
51  double m_waveLength;
52 };
53 
54 
55 } // namespace iipr
56 
57 
58 #endif // !iipr_CRingPatternGeneratorParamsComp_included
59 
virtual int GetPatternMode() const
Get used pattern generation mode.
virtual bool Serialize(iser::IArchive &archive)
Common interface for parameters of the ring pattern generators.
virtual void SetPatternMode(int patternMode)
Set pattern generation mode.
virtual double GetWaveLength() const
Get used pattern wavelength.
virtual void SetWaveLength(double waveLength)
Set pattern wavelength.

© 2007-2011 Witold Gantzke and Kirill Lepskiy