Blender  V3.3
Public Member Functions | Public Attributes | List of all members
Freestyle::AppCanvas Class Reference

#include <AppCanvas.h>

Inheritance diagram for Freestyle::AppCanvas:
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, unsigned 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 (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
 
floatbuf
 
int width
 
int height
 

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 14 of file AppCanvas.h.

Constructor & Destructor Documentation

◆ AppCanvas() [1/3]

Freestyle::AppCanvas::AppCanvas ( )

◆ AppCanvas() [2/3]

Freestyle::AppCanvas::AppCanvas ( AppView iViewer)

Definition at line 26 of file AppCanvas.cpp.

References _pViewer.

◆ AppCanvas() [3/3]

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

Definition at line 31 of file AppCanvas.cpp.

References _pViewer.

◆ ~AppCanvas()

Freestyle::AppCanvas::~AppCanvas ( )
virtual

Definition at line 36 of file AppCanvas.cpp.

References _pViewer.

Member Function Documentation

◆ border()

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

Implements Freestyle::Canvas.

Definition at line 56 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 101 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 90 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 71 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 108 of file AppCanvas.cpp.

References border(), float(), G, G_DEBUG_FREESTYLE, height, usdtokens::rgb(), Freestyle::RGBImage::setArray(), w(), width, Freestyle::x, and y.

◆ 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 157 of file AppCanvas.cpp.

References border(), float(), G, G_DEBUG_FREESTYLE, height, Freestyle::GrayImage::setArray(), w(), width, Freestyle::x, y, and z.

◆ RenderStroke()

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

◆ scene3DBBox()

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

Implements Freestyle::Canvas.

Definition at line 66 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 60 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 66 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 41 of file AppCanvas.cpp.

References _pViewer.

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

◆ thickness()

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

Definition at line 61 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 216 of file AppCanvas.cpp.

◆ viewer()

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

Definition at line 51 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

Definition at line 50 of file AppCanvas.h.

Referenced by AppCanvas(), border(), scene3DBBox(), setViewer(), thickness(), viewer(), and ~AppCanvas().

◆ buf

float* Freestyle::AppCanvas::buf

Definition at line 75 of file AppCanvas.h.

Referenced by setPassDiffuse(), and setPassZ().

◆ height

int Freestyle::AppCanvas::height

Definition at line 76 of file AppCanvas.h.

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

◆ width

int Freestyle::AppCanvas::width

Definition at line 76 of file AppCanvas.h.

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


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