16#ifdef WITH_CXX_GUARDEDALLOC
29# define NO_TEXTURE_WITH_BLEND_STROKE -2
30# define NO_TEXTURE_STROKE -1
31# define PSEUDO_CHARCOAL_STROKE 0
32# define WASH_BRUSH_STROKE 1
34# define NO_BLEND_STROKE 3
35# define CHARCOAL_MIN_STROKE 4
36# define BRUSH_MIN_STROKE 5
37# define OPAQUE_DRY_STROKE 6
38# define OPAQUE_STROKE 7
40# define DEFAULT_STROKE 0
42# define NUMBER_STROKE_RENDERER 8
116#ifdef WITH_CXX_GUARDEDALLOC
117 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:StrokeVertexRep")
130 Strip(
const std::vector<StrokeVertex *> &iStrokeVertices,
132 bool tipBegin =
false,
134 float texStep = 1.0);
139 void createStrip(
const std::vector<StrokeVertex *> &iStrokeVertices);
141 void setVertexColor(
const std::vector<StrokeVertex *> &iStrokeVertices);
142 void computeTexCoord(
const std::vector<StrokeVertex *> &iStrokeVertices,
float texStep);
159#ifdef WITH_CXX_GUARDEDALLOC
160 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:Strip")
252 inline void setMTex(
int idx,
MTex *mtex_ptr)
254 _mtex[idx] = mtex_ptr;
258#ifdef WITH_CXX_GUARDEDALLOC
259 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:StrokeRep")
Vectors and Matrices (useful type definitions)
Read Guarded memory(de)allocation.
Classes to define a stroke.
ATTR_WARN_UNUSED_RESULT BMesh const char itype
void setVertexColor(const std::vector< StrokeVertex * > &iStrokeVertices)
void computeTexCoord(const std::vector< StrokeVertex * > &iStrokeVertices, float texStep)
void cleanUpSingularities(const std::vector< StrokeVertex * > &iStrokeVertices)
vertex_container & vertices()
vertex_container _vertices
std::vector< StrokeVertexRep * > vertex_container
void computeTexCoordWithTips(const std::vector< StrokeVertex * > &iStrokeVertices, bool tipBegin, bool tipEnd, float texStep)
void createStrip(const std::vector< StrokeVertex * > &iStrokeVertices)
Stroke::MediumType _strokeType
void setMediumType(Stroke::MediumType itype)
uint getNumberOfStrips() const
void setTextureId(uint textureId)
MTex * getMTex(int idx) const
Material * getMaterial() const
vector< Strip * > _strips
void setMaterial(Material *mat)
vector< Strip * > & getStrips()
Stroke::MediumType getMediumType() const
bNodeTree * getNodeTree() const
uint getTextureId() const
virtual ~StrokeVertexRep()
void setPoint2d(const Vec2r &p)
void setTexCoord(const Vec2r &p, bool tips=false)
void setColor(const Vec3r &p)
Vec2r & texCoord(bool tips=false)
StrokeVertexRep(const Vec2r &iPoint2d)