Visual Computing Library
Loading...
Searching...
No Matches
vcl::RenderApp< WindowManagerT, CanvasT, Drawers >::CNV Class Reference

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
 

Detailed Description

template<template< typename > typename WindowManagerT, template< typename > typename CanvasT, template< typename > typename... Drawers>
class vcl::RenderApp< WindowManagerT, CanvasT, Drawers >::CNV

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:

RenderApp::CNV::draw(static_cast<RenderApp*>(this));
static void draw(RenderApp *r)
The CanvasType is ready to draw, and asks the RenderApp to call the onDraw(uint()) function for every...
Definition render_app.h:584
The RenderApp class is a template class that combines a canvas, a window manager, and a set of drawer...
Definition render_app.h:67

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