Omnidome
Fulldome Mapping Software Toolkit
|
An enveloped canvas can enclose the viewer and can be projected from. More...
#include <Envelope.h>
Public Member Functions | |
Envelope () | |
~Envelope () | |
Box | bounds () const |
Returns copy of cached bounding box. More... | |
virtual void | draw () const |
Draw envelope. More... | |
![]() | |
Interface () | |
virtual | ~Interface () |
Virtual destructor. More... | |
ViewMode | viewMode () const |
Return current view mode. More... | |
void | setViewMode (ViewMode _viewMode) |
Set view mode. More... | |
void | drawWithViewMode () const |
Draws with culled front or back faces, depending on view mode. More... | |
virtual void | drawAux () const |
Draws auxiliary elements which are not used for mapping (e.g. More... | |
virtual QVector3D | center () const |
Spectator's center of canvas (center of bounding box by default) More... | |
virtual qreal | radius () const |
Canvas radius (is half of size by default) More... | |
AffineTransform const & | transform () const |
Return const ref to affine transform. More... | |
AffineTransform & | transform () |
Return ref to affine transform. More... | |
void | setTransform (AffineTransform const &_transform) |
Set new affine transform. More... | |
visual::Scene const * | scene () const |
The scene this canvas belongs to. More... | |
void | setScene (visual::Scene const *) |
Set the scene this canvas belongs to. Is set automatically when a canvas is added to a session. More... | |
virtual QMatrix4x4 | matrix () const |
Transformation matrix for canvas. More... | |
virtual ui::CanvasParameters * | widget ()=0 |
Returns pointer to new parameter widget. More... | |
virtual void | toPropertyMap (PropertyMap &) const |
Write mapping to stream. More... | |
virtual void | fromPropertyMap (PropertyMap const &) |
Read mapping from stream. More... | |
![]() | |
virtual | ~TypeIdInterface () |
virtual Id | getTypeId () const =0 |
Returns type id of object. More... | |
virtual void | registerInFactory () const =0 |
Register the inherited class in factory. More... | |
![]() | |
virtual void | update () |
Update geometry. More... | |
Protected Attributes | |
omni::Box | bounds_ |
Protected bounding box member. More... | |
![]() | |
bool | needsUpdate_ = true |
Additional Inherited Members | |
![]() | |
enum | ViewMode { ViewMode::INSIDE, ViewMode::OUTSIDE, ViewMode::BOTH } |
![]() | |
static void | vertex3 (QVector3D const &) |
glVertex3f from QVector3D More... | |
static void | visualLine (QVector3D const &_from, QVector3D const &_to) |
Draws a line. More... | |
static void | color (QColor _color, float _alpha=1.0) |
glColor4f from QColor More... | |
An enveloped canvas can enclose the viewer and can be projected from.
|
virtual |
Returns copy of cached bounding box.
Implements omni::canvas::Interface.
|
virtual |
|
protected |
Protected bounding box member.