31 #include "../system/Interpreter.h"
32 #include "../system/StringUtils.h"
34 #ifdef WITH_CXX_GUARDEDALLOC
46 _always_refresh =
false;
61 cerr <<
"Error: no interpreter was found to execute the script" << endl;
66 cerr <<
"Error: not drawable" << endl;
73 cerr <<
"Error: interpretation failed" << endl;
79 if (strokes_set->empty()) {
80 cerr <<
"Error: strokes set empty" << endl;
86 for (Operators::StrokesContainer::iterator it = strokes_set->begin(); it != strokes_set->end();
98 return _inter->interpretFile(_file_name);
110 return _always_refresh;
136 _file_name = file_name;
156 if (_always_refresh) {
169 bool _always_refresh;
178 #ifdef WITH_CXX_GUARDEDALLOC
179 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.
void reset()
clear internal cached data and reset random seed
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)