|
Blender V4.3
|
#include <AppCanvas.h>
Inherits Freestyle::Canvas.
Public Member Functions | |
| AppCanvas () | |
| AppCanvas (AppView *iViewer) | |
| AppCanvas (const AppCanvas &iBrother) | |
| virtual | ~AppCanvas () |
| virtual void | preDraw () |
| virtual void | postDraw () |
| virtual void | Erase () |
| virtual void | init () |
| virtual void | readColorPixels (int x, int y, int w, int h, RGBImage &oImage) const |
| virtual void | readDepthPixels (int x, int y, int w, int h, GrayImage &oImage) const |
| virtual BBox< Vec3r > | scene3DBBox () const |
| virtual void | RenderStroke (Stroke *) |
| virtual void | update () |
| virtual int | width () const |
| virtual int | height () const |
| virtual BBox< Vec2i > | border () const |
| virtual float | thickness () const |
| const AppView * | viewer () const |
| void | setViewer (AppView *iViewer) |
| void | setPassDiffuse (float *buf, int width, int height) |
| void | setPassZ (float *buf, int width, int height) |
Public Member Functions inherited from Freestyle::Canvas | |
| Canvas () | |
| Canvas (const Canvas &iBrother) | |
| virtual | ~Canvas () |
| virtual void | Draw () |
| virtual void | Render (const StrokeRenderer *iRenderer) |
| virtual void | RenderBasic (const StrokeRenderer *iRenderer) |
| void | Clear () |
| bool | isEmpty () const |
| void | loadMap (const char *iFileName, const char *iMapName, uint iNbLevels=4, float iSigma=1.0f) |
| float | readMapPixel (const char *iMapName, int level, int x, int y) |
| void | loadSteerableViewMap (SteerableViewMap *iSVM) |
| SteerableViewMap * | getSteerableViewMap () |
| const FEdge * | selectedFEdge () const |
| FEdge * | selectedFEdge () |
| const StrokeRenderer * | renderer () const |
| StyleModule * | getCurrentStyleModule () |
| virtual bool | getRecordFlag () const |
| int | getStrokeCount () const |
| void | setSelectedFEdge (FEdge *iFEdge) |
| void | PushBackStyleModule (StyleModule *iStyleModule) |
| void | InsertStyleModule (uint index, StyleModule *iStyleModule) |
| void | RemoveStyleModule (uint index) |
| void | SwapStyleModules (uint i1, uint i2) |
| void | ReplaceStyleModule (uint index, StyleModule *iStyleModule) |
| void | setVisible (uint index, bool iVisible) |
| void | AddLayer (StrokeLayer *iLayer) |
| void | resetModified (bool iMod=false) |
| void | causalStyleModules (std::vector< uint > &vec, uint index=0) |
| void | setModified (uint index, bool iMod) |
Public Attributes | |
| AppView * | _pViewer |
Additional Inherited Members | |
Public Types inherited from Freestyle::Canvas | |
| typedef std::map< const char *, ImagePyramid *, ltstr > | mapsMap |
Static Public Member Functions inherited from Freestyle::Canvas | |
| static Canvas * | getInstance () |
Static Public Attributes inherited from Freestyle::Canvas | |
| static const int | NB_STEERABLE_VIEWMAP = 5 |
Protected Attributes inherited from Freestyle::Canvas | |
| std::deque< StrokeLayer * > | _Layers |
| std::deque< StyleModule * > | _StyleModules |
| FEdge * | _SelectedFEdge |
| StrokeRenderer * | _Renderer |
| StyleModule * | _current_sm |
| mapsMap | _maps |
| SteerableViewMap * | _steerableViewMap |
| bool | _basic |
| int | stroke_count |
Static Protected Attributes inherited from Freestyle::Canvas | |
| static Canvas * | _pInstance = nullptr |
| static const char * | _MapsPath = nullptr |
Definition at line 16 of file AppCanvas.h.
| Freestyle::AppCanvas::AppCanvas | ( | ) |
Definition at line 22 of file AppCanvas.cpp.
References Freestyle::Canvas::_MapsPath, _pViewer, Freestyle::Config::Path::getInstance(), and Freestyle::Config::Path::getMapsDir().
| Freestyle::AppCanvas::AppCanvas | ( | AppView * | iViewer | ) |
Definition at line 28 of file AppCanvas.cpp.
References _pViewer.
| Freestyle::AppCanvas::AppCanvas | ( | const AppCanvas & | iBrother | ) |
Definition at line 33 of file AppCanvas.cpp.
References _pViewer.
|
virtual |
Definition at line 38 of file AppCanvas.cpp.
References _pViewer.
Implements Freestyle::Canvas.
Definition at line 58 of file AppCanvas.cpp.
References _pViewer, and Freestyle::AppView::border().
Referenced by readColorPixels(), and readDepthPixels().
|
virtual |
Erases the layers and clears the canvas
Reimplemented from Freestyle::Canvas.
Definition at line 103 of file AppCanvas.cpp.
References Freestyle::Canvas::Erase().
|
virtual |
Implements Freestyle::Canvas.
|
virtual |
Implements Freestyle::Canvas.
Definition at line 78 of file AppCanvas.cpp.
References Freestyle::Canvas::_Renderer, and Freestyle::StrokeRenderer::loadTextures().
Referenced by Freestyle::Controller::init_options().
|
virtual |
operations that need to be done after a draw
Reimplemented from Freestyle::Canvas.
Definition at line 92 of file AppCanvas.cpp.
References Freestyle::Canvas::_Layers, Freestyle::Canvas::_StyleModules, Freestyle::Canvas::postDraw(), and thickness().
|
virtual |
operations that need to be done before a draw
Reimplemented from Freestyle::Canvas.
Definition at line 73 of file AppCanvas.cpp.
References Freestyle::Canvas::preDraw().
|
virtual |
Reads a pixel area from the canvas
Implements Freestyle::Canvas.
Definition at line 110 of file AppCanvas.cpp.
References border(), float, G, G_DEBUG_FREESTYLE, height, int, printf, Freestyle::RGBImage::setArray(), w(), and width.
|
virtual |
Reads a depth pixel area from the canvas
Implements Freestyle::Canvas.
Definition at line 159 of file AppCanvas.cpp.
References border(), float, G, G_DEBUG_FREESTYLE, height, int, printf, Freestyle::GrayImage::setArray(), w(), width, and z().
|
virtual |
Implements Freestyle::Canvas.
Definition at line 208 of file AppCanvas.cpp.
References Freestyle::Canvas::_basic, Freestyle::Canvas::_Renderer, Freestyle::Stroke::Render(), and Freestyle::Stroke::RenderBasic().
Implements Freestyle::Canvas.
Definition at line 68 of file AppCanvas.cpp.
References _pViewer, and Freestyle::AppView::scene3DBBox().
Definition at line 62 of file AppCanvas.h.
References buf, height, and width.
Referenced by Freestyle::Controller::setPassDiffuse().
Definition at line 68 of file AppCanvas.h.
References buf, height, and width.
Referenced by Freestyle::Controller::setPassZ().
| void Freestyle::AppCanvas::setViewer | ( | AppView * | iViewer | ) |
modifiers
Definition at line 43 of file AppCanvas.cpp.
References _pViewer.
Referenced by Freestyle::Controller::setView().
|
virtual |
Definition at line 63 of file AppCanvas.cpp.
References _pViewer, and Freestyle::AppView::thickness().
Referenced by postDraw().
|
virtual |
Implements Freestyle::Canvas.
Definition at line 218 of file AppCanvas.cpp.
|
inline |
Definition at line 53 of file AppCanvas.h.
References _pViewer.
|
virtual |
accessors
Implements Freestyle::Canvas.
| AppView* Freestyle::AppCanvas::_pViewer |
Definition at line 52 of file AppCanvas.h.
Referenced by AppCanvas(), AppCanvas(), AppCanvas(), border(), scene3DBBox(), setViewer(), thickness(), viewer(), and ~AppCanvas().
| float* Freestyle::AppCanvas::buf |
Definition at line 77 of file AppCanvas.h.
Referenced by setPassDiffuse(), and setPassZ().
| int Freestyle::AppCanvas::height |
Definition at line 78 of file AppCanvas.h.
Referenced by readColorPixels(), readDepthPixels(), setPassDiffuse(), and setPassZ().
| int Freestyle::AppCanvas::width |
Definition at line 78 of file AppCanvas.h.
Referenced by readColorPixels(), readDepthPixels(), setPassDiffuse(), and setPassZ().