diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/freestyle/intern/scene_graph/NodeGroup.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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/NodeGroup.h')
-rw-r--r-- | source/blender/freestyle/intern/scene_graph/NodeGroup.h | 65 |
1 files changed, 34 insertions, 31 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/NodeGroup.h b/source/blender/freestyle/intern/scene_graph/NodeGroup.h index 23a168eba01..89f81cc2b13 100644 --- a/source/blender/freestyle/intern/scene_graph/NodeGroup.h +++ b/source/blender/freestyle/intern/scene_graph/NodeGroup.h @@ -33,48 +33,51 @@ using namespace std; namespace Freestyle { -class NodeGroup : public Node -{ -public: - inline NodeGroup(): Node() {} - virtual ~NodeGroup() {} +class NodeGroup : public Node { + public: + inline NodeGroup() : Node() + { + } + virtual ~NodeGroup() + { + } - /*! Adds a child. Makes a addRef on the iChild reference counter */ - virtual void AddChild(Node *iChild); + /*! Adds a child. Makes a addRef on the iChild reference counter */ + virtual void AddChild(Node *iChild); - /*! destroys all the underlying nodes - * Returns the reference counter after having done a release() - */ - virtual int destroy(); + /*! destroys all the underlying nodes + * Returns the reference counter after having done a release() + */ + virtual int destroy(); - /*! Detaches all the children */ - virtual void DetachChildren(); + /*! Detaches all the children */ + virtual void DetachChildren(); - /*! Detached the sepcified child */ - virtual void DetachChild(Node *iChild); + /*! Detached the sepcified child */ + virtual void DetachChild(Node *iChild); - /*! Retrieve children */ - virtual void RetrieveChildren(vector<Node*>& oNodes); + /*! Retrieve children */ + virtual void RetrieveChildren(vector<Node *> &oNodes); - /*! Renders every children */ -// virtual void Render(Renderer *iRenderer); + /*! Renders every children */ + // virtual void Render(Renderer *iRenderer); - /*! Accept the corresponding visitor */ - virtual void accept(SceneVisitor& v); + /*! Accept the corresponding visitor */ + virtual void accept(SceneVisitor &v); - /*! Updates the BBox */ - virtual const BBox<Vec3r>& UpdateBBox(); + /*! Updates the BBox */ + virtual const BBox<Vec3r> &UpdateBBox(); - /*! Returns the number of children */ - virtual int numberOfChildren() - { - return _Children.size(); - } + /*! Returns the number of children */ + virtual int numberOfChildren() + { + return _Children.size(); + } -protected: - vector<Node*> _Children; + protected: + vector<Node *> _Children; }; } /* namespace Freestyle */ -#endif // __FREESTYLE_NODE_GROUP_H__ +#endif // __FREESTYLE_NODE_GROUP_H__ |