Blender
V3.3
|
#include <AppCanvas.h>
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) |
![]() | |
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, unsigned 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 (unsigned index, StyleModule *iStyleModule) |
void | RemoveStyleModule (unsigned index) |
void | SwapStyleModules (unsigned i1, unsigned i2) |
void | ReplaceStyleModule (unsigned index, StyleModule *iStyleModule) |
void | setVisible (unsigned index, bool iVisible) |
void | AddLayer (StrokeLayer *iLayer) |
void | resetModified (bool iMod=false) |
void | causalStyleModules (std::vector< unsigned > &vec, unsigned index=0) |
void | setModified (unsigned index, bool iMod) |
Public Attributes | |
AppView * | _pViewer |
float * | buf |
int | width |
int | height |
Additional Inherited Members | |
![]() | |
typedef std::map< const char *, ImagePyramid *, ltstr > | mapsMap |
![]() | |
static Canvas * | getInstance () |
![]() | |
static const int | NB_STEERABLE_VIEWMAP = 5 |
![]() | |
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 Canvas * | _pInstance = nullptr |
static const char * | _MapsPath = nullptr |
Definition at line 14 of file AppCanvas.h.
Freestyle::AppCanvas::AppCanvas | ( | ) |
Definition at line 20 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 26 of file AppCanvas.cpp.
References _pViewer.
Freestyle::AppCanvas::AppCanvas | ( | const AppCanvas & | iBrother | ) |
Definition at line 31 of file AppCanvas.cpp.
References _pViewer.
|
virtual |
Definition at line 36 of file AppCanvas.cpp.
References _pViewer.
Implements Freestyle::Canvas.
Definition at line 56 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 101 of file AppCanvas.cpp.
References Freestyle::Canvas::Erase().
|
virtual |
Implements Freestyle::Canvas.
|
virtual |
Implements Freestyle::Canvas.
Definition at line 76 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 90 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 71 of file AppCanvas.cpp.
References Freestyle::Canvas::preDraw().
|
virtual |
Reads a pixel area from the canvas
Implements Freestyle::Canvas.
Definition at line 108 of file AppCanvas.cpp.
References border(), float(), G, G_DEBUG_FREESTYLE, height, usdtokens::rgb(), Freestyle::RGBImage::setArray(), w(), width, Freestyle::x, and y.
|
virtual |
Reads a depth pixel area from the canvas
Implements Freestyle::Canvas.
Definition at line 157 of file AppCanvas.cpp.
References border(), float(), G, G_DEBUG_FREESTYLE, height, Freestyle::GrayImage::setArray(), w(), width, Freestyle::x, y, and z.
Implements Freestyle::Canvas.
Definition at line 206 of file AppCanvas.cpp.
References Freestyle::Canvas::_basic, Freestyle::Canvas::_Renderer, Freestyle::Stroke::Render(), and Freestyle::Stroke::RenderBasic().
Implements Freestyle::Canvas.
Definition at line 66 of file AppCanvas.cpp.
References _pViewer, and Freestyle::AppView::scene3DBBox().
Definition at line 60 of file AppCanvas.h.
References buf, height, and width.
Referenced by Freestyle::Controller::setPassDiffuse().
Definition at line 66 of file AppCanvas.h.
References buf, height, and width.
Referenced by Freestyle::Controller::setPassZ().
modifiers
Definition at line 41 of file AppCanvas.cpp.
References _pViewer.
Referenced by Freestyle::Controller::setView().
|
virtual |
Definition at line 61 of file AppCanvas.cpp.
References _pViewer, and Freestyle::AppView::thickness().
Referenced by postDraw().
|
virtual |
Implements Freestyle::Canvas.
Definition at line 216 of file AppCanvas.cpp.
|
inline |
Definition at line 51 of file AppCanvas.h.
References _pViewer.
|
virtual |
accessors
Implements Freestyle::Canvas.
AppView* Freestyle::AppCanvas::_pViewer |
Definition at line 50 of file AppCanvas.h.
Referenced by AppCanvas(), border(), scene3DBBox(), setViewer(), thickness(), viewer(), and ~AppCanvas().
float* Freestyle::AppCanvas::buf |
Definition at line 75 of file AppCanvas.h.
Referenced by setPassDiffuse(), and setPassZ().
int Freestyle::AppCanvas::height |
Definition at line 76 of file AppCanvas.h.
Referenced by readColorPixels(), readDepthPixels(), setPassDiffuse(), and setPassZ().
int Freestyle::AppCanvas::width |
Definition at line 76 of file AppCanvas.h.
Referenced by readColorPixels(), readDepthPixels(), setPassDiffuse(), and setPassZ().