Blender  V2.93
SceneVisitor.h
Go to the documentation of this file.
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 #pragma once
18 
24 #include "../system/FreestyleConfig.h"
25 
26 #ifdef WITH_CXX_GUARDEDALLOC
27 # include "MEM_guardedalloc.h"
28 #endif
29 
30 namespace Freestyle {
31 
32 #define VISIT_COMPLETE_DEF(type) \
33  virtual void visit##type(type &) \
34  { \
35  } \
36  virtual void visit##type##Before(type &) \
37  { \
38  } \
39  virtual void visit##type##After(type &) \
40  { \
41  }
42 
43 #define VISIT_DECL(type) virtual void visit##type(type &)
44 
45 #define VISIT_COMPLETE_DECL(type) \
46  virtual void visit##type##Before(type &); \
47  virtual void visit##type(type &); \
48  virtual void visit##type##After(type &)
49 
50 class Node;
51 class NodeShape;
52 class NodeGroup;
53 class NodeLight;
54 class NodeCamera;
55 class NodeDrawingStyle;
56 class NodeTransform;
57 class NodeViewLayer;
58 
59 class Rep;
60 class LineRep;
61 class OrientedLineRep;
62 class TriangleRep;
63 class VertexRep;
64 class IndexedFaceSet;
65 class DrawingStyle;
66 class FrsMaterial;
67 
68 class SceneVisitor {
69  public:
71  {
72  }
73  virtual ~SceneVisitor()
74  {
75  }
76 
77  virtual void beginScene()
78  {
79  }
80  virtual void endScene()
81  {
82  }
83 
84  //
85  // visitClass methods
86  //
88 
97 
106 
107 #ifdef WITH_CXX_GUARDEDALLOC
108  MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SceneVisitor")
109 #endif
110 };
111 
112 } /* namespace Freestyle */
Read Guarded memory(de)allocation.
#define VISIT_COMPLETE_DEF(type)
Definition: SceneVisitor.h:32
virtual void beginScene()
Definition: SceneVisitor.h:77
virtual void endScene()
Definition: SceneVisitor.h:80
inherits from class Rep
Definition: AppCanvas.cpp:32
Definition: node.h:98