Fix T75088: Add tooltips for custom properties
[blender.git] / source / blender / freestyle / intern / view_map / Pow23GridDensityProvider.h
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16
17 #ifndef __FREESTYLE_POW_23_GRID_DENSITY_PROVIDER_H__
18 #define __FREESTYLE_POW_23_GRID_DENSITY_PROVIDER_H__
19
20 /** \file
21  * \ingroup freestyle
22  * \brief Class to define a cell grid surrounding the projected image of a scene
23  */
24
25 #include "GridDensityProvider.h"
26
27 namespace Freestyle {
28
29 class Pow23GridDensityProvider : public GridDensityProvider {
30   // Disallow copying and assignment
31   Pow23GridDensityProvider(const Pow23GridDensityProvider &other);
32   Pow23GridDensityProvider &operator=(const Pow23GridDensityProvider &other);
33
34  public:
35   Pow23GridDensityProvider(OccluderSource &source, const real proscenium[4], unsigned numFaces);
36   Pow23GridDensityProvider(OccluderSource &source,
37                            const BBox<Vec3r> &bbox,
38                            const GridHelpers::Transform &transform,
39                            unsigned numFaces);
40   Pow23GridDensityProvider(OccluderSource &source, unsigned numFaces);
41   virtual ~Pow23GridDensityProvider();
42
43  protected:
44   unsigned numFaces;
45
46  private:
47   void initialize(const real proscenium[4]);
48 };
49
50 class Pow23GridDensityProviderFactory : public GridDensityProviderFactory {
51  public:
52   Pow23GridDensityProviderFactory(unsigned numFaces);
53   ~Pow23GridDensityProviderFactory();
54
55   AutoPtr<GridDensityProvider> newGridDensityProvider(OccluderSource &source,
56                                                       const real proscenium[4]);
57   AutoPtr<GridDensityProvider> newGridDensityProvider(OccluderSource &source,
58                                                       const BBox<Vec3r> &bbox,
59                                                       const GridHelpers::Transform &transform);
60   AutoPtr<GridDensityProvider> newGridDensityProvider(OccluderSource &source);
61
62  protected:
63   unsigned numFaces;
64 };
65
66 } /* namespace Freestyle */
67
68 #endif  // __FREESTYLE_POW_23_GRID_DENSITY_PROVIDER_H__