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/stroke/StrokeTesselator.h')
-rw-r--r--source/blender/freestyle/intern/stroke/StrokeTesselator.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/source/blender/freestyle/intern/stroke/StrokeTesselator.h b/source/blender/freestyle/intern/stroke/StrokeTesselator.h
index 228935f2ab5..8cece705ed4 100644
--- a/source/blender/freestyle/intern/stroke/StrokeTesselator.h
+++ b/source/blender/freestyle/intern/stroke/StrokeTesselator.h
@@ -27,51 +27,51 @@
#include "../scene_graph/LineRep.h"
#ifdef WITH_CXX_GUARDEDALLOC
-#include "MEM_guardedalloc.h"
+# include "MEM_guardedalloc.h"
#endif
namespace Freestyle {
-class StrokeTesselator
-{
-public:
- inline StrokeTesselator()
- {
- _FrsMaterial.setDiffuse(0, 0, 0, 1);
- _overloadFrsMaterial = false;
- }
-
- virtual ~StrokeTesselator() {}
-
- /*! Builds a line rep contained from a Stroke */
- LineRep *Tesselate(Stroke *iStroke);
-
- /*! Builds a set of lines rep contained under a a NodeShape, itself contained under a NodeGroup
- * from a set of strokes.
- */
- template<class StrokeIterator>
- NodeGroup *Tesselate(StrokeIterator begin, StrokeIterator end);
-
- inline void setFrsMaterial(const FrsMaterial& iMaterial)
- {
- _FrsMaterial = iMaterial;
- _overloadFrsMaterial = true;
- }
-
- inline const FrsMaterial& frs_material() const
- {
- return _FrsMaterial;
- }
-
-private:
- FrsMaterial _FrsMaterial;
- bool _overloadFrsMaterial;
+class StrokeTesselator {
+ public:
+ inline StrokeTesselator()
+ {
+ _FrsMaterial.setDiffuse(0, 0, 0, 1);
+ _overloadFrsMaterial = false;
+ }
+
+ virtual ~StrokeTesselator()
+ {
+ }
+
+ /*! Builds a line rep contained from a Stroke */
+ LineRep *Tesselate(Stroke *iStroke);
+
+ /*! Builds a set of lines rep contained under a a NodeShape, itself contained under a NodeGroup
+ * from a set of strokes.
+ */
+ template<class StrokeIterator> NodeGroup *Tesselate(StrokeIterator begin, StrokeIterator end);
+
+ inline void setFrsMaterial(const FrsMaterial &iMaterial)
+ {
+ _FrsMaterial = iMaterial;
+ _overloadFrsMaterial = true;
+ }
+
+ inline const FrsMaterial &frs_material() const
+ {
+ return _FrsMaterial;
+ }
+
+ private:
+ FrsMaterial _FrsMaterial;
+ bool _overloadFrsMaterial;
#ifdef WITH_CXX_GUARDEDALLOC
- MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeTesselator")
+ MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeTesselator")
#endif
};
} /* namespace Freestyle */
-#endif // __FREESTYLE_STROKE_TESSELATOR_H__
+#endif // __FREESTYLE_STROKE_TESSELATOR_H__