Blender V4.3
Freestyle::StrokeRep Class Reference

#include <StrokeRep.h>

Public Member Functions

 StrokeRep ()
 
 StrokeRep (const StrokeRep &)
 
 StrokeRep (Stroke *iStroke)
 
virtual ~StrokeRep ()
 
virtual void create ()
 
virtual void Render (const StrokeRenderer *iRenderer)
 
Stroke::MediumType getMediumType () const
 
uint getTextureId () const
 
MTexgetMTex (int idx) const
 
MaterialgetMaterial () const
 
bNodeTreegetNodeTree () const
 
bool hasTex () const
 
vector< Strip * > & getStrips ()
 
uint getNumberOfStrips () const
 
StrokegetStroke ()
 
void setMediumType (Stroke::MediumType itype)
 
void setTextureId (uint textureId)
 
void setMaterial (Material *mat)
 

Protected Attributes

Stroke_stroke
 
vector< Strip * > _strips
 
Stroke::MediumType _strokeType
 
uint _textureId
 
float _textureStep
 
MTex_mtex [MAX_MTEX]
 
bNodeTree_nodeTree
 
Material_material
 
bool _hasTex
 

Detailed Description

Definition at line 164 of file StrokeRep.h.

Constructor & Destructor Documentation

◆ StrokeRep() [1/3]

◆ StrokeRep() [2/3]

Freestyle::StrokeRep::StrokeRep ( const StrokeRep & iBrother)

◆ StrokeRep() [3/3]

◆ ~StrokeRep()

Freestyle::StrokeRep::~StrokeRep ( )
virtual

Definition at line 827 of file StrokeRep.cpp.

References _strips.

Member Function Documentation

◆ create()

void Freestyle::StrokeRep::create ( )
virtual

Creates the strips

Definition at line 837 of file StrokeRep.cpp.

References _hasTex, _strips, _stroke, _textureStep, Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), and v.

Referenced by StrokeRep().

◆ getMaterial()

Material * Freestyle::StrokeRep::getMaterial ( ) const
inline

Definition at line 206 of file StrokeRep.h.

References _material.

◆ getMediumType()

Stroke::MediumType Freestyle::StrokeRep::getMediumType ( ) const
inline

accessors

Definition at line 191 of file StrokeRep.h.

References _strokeType.

◆ getMTex()

MTex * Freestyle::StrokeRep::getMTex ( int idx) const
inline

Definition at line 201 of file StrokeRep.h.

References _mtex.

◆ getNodeTree()

bNodeTree * Freestyle::StrokeRep::getNodeTree ( ) const
inline

Definition at line 211 of file StrokeRep.h.

References _nodeTree.

Referenced by Freestyle::BlenderStrokeRenderer::RenderStrokeRepBasic().

◆ getNumberOfStrips()

uint Freestyle::StrokeRep::getNumberOfStrips ( ) const
inline

Definition at line 226 of file StrokeRep.h.

References _strips.

◆ getStrips()

vector< Strip * > & Freestyle::StrokeRep::getStrips ( )
inline

◆ getStroke()

Stroke * Freestyle::StrokeRep::getStroke ( )
inline

Definition at line 231 of file StrokeRep.h.

References _stroke.

Referenced by Freestyle::TextStrokeRenderer::RenderStrokeRepBasic().

◆ getTextureId()

uint Freestyle::StrokeRep::getTextureId ( ) const
inline

Definition at line 196 of file StrokeRep.h.

References _textureId.

◆ hasTex()

bool Freestyle::StrokeRep::hasTex ( ) const
inline

Definition at line 216 of file StrokeRep.h.

References _hasTex.

Referenced by Freestyle::BlenderStrokeRenderer::RenderStrokeRepBasic().

◆ Render()

void Freestyle::StrokeRep::Render ( const StrokeRenderer * iRenderer)
virtual

Renders the stroke using a Renderer

Definition at line 869 of file StrokeRep.cpp.

References Freestyle::StrokeRenderer::RenderStrokeRep().

◆ setMaterial()

void Freestyle::StrokeRep::setMaterial ( Material * mat)
inline

Definition at line 247 of file StrokeRep.h.

References _material.

Referenced by Freestyle::BlenderStrokeRenderer::RenderStrokeRepBasic().

◆ setMediumType()

void Freestyle::StrokeRep::setMediumType ( Stroke::MediumType itype)
inline

modifiers

Definition at line 237 of file StrokeRep.h.

References _strokeType, and itype.

◆ setTextureId()

void Freestyle::StrokeRep::setTextureId ( uint textureId)
inline

Definition at line 242 of file StrokeRep.h.

References _textureId.

Member Data Documentation

◆ _hasTex

bool Freestyle::StrokeRep::_hasTex
protected

Definition at line 174 of file StrokeRep.h.

Referenced by create(), hasTex(), StrokeRep(), StrokeRep(), and StrokeRep().

◆ _material

Material* Freestyle::StrokeRep::_material
protected

Definition at line 173 of file StrokeRep.h.

Referenced by getMaterial(), and setMaterial().

◆ _mtex

MTex* Freestyle::StrokeRep::_mtex[MAX_MTEX]
protected

Definition at line 171 of file StrokeRep.h.

Referenced by getMTex(), StrokeRep(), StrokeRep(), and StrokeRep().

◆ _nodeTree

bNodeTree* Freestyle::StrokeRep::_nodeTree
protected

Definition at line 172 of file StrokeRep.h.

Referenced by getNodeTree(), StrokeRep(), StrokeRep(), and StrokeRep().

◆ _strips

vector<Strip *> Freestyle::StrokeRep::_strips
protected

Definition at line 167 of file StrokeRep.h.

Referenced by create(), getNumberOfStrips(), getStrips(), StrokeRep(), and ~StrokeRep().

◆ _stroke

Stroke* Freestyle::StrokeRep::_stroke
protected

Definition at line 166 of file StrokeRep.h.

Referenced by create(), getStroke(), StrokeRep(), StrokeRep(), and StrokeRep().

◆ _strokeType

Stroke::MediumType Freestyle::StrokeRep::_strokeType
protected

Definition at line 168 of file StrokeRep.h.

Referenced by getMediumType(), setMediumType(), StrokeRep(), StrokeRep(), and StrokeRep().

◆ _textureId

uint Freestyle::StrokeRep::_textureId
protected

Definition at line 169 of file StrokeRep.h.

Referenced by getTextureId(), setTextureId(), StrokeRep(), StrokeRep(), and StrokeRep().

◆ _textureStep

float Freestyle::StrokeRep::_textureStep
protected

Definition at line 170 of file StrokeRep.h.

Referenced by create(), StrokeRep(), StrokeRep(), and StrokeRep().


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