CImageProcessorCompBase.h
Go to the documentation of this file.
1 #ifndef iipr_CImageProcessorCompBase_included
2 #define iipr_CImageProcessorCompBase_included
3 
4 
5 // ACF includes
6 #include "istd/TSmartPtr.h"
8 #include "iimg/IBitmap.h"
9 
10 
11 namespace iipr
12 {
13 
14 
19 {
20 public:
22 
23  I_BEGIN_BASE_COMPONENT(CImageProcessorCompBase);
24  I_END_COMPONENT;
25 
27 
28  // reimplemented (iproc::IProcessor)
29  virtual int DoProcessing(
30  const iprm::IParamsSet* paramsPtr,
31  const istd::IPolymorphic* inputPtr,
32  istd::IChangeable* outputPtr,
33  ibase::IProgressManager* progressManagerPtr = NULL);
34 
35 protected:
36  // abstract methods
37  virtual bool ProcessImage(
38  const iprm::IParamsSet* paramsPtr,
39  const iimg::IBitmap& inputImage,
40  iimg::IBitmap& outputImage) = 0;
41 };
42 
43 
44 } // namespace iipr
45 
46 
47 #endif // !iipr_CImageProcessorCompBase_included
48 
Simple definition macro for a synchronous processor.
Basic implementation for a simple bitmap processor.
iproc::CSyncProcessorCompBase BaseClass
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage)=0

© 2007-2011 Witold Gantzke and Kirill Lepskiy