Blender V5.0
Freestyle::Strip Class Reference

#include <StrokeRep.h>

Public Types

typedef std::vector< StrokeVertexRep * > vertex_container

Public Member Functions

 Strip (const std::vector< StrokeVertex * > &iStrokeVertices, bool hasTex=false, bool tipBegin=false, bool tipEnd=false, float texStep=1.0)
 Strip (const Strip &iBrother)
virtual ~Strip ()
int sizeStrip () const
vertex_containervertices ()

Protected Member Functions

void createStrip (const std::vector< StrokeVertex * > &iStrokeVertices)
void cleanUpSingularities (const std::vector< StrokeVertex * > &iStrokeVertices)
void setVertexColor (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)

Protected Attributes

vertex_container _vertices
float _averageThickness

Detailed Description

Definition at line 117 of file StrokeRep.h.

Member Typedef Documentation

◆ vertex_container

typedef std::vector<StrokeVertexRep *> Freestyle::Strip::vertex_container

Definition at line 119 of file StrokeRep.h.

Constructor & Destructor Documentation

◆ Strip() [1/2]

Strip::Strip ( const std::vector< StrokeVertex * > & iStrokeVertices,
bool hasTex = false,
bool tipBegin = false,
bool tipEnd = false,
float texStep = 1.0 )

Definition at line 41 of file StrokeRep.cpp.

References computeTexCoord(), computeTexCoordWithTips(), createStrip(), and setVertexColor().

Referenced by Strip().

◆ Strip() [2/2]

Strip::Strip ( const Strip & iBrother)

Definition at line 58 of file StrokeRep.cpp.

References _averageThickness, _vertices, Strip(), and v.

◆ ~Strip()

Strip::~Strip ( )
virtual

Definition at line 72 of file StrokeRep.cpp.

References _vertices, and v.

Member Function Documentation

◆ cleanUpSingularities()

void Strip::cleanUpSingularities ( const std::vector< StrokeVertex * > & iStrokeVertices)
protected

◆ computeTexCoord()

void Strip::computeTexCoord ( const std::vector< StrokeVertex * > & iStrokeVertices,
float texStep )
protected

Definition at line 535 of file StrokeRep.cpp.

References _averageThickness, _vertices, Freestyle::StrokeVertex::curvilinearAbscissa(), i, and v.

Referenced by Strip().

◆ computeTexCoordWithTips()

◆ createStrip()

◆ setVertexColor()

void Strip::setVertexColor ( const std::vector< StrokeVertex * > & iStrokeVertices)
protected

◆ sizeStrip()

int Freestyle::Strip::sizeStrip ( ) const
inline

Definition at line 145 of file StrokeRep.h.

References _vertices.

Referenced by cleanUpSingularities().

◆ vertices()

vertex_container & Freestyle::Strip::vertices ( )
inline

Definition at line 150 of file StrokeRep.h.

References _vertices.

Member Data Documentation

◆ _averageThickness

float Freestyle::Strip::_averageThickness
protected

Definition at line 123 of file StrokeRep.h.

Referenced by computeTexCoord(), computeTexCoordWithTips(), createStrip(), and Strip().

◆ _vertices

vertex_container Freestyle::Strip::_vertices
protected

The documentation for this class was generated from the following files: