|
Visual Computing Library
devel
|
The AbstractViewerDrawer class is a base class for all viewer drawers implementations. More...
#include <vclib/render/drawers/abstract_viewer_drawer.h>

Public Member Functions | |
| AbstractViewerDrawer (uint width=1024, uint height=768) | |
| const DrawableObjectVector & | drawableObjectVector () const |
| void | fitScene () |
| void | onInit (uint) override |
| void | onKeyPress (Key::Enum key, const KeyModifiers &modifiers) override |
| uint | pushDrawableObject (const DrawableObject &obj) |
| uint | pushDrawableObject (DrawableObject &&obj) |
| void | setDrawableObjectVector (const std::shared_ptr< DrawableObjectVector > &v) |
Protected Member Functions | |
| uint & | id () |
| void | readDepthRequest (double x, double y, bool homogeneousNDC=true) |
| void | readIdRequest (double x, double y, std::function< void(uint)> idCallback) |
Protected Attributes | |
| std::shared_ptr< DrawableObjectVector > | mDrawList |
Private Types | |
| using | Base = ViewProjEventDrawer |
| using | DRA = ViewProjEventDrawer::DRA |
Private Member Functions | |
| auto * | derived () |
| const auto * | derived () const |
Private Attributes | |
| uint | mId = 0 |
| bool | mReadRequested = false |
The AbstractViewerDrawer class is a base class for all viewer drawers implementations.
It provides all the common functionalities of a viewer, but not the core rendering functionalities. It is meant to be subclassed by a concrete viewer drawer implementation.
|
protected |