Visual Computing Library
|
The RenderApp::CNV inner class is an Attorney that allow access to some private member functions of the RenderApp class to the CanvasType class. More...
#include <vclib/render/render_app.h>
Private Types | |
using | CanvasType = CanvasT< RenderApp > |
Static Private Member Functions | |
static void | draw (RenderApp *r) |
The CanvasType is ready to draw, and asks the RenderApp to call the onDraw(uint()) function for every Drawer object. | |
static void | drawContent (RenderApp *r) |
The CanvasType wants to draw only the content of the objects, without any decorator (e.g. axis, trackball, grid, etc.). This scenario is useful when the user wants to take a snapshot of the scene without any decoration. It asks the RenderApp to call the onDrawContent(uint()) function for every Drawer object. | |
static void | postDraw (RenderApp *r) |
The CanvasType has finished drawing and has submitted the new frame, and asks the RenderApp to call the onPostDraw() function for every Drawer object. | |
Private Attributes | |
friend | CanvasType |
The RenderApp::CNV inner class is an Attorney that allow access to some private member functions of the RenderApp class to the CanvasType class.
The member functions of the RenderApp::CNV inner class can be called only by the CanvasType class. For example, to call the draw member function, the CanvasType can call it in the following way: