App

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

TBrushGenerator.hpp
Go to the documentation of this file.
1
7 #include <cmath>
8 #include <cstdlib>
9
10 #include "../typedefs.hpp"
11 #include "../bitmaps/TBitmap.hpp"
12 #include "../utils/PointerArea.hpp"
13
14 //forward declaration
15 namespace app {
16 class TBrushGenerator;
17 }
18
19 #ifndef TBRUSHGENERATOR_HPP_
20 #define TBRUSHGENERATOR_HPP_
21
22 // Hack, aby fungoval našeptávač, pak příjde zakomentovat a odkomentovat template definici
23 //typedef int TPIXEL;
24 //typedef int TCHANNEL;
25
26 namespace app {
32 class TBrushGenerator {
33 protected:
35 TBrushGenerator() {}
36
37
38 public:
39 ~TBrushGenerator() {}
46 template <typename TPIXEL, typename TCHANNEL>
47 static TBitmap<TPIXEL, TCHANNEL> * createRoundBrush(unsigned size, double hardness);
48
62 template <typename TPIXEL, typename TCHANNEL>
63 static int createRoundBrushIn(TBitmap<TPIXEL, TCHANNEL> &dst, unsigned size, double hardness);
64 };
65
66 } /* namespace app */
67 #endif /* TBRUSHGENERATOR_HPP_ */