31# define NO_TEXTURE_WITH_BLEND_STROKE -2
32# define NO_TEXTURE_STROKE -1
33# define PSEUDO_CHARCOAL_STROKE 0
34# define WASH_BRUSH_STROKE 1
36# define NO_BLEND_STROKE 3
37# define CHARCOAL_MIN_STROKE 4
38# define BRUSH_MIN_STROKE 5
39# define OPAQUE_DRY_STROKE 6
40# define OPAQUE_STROKE 7
42# define DEFAULT_STROKE 0
44# define NUMBER_STROKE_RENDERER 8
118 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 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:Strip")
252 _mtex[idx] = mtex_ptr;
256 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:StrokeRep")
Vectors and Matrices (useful type definitions).
Read Blender memory allocation and freeing.
Classes to define a stroke.
void createStrip(const std::vector< StrokeVertex * > &iStrokeVertices)
vertex_container & vertices()
vertex_container _vertices
Strip(const std::vector< StrokeVertex * > &iStrokeVertices, bool hasTex=false, bool tipBegin=false, bool tipEnd=false, float texStep=1.0)
std::vector< StrokeVertexRep * > vertex_container
void cleanUpSingularities(const std::vector< StrokeVertex * > &iStrokeVertices)
void computeTexCoord(const std::vector< StrokeVertex * > &iStrokeVertices, float texStep)
void computeTexCoordWithTips(const std::vector< StrokeVertex * > &iStrokeVertices, bool tipBegin, bool tipEnd, float texStep)
void setVertexColor(const std::vector< StrokeVertex * > &iStrokeVertices)
Stroke::MediumType _strokeType
void setMediumType(Stroke::MediumType itype)
uint getNumberOfStrips() const
void setTextureId(uint textureId)
blender::Material * _material
blender::MTex * getMTex(int idx) const
blender::bNodeTree * _nodeTree
blender::bNodeTree * getNodeTree() const
vector< Strip * > _strips
vector< Strip * > & getStrips()
Stroke::MediumType getMediumType() const
blender::Material * getMaterial() const
virtual void Render(const StrokeRenderer *iRenderer)
void setMaterial(blender::Material *mat)
blender::MTex * _mtex[MAX_MTEX]
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)
VecMat::Vec2< real > Vec2r
VecMat::Vec3< real > Vec3r