17 #include "../system/Interpreter.h"
18 #include "../system/StringUtils.h"
20 #ifdef WITH_CXX_GUARDEDALLOC
32 _always_refresh =
false;
47 cerr <<
"Error: no interpreter was found to execute the script" << endl;
52 cerr <<
"Error: not drawable" << endl;
59 cerr <<
"Error: interpretation failed" << endl;
65 if (strokes_set->empty()) {
66 cerr <<
"Error: strokes set empty" << endl;
72 for (Operators::StrokesContainer::iterator it = strokes_set->begin(); it != strokes_set->end();
84 return _inter->interpretFile(_file_name);
96 return _always_refresh;
122 _file_name = file_name;
142 if (_always_refresh) {
155 bool _always_refresh;
164 #ifdef WITH_CXX_GUARDEDALLOC
165 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:StyleModule")
Read Guarded memory(de)allocation.
Class gathering stroke creation algorithms.
Class to define a layer of strokes.
Class defining StrokeShader.
vector< Stroke * > StrokesContainer
void AddStroke(Stroke *iStroke)
bool getAlwaysRefresh() const
void setCausal(bool b=true)
void setAlwaysRefresh(bool b=true)
bool getDisplayed() const
void setDrawable(bool b=true)
void setFileName(const string &file_name)
const string getFileName() const
void setModified(bool b=true)
void setDisplayed(bool b=true)
StyleModule(const string &file_name, Interpreter *inter)
ccl_gpu_kernel_postfix ccl_global float int int int int float bool reset
clear internal cached data and reset random seed
static const pxr::TfToken b("b", pxr::TfToken::Immortal)