ICF 3.1.1.10
Technical documentation of ICF Libraries
CBitmapJoinerCompBase.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
11#include <iimg/IBitmap.h>
12
13
14namespace icam
15{
16
17
23{
24public:
26
27 I_BEGIN_BASE_COMPONENT(CBitmapJoinerCompBase);
28 I_ASSIGN(m_numberOfColumnsAttrPtr, "NumberOfColumns", "Number of columns (or, 1 = join vertically, 0 or less = horizontally)", true, 0);
29 I_ASSIGN(m_bitmapFactoryPtr, "BitmapFactory", "Bitmap factory", true, "Bitmap");
30 I_END_COMPONENT;
31
32protected:
33 bool PrepareSnapResult(int imageCount, istd::IChangeable* outputPtr);
36 {
37 return m_resultPtr;
38 }
39
40 // reimplemented (icomp::CComponentBase)
41 void OnComponentCreated() override;
42
43protected:
44 struct ImageInfo
45 {
46 bool isSnapOk = false;
47 std::unique_ptr<iimg::IBitmap> bitmapPtr;
48 };
49
50 typedef std::vector<ImageInfo> ImageList;
52
53private:
54 iimg::IBitmap* m_resultPtr;
55
56 I_ATTR(int, m_numberOfColumnsAttrPtr);
57 I_FACT(iimg::IBitmap, m_bitmapFactoryPtr);
58};
59
60
61} // namespace icam
62
63
Joins multiple bitmaps into single one.
std::vector< ImageInfo > ImageList
const iimg::IBitmap * GetResultBitmap() const
void OnComponentCreated() override
ilog::CLoggerComponentBase BaseClass
bool PrepareSnapResult(int imageCount, istd::IChangeable *outputPtr)
Definition of single plane bitmap.
Definition IBitmap.h:24
Wrapper provider of log-functionality for component based implementations.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains interfaces, implementations and components of image acquisition and processing.
std::unique_ptr< iimg::IBitmap > bitmapPtr

© Witold Gantzke and Kirill Lepskiy