Blender V4.3
FastGrid.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#include "Grid.h"
13
14namespace Freestyle {
15
21class FastGrid : public Grid {
22 public:
24 {
25 _cells = nullptr;
26 _cells_size = 0;
27 }
28
29 virtual ~FastGrid()
30 {
31 clear();
32 }
33
38 virtual void clear();
39
48 virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb);
49
51 Cell *getCell(const Vec3u &p);
52
54 virtual void fillCell(const Vec3u &p, Cell &cell);
55
56 protected:
59
60#ifdef WITH_CXX_GUARDEDALLOC
61 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:FastGrid")
62#endif
63};
64
65} /* namespace Freestyle */
unsigned int uint
Base class to define a cell grid surrounding the bounding box of the scene.
Cell * getCell(const Vec3u &p)
Definition FastGrid.cpp:45
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
Definition FastGrid.cpp:37
virtual void fillCell(const Vec3u &p, Cell &cell)
Definition FastGrid.cpp:61
virtual void clear()
Definition FastGrid.cpp:19
virtual ~FastGrid()
Definition FastGrid.h:29
inherits from class Rep
Definition AppCanvas.cpp:20