Blender  V3.3
StrokeTesselator.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 #include "Stroke.h"
11 
12 #include "../scene_graph/LineRep.h"
13 
14 #ifdef WITH_CXX_GUARDEDALLOC
15 # include "MEM_guardedalloc.h"
16 #endif
17 
18 namespace Freestyle {
19 
21  public:
23  {
24  _FrsMaterial.setDiffuse(0, 0, 0, 1);
25  _overloadFrsMaterial = false;
26  }
27 
29  {
30  }
31 
33  LineRep *Tesselate(Stroke *iStroke);
34 
38  template<class StrokeIterator> NodeGroup *Tesselate(StrokeIterator begin, StrokeIterator end);
39 
40  inline void setFrsMaterial(const FrsMaterial &iMaterial)
41  {
42  _FrsMaterial = iMaterial;
43  _overloadFrsMaterial = true;
44  }
45 
46  inline const FrsMaterial &frs_material() const
47  {
48  return _FrsMaterial;
49  }
50 
51  private:
52  FrsMaterial _FrsMaterial;
53  bool _overloadFrsMaterial;
54 
55 #ifdef WITH_CXX_GUARDEDALLOC
56  MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeTesselator")
57 #endif
58 };
59 
60 } /* namespace Freestyle */
Read Guarded memory(de)allocation.
Classes to define a stroke.
void setDiffuse(float r, float g, float b, float a)
Definition: FrsMaterial.h:374
NodeGroup * Tesselate(StrokeIterator begin, StrokeIterator end)
LineRep * Tesselate(Stroke *iStroke)
const FrsMaterial & frs_material() const
void setFrsMaterial(const FrsMaterial &iMaterial)
inherits from class Rep
Definition: AppCanvas.cpp:18