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:
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph/NodeShape.h')
-rw-r--r--source/blender/freestyle/intern/scene_graph/NodeShape.h101
1 files changed, 51 insertions, 50 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/NodeShape.h b/source/blender/freestyle/intern/scene_graph/NodeShape.h
index f0dd24a9d14..ec7e09d6c88 100644
--- a/source/blender/freestyle/intern/scene_graph/NodeShape.h
+++ b/source/blender/freestyle/intern/scene_graph/NodeShape.h
@@ -39,57 +39,58 @@ namespace Freestyle {
using namespace Geometry;
-class NodeShape : public Node
-{
-public:
- inline NodeShape() : Node() {}
-
- virtual ~NodeShape();
-
- /*! Adds a Rep to the _Shapes list
- * The delete of the rep is done when it is not used any more by the Scene Manager.
- * So, it must not be deleted by the caller
- */
- virtual void AddRep(Rep *iRep)
- {
- if (NULL == iRep)
- return;
- _Shapes.push_back(iRep);
- iRep->addRef();
-
- // updates bbox:
- AddBBox(iRep->bbox());
- }
-
- /*! Accept the corresponding visitor */
- virtual void accept(SceneVisitor& v);
-
- /*! Sets the shape material */
- inline void setFrsMaterial(const FrsMaterial& iMaterial)
- {
- _FrsMaterial = iMaterial;
- }
-
- /*! accessors */
- /*! returns the shape's material */
- inline FrsMaterial& frs_material()
- {
- return _FrsMaterial;
- }
-
- inline const vector<Rep*>& shapes()
- {
- return _Shapes;
- }
-
-private:
- /*! list of shapes */
- vector<Rep*> _Shapes;
-
- /*! Shape Material */
- FrsMaterial _FrsMaterial;
+class NodeShape : public Node {
+ public:
+ inline NodeShape() : Node()
+ {
+ }
+
+ virtual ~NodeShape();
+
+ /*! Adds a Rep to the _Shapes list
+ * The delete of the rep is done when it is not used any more by the Scene Manager.
+ * So, it must not be deleted by the caller
+ */
+ virtual void AddRep(Rep *iRep)
+ {
+ if (NULL == iRep)
+ return;
+ _Shapes.push_back(iRep);
+ iRep->addRef();
+
+ // updates bbox:
+ AddBBox(iRep->bbox());
+ }
+
+ /*! Accept the corresponding visitor */
+ virtual void accept(SceneVisitor &v);
+
+ /*! Sets the shape material */
+ inline void setFrsMaterial(const FrsMaterial &iMaterial)
+ {
+ _FrsMaterial = iMaterial;
+ }
+
+ /*! accessors */
+ /*! returns the shape's material */
+ inline FrsMaterial &frs_material()
+ {
+ return _FrsMaterial;
+ }
+
+ inline const vector<Rep *> &shapes()
+ {
+ return _Shapes;
+ }
+
+ private:
+ /*! list of shapes */
+ vector<Rep *> _Shapes;
+
+ /*! Shape Material */
+ FrsMaterial _FrsMaterial;
};
} /* namespace Freestyle */
-#endif // __FREESTYLE_NODE_SHAPE_H__
+#endif // __FREESTYLE_NODE_SHAPE_H__