22#ifdef WITH_CXX_GUARDEDALLOC
34 _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();
97 return _always_refresh;
123 _file_name = file_name;
143 if (_always_refresh) {
156 bool _always_refresh;
165#ifdef WITH_CXX_GUARDEDALLOC
166 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:StyleModule")
Base Class of all script interpreters.
Read Guarded memory(de)allocation.
Class gathering stroke creation algorithms.
Class to define a layer of strokes.
Class defining StrokeShader.
virtual int interpretFile(const string &filename)=0
static void reset(bool removeStrokes=true)
static StrokesContainer * getStrokesSet()
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)
local_group_size(16, 16) .push_constant(Type b