diff options
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__ |