Blender  V3.3
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Freestyle::TextureManager Class Referenceabstract

#include <StrokeRenderer.h>

Classes

struct  cmpBrushTexture
 
struct  Options
 

Public Member Functions

 TextureManager ()
 
virtual ~TextureManager ()
 
void load ()
 
unsigned getBrushTextureIndex (string name, Stroke::MediumType iType=Stroke::OPAQUE_MEDIUM)
 
bool hasLoaded () const
 
unsigned int getDefaultTextureId () const
 

Static Public Member Functions

static TextureManagergetInstance ()
 

Protected Types

typedef std::pair< string, Stroke::MediumTypeBrushTexture
 
typedef std::map< BrushTexture, unsigned, cmpBrushTexturebrushesMap
 

Protected Member Functions

virtual void loadStandardBrushes ()=0
 
virtual unsigned loadBrush (string fileName, Stroke::MediumType=Stroke::OPAQUE_MEDIUM)=0
 

Protected Attributes

bool _hasLoadedTextures
 
brushesMap _brushesMap
 
unsigned int _defaultTextureId
 

Static Protected Attributes

static TextureManager_pInstance = nullptr
 
static string _patterns_path
 
static string _brushes_path
 

Detailed Description

Class to load textures

Definition at line 36 of file StrokeRenderer.h.

Member Typedef Documentation

◆ brushesMap

Definition at line 84 of file StrokeRenderer.h.

◆ BrushTexture

typedef std::pair<string, Stroke::MediumType> Freestyle::TextureManager::BrushTexture
protected

Definition at line 71 of file StrokeRenderer.h.

Constructor & Destructor Documentation

◆ TextureManager()

Freestyle::TextureManager::TextureManager ( )

Definition at line 48 of file StrokeRenderer.cpp.

◆ ~TextureManager()

Freestyle::TextureManager::~TextureManager ( )
virtual

Definition at line 55 of file StrokeRenderer.cpp.

Member Function Documentation

◆ getBrushTextureIndex()

unsigned Freestyle::TextureManager::getBrushTextureIndex ( string  name,
Stroke::MediumType  iType = Stroke::OPAQUE_MEDIUM 
)

Definition at line 72 of file StrokeRenderer.cpp.

References usdtokens::b().

◆ getDefaultTextureId()

unsigned int Freestyle::TextureManager::getDefaultTextureId ( ) const
inline

Definition at line 54 of file StrokeRenderer.h.

References _defaultTextureId.

Referenced by Freestyle::StrokeRep::StrokeRep().

◆ getInstance()

static TextureManager* Freestyle::TextureManager::getInstance ( )
inlinestatic

Definition at line 41 of file StrokeRenderer.h.

References _pInstance.

◆ hasLoaded()

bool Freestyle::TextureManager::hasLoaded ( ) const
inline

Definition at line 49 of file StrokeRenderer.h.

References _hasLoadedTextures.

◆ load()

void Freestyle::TextureManager::load ( )

Definition at line 63 of file StrokeRenderer.cpp.

◆ loadBrush()

virtual unsigned Freestyle::TextureManager::loadBrush ( string  fileName,
Stroke::MediumType  = Stroke::OPAQUE_MEDIUM 
)
protectedpure virtual

◆ loadStandardBrushes()

virtual void Freestyle::TextureManager::loadStandardBrushes ( )
protectedpure virtual

Member Data Documentation

◆ _brushes_path

string Freestyle::TextureManager::_brushes_path
staticprotected

Definition at line 90 of file StrokeRenderer.h.

◆ _brushesMap

brushesMap Freestyle::TextureManager::_brushesMap
protected

Definition at line 88 of file StrokeRenderer.h.

◆ _defaultTextureId

unsigned int Freestyle::TextureManager::_defaultTextureId
protected

Definition at line 91 of file StrokeRenderer.h.

Referenced by getDefaultTextureId().

◆ _hasLoadedTextures

bool Freestyle::TextureManager::_hasLoadedTextures
protected

Definition at line 87 of file StrokeRenderer.h.

Referenced by hasLoaded().

◆ _patterns_path

string Freestyle::TextureManager::_patterns_path
staticprotected

Definition at line 89 of file StrokeRenderer.h.

◆ _pInstance

TextureManager * Freestyle::TextureManager::_pInstance = nullptr
staticprotected

Definition at line 86 of file StrokeRenderer.h.

Referenced by getInstance().


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