CImageFlipProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CImageFlipProcessorComp_included
2 #define iipr_CImageFlipProcessorComp_included
3 
4 
5 // ACF includes
7 
8 #include "iimg/IBitmap.h"
9 
10 
11 namespace iipr
12 {
13 
14 
16 {
17 public:
19 
20  I_BEGIN_COMPONENT(CImageFlipProcessorComp);
21  I_ASSIGN(m_mirrorXParamIdAttrPtr, "MirrorXParamId", "Id used to get Mirror By X parameter", false, "MirrorXParamId");
22  I_ASSIGN(m_mirrorYParamIdAttrPtr, "MirrorYParamId", "Id used to get Mirror By Y parameter", false, "MirrorYParamId");
23  I_END_COMPONENT;
24 
25  // reimplemented (iproc::IProcessor)
26  virtual int DoProcessing(
27  const iprm::IParamsSet* paramsPtr,
28  const istd::IPolymorphic* inputPtr,
29  istd::IChangeable* outputPtr,
30  ibase::IProgressManager* progressManagerPtr = NULL);
31 
32 protected:
33  bool ConvertImage(
34  const iimg::IBitmap& inputBitmap,
35  iimg::IBitmap& outputBitmap,
36  bool mirrorX, bool mirrorY) const;
37 
38 private:
39  I_ATTR(QByteArray, m_mirrorXParamIdAttrPtr);
40  I_ATTR(QByteArray, m_mirrorYParamIdAttrPtr);
41 };
42 
43 
44 } // namespace iipr
45 
46 
47 #endif // !iipr_CImageFlipProcessorComp_included
Simple definition macro for a synchronous processor.
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
iproc::CSyncProcessorCompBase BaseClass
bool ConvertImage(const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, bool mirrorX, bool mirrorY) const

© 2007-2011 Witold Gantzke and Kirill Lepskiy