Blender V4.3
Freestyle::AppCanvas Class Reference

#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< Vec3rscene3DBBox () const
 
virtual void RenderStroke (Stroke *)
 
virtual void update ()
 
virtual int width () const
 
virtual int height () const
 
virtual BBox< Vec2iborder () const
 
virtual float thickness () const
 
const AppViewviewer () 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)
 
SteerableViewMapgetSteerableViewMap ()
 
const FEdgeselectedFEdge () const
 
FEdgeselectedFEdge ()
 
const StrokeRendererrenderer () const
 
StyleModulegetCurrentStyleModule ()
 
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 *, ltstrmapsMap
 
- Static Public Member Functions inherited from Freestyle::Canvas
static CanvasgetInstance ()
 
- 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
 

Detailed Description

Definition at line 16 of file AppCanvas.h.

Constructor & Destructor Documentation

◆ AppCanvas() [1/3]

Freestyle::AppCanvas::AppCanvas ( )

◆ AppCanvas() [2/3]

Freestyle::AppCanvas::AppCanvas ( AppView * iViewer)

Definition at line 28 of file AppCanvas.cpp.

References _pViewer.

◆ AppCanvas() [3/3]

Freestyle::AppCanvas::AppCanvas ( const AppCanvas & iBrother)

Definition at line 33 of file AppCanvas.cpp.

References _pViewer.

◆ ~AppCanvas()

Freestyle::AppCanvas::~AppCanvas ( )
virtual

Definition at line 38 of file AppCanvas.cpp.

References _pViewer.

Member Function Documentation

◆ border()

BBox< Vec2i > Freestyle::AppCanvas::border ( ) const
virtual

Implements Freestyle::Canvas.

Definition at line 58 of file AppCanvas.cpp.

References _pViewer, and Freestyle::AppView::border().

Referenced by readColorPixels(), and readDepthPixels().

◆ Erase()

void Freestyle::AppCanvas::Erase ( )
virtual

Erases the layers and clears the canvas

Reimplemented from Freestyle::Canvas.

Definition at line 103 of file AppCanvas.cpp.

References Freestyle::Canvas::Erase().

◆ height()

virtual int Freestyle::AppCanvas::height ( ) const
virtual

Implements Freestyle::Canvas.

◆ init()

void Freestyle::AppCanvas::init ( )
virtual

◆ postDraw()

void Freestyle::AppCanvas::postDraw ( )
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().

◆ preDraw()

void Freestyle::AppCanvas::preDraw ( )
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().

◆ readColorPixels()

void Freestyle::AppCanvas::readColorPixels ( int x,
int y,
int w,
int h,
RGBImage & oImage ) const
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.

◆ readDepthPixels()

void Freestyle::AppCanvas::readDepthPixels ( int x,
int y,
int w,
int h,
GrayImage & oImage ) const
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().

◆ RenderStroke()

void Freestyle::AppCanvas::RenderStroke ( Stroke * iStroke)
virtual

◆ scene3DBBox()

BBox< Vec3r > Freestyle::AppCanvas::scene3DBBox ( ) const
virtual

Implements Freestyle::Canvas.

Definition at line 68 of file AppCanvas.cpp.

References _pViewer, and Freestyle::AppView::scene3DBBox().

◆ setPassDiffuse()

void Freestyle::AppCanvas::setPassDiffuse ( float * buf,
int width,
int height )
inline

Definition at line 62 of file AppCanvas.h.

References buf, height, and width.

Referenced by Freestyle::Controller::setPassDiffuse().

◆ setPassZ()

void Freestyle::AppCanvas::setPassZ ( float * buf,
int width,
int height )
inline

Definition at line 68 of file AppCanvas.h.

References buf, height, and width.

Referenced by Freestyle::Controller::setPassZ().

◆ setViewer()

void Freestyle::AppCanvas::setViewer ( AppView * iViewer)

modifiers

Definition at line 43 of file AppCanvas.cpp.

References _pViewer.

Referenced by Freestyle::Controller::setView().

◆ thickness()

float Freestyle::AppCanvas::thickness ( ) const
virtual

Definition at line 63 of file AppCanvas.cpp.

References _pViewer, and Freestyle::AppView::thickness().

Referenced by postDraw().

◆ update()

void Freestyle::AppCanvas::update ( )
virtual

Implements Freestyle::Canvas.

Definition at line 218 of file AppCanvas.cpp.

◆ viewer()

const AppView * Freestyle::AppCanvas::viewer ( ) const
inline

Definition at line 53 of file AppCanvas.h.

References _pViewer.

◆ width()

virtual int Freestyle::AppCanvas::width ( ) const
virtual

accessors

Implements Freestyle::Canvas.

Member Data Documentation

◆ _pViewer

AppView* Freestyle::AppCanvas::_pViewer

◆ buf

float* Freestyle::AppCanvas::buf

Definition at line 77 of file AppCanvas.h.

Referenced by setPassDiffuse(), and setPassZ().

◆ height

int Freestyle::AppCanvas::height

Definition at line 78 of file AppCanvas.h.

Referenced by readColorPixels(), readDepthPixels(), setPassDiffuse(), and setPassZ().

◆ width

int Freestyle::AppCanvas::width

Definition at line 78 of file AppCanvas.h.

Referenced by readColorPixels(), readDepthPixels(), setPassDiffuse(), and setPassZ().


The documentation for this class was generated from the following files: