Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/freestyle/intern/scene_graph/SceneVisitor.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph/SceneVisitor.h')
-rw-r--r--source/blender/freestyle/intern/scene_graph/SceneVisitor.h100
1 files changed, 56 insertions, 44 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/SceneVisitor.h b/source/blender/freestyle/intern/scene_graph/SceneVisitor.h
index 67b89f014cf..d1b64663ca9 100644
--- a/source/blender/freestyle/intern/scene_graph/SceneVisitor.h
+++ b/source/blender/freestyle/intern/scene_graph/SceneVisitor.h
@@ -25,23 +25,28 @@
#include "../system/FreestyleConfig.h"
#ifdef WITH_CXX_GUARDEDALLOC
-#include "MEM_guardedalloc.h"
+# include "MEM_guardedalloc.h"
#endif
namespace Freestyle {
-#define VISIT_COMPLETE_DEF(type) \
- virtual void visit##type(type&) {} \
- virtual void visit##type##Before(type&) {} \
- virtual void visit##type##After(type&) {}
+#define VISIT_COMPLETE_DEF(type) \
+ virtual void visit##type(type &) \
+ { \
+ } \
+ virtual void visit##type##Before(type &) \
+ { \
+ } \
+ virtual void visit##type##After(type &) \
+ { \
+ }
-#define VISIT_DECL(type) \
- virtual void visit##type(type&);
+#define VISIT_DECL(type) virtual void visit##type(type &);
-#define VISIT_COMPLETE_DECL(type) \
- virtual void visit##type##Before(type&); \
- virtual void visit##type(type&); \
- virtual void visit##type##After(type&);
+#define VISIT_COMPLETE_DECL(type) \
+ virtual void visit##type##Before(type &); \
+ virtual void visit##type(type &); \
+ virtual void visit##type##After(type &);
class Node;
class NodeShape;
@@ -61,43 +66,50 @@ class IndexedFaceSet;
class DrawingStyle;
class FrsMaterial;
-class SceneVisitor
-{
-public:
- SceneVisitor() {}
- virtual ~SceneVisitor() {}
-
- virtual void beginScene() {}
- virtual void endScene() {}
-
- //
- // visitClass methods
- //
- //////////////////////////////////////////////
-
- VISIT_COMPLETE_DEF(Node)
- VISIT_COMPLETE_DEF(NodeShape)
- VISIT_COMPLETE_DEF(NodeGroup)
- VISIT_COMPLETE_DEF(NodeLight)
- VISIT_COMPLETE_DEF(NodeCamera)
- VISIT_COMPLETE_DEF(NodeDrawingStyle)
- VISIT_COMPLETE_DEF(NodeTransform)
- VISIT_COMPLETE_DEF(NodeViewLayer)
-
- VISIT_COMPLETE_DEF(Rep)
- VISIT_COMPLETE_DEF(LineRep)
- VISIT_COMPLETE_DEF(OrientedLineRep)
- VISIT_COMPLETE_DEF(TriangleRep)
- VISIT_COMPLETE_DEF(VertexRep)
- VISIT_COMPLETE_DEF(IndexedFaceSet)
- VISIT_COMPLETE_DEF(DrawingStyle)
- VISIT_COMPLETE_DEF(FrsMaterial)
+class SceneVisitor {
+ public:
+ SceneVisitor()
+ {
+ }
+ virtual ~SceneVisitor()
+ {
+ }
+
+ virtual void beginScene()
+ {
+ }
+ virtual void endScene()
+ {
+ }
+
+ //
+ // visitClass methods
+ //
+ //////////////////////////////////////////////
+
+ VISIT_COMPLETE_DEF(Node)
+ VISIT_COMPLETE_DEF(NodeShape)
+ VISIT_COMPLETE_DEF(NodeGroup)
+ VISIT_COMPLETE_DEF(NodeLight)
+ VISIT_COMPLETE_DEF(NodeCamera)
+ VISIT_COMPLETE_DEF(NodeDrawingStyle)
+ VISIT_COMPLETE_DEF(NodeTransform)
+ VISIT_COMPLETE_DEF(NodeViewLayer)
+
+ VISIT_COMPLETE_DEF(Rep)
+ VISIT_COMPLETE_DEF(LineRep)
+ VISIT_COMPLETE_DEF(OrientedLineRep)
+ VISIT_COMPLETE_DEF(TriangleRep)
+ VISIT_COMPLETE_DEF(VertexRep)
+ VISIT_COMPLETE_DEF(IndexedFaceSet)
+ VISIT_COMPLETE_DEF(DrawingStyle)
+ VISIT_COMPLETE_DEF(FrsMaterial)
#ifdef WITH_CXX_GUARDEDALLOC
- MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SceneVisitor")
+ MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SceneVisitor")
#endif
};
} /* namespace Freestyle */
-#endif // __FREESTYLE_SCENE_VISITOR_H__
+#endif // __FREESTYLE_SCENE_VISITOR_H__