17 #include "../geometry/BBox.h"
18 #include "../geometry/Geom.h"
20 #include "../system/FreestyleConfig.h"
22 #ifdef WITH_CXX_GUARDEDALLOC
33 return strcmp(s1, s2) < 0;
46 class SteerableViewMap;
60 typedef std::map<const char *, ImagePyramid *, ltstr>
mapsMap;
61 static const int NB_STEERABLE_VIEWMAP = 5;
86 virtual void preDraw();
92 virtual void postDraw();
108 virtual void Erase();
121 return (_Layers.empty());
136 void loadMap(
const char *iFileName,
137 const char *iMapName,
138 unsigned iNbLevels = 4,
139 float iSigma = 1.0f);
154 float readMapPixel(
const char *iMapName,
int level,
int x,
int y);
159 _steerableViewMap = iSVM;
165 return _steerableViewMap;
171 return _SelectedFEdge;
176 return _SelectedFEdge;
207 _SelectedFEdge = iFEdge;
211 void PushBackStyleModule(
StyleModule *iStyleModule);
212 void InsertStyleModule(
unsigned index,
StyleModule *iStyleModule);
213 void RemoveStyleModule(
unsigned index);
214 void SwapStyleModules(
unsigned i1,
unsigned i2);
215 void ReplaceStyleModule(
unsigned index,
StyleModule *iStyleModule);
216 void setVisible(
unsigned index,
bool iVisible);
219 inline void setDensityMap(InformationMap<RGBImage> *iMap)
227 _Layers.push_back(iLayer);
230 void resetModified(
bool iMod =
false);
231 void causalStyleModules(std::vector<unsigned> &vec,
unsigned index = 0);
232 void setModified(
unsigned index,
bool iMod);
234 #ifdef WITH_CXX_GUARDEDALLOC
235 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:Canvas")
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint i1
Read Guarded memory(de)allocation.
Class to define a layer of strokes.
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
SteerableViewMap * getSteerableViewMap()
virtual void readDepthPixels(int x, int y, int w, int h, GrayImage &oImage) const =0
std::deque< StrokeLayer * > _Layers
SteerableViewMap * _steerableViewMap
static Canvas * getInstance()
void AddLayer(StrokeLayer *iLayer)
std::map< const char *, ImagePyramid *, ltstr > mapsMap
virtual BBox< Vec2i > border() const =0
virtual bool getRecordFlag() const
virtual void readColorPixels(int x, int y, int w, int h, RGBImage &oImage) const =0
virtual int height() const =0
StyleModule * _current_sm
virtual int width() const =0
const StrokeRenderer * renderer() const
std::deque< StyleModule * > _StyleModules
void loadSteerableViewMap(SteerableViewMap *iSVM)
virtual BBox< Vec3r > scene3DBBox() const =0
StyleModule * getCurrentStyleModule()
int getStrokeCount() const
static const char * _MapsPath
StrokeRenderer * _Renderer
virtual void RenderStroke(Stroke *iStroke)=0
static Canvas * _pInstance
void setSelectedFEdge(FEdge *iFEdge)
const FEdge * selectedFEdge() const
bool operator()(const char *s1, const char *s2) const