Omnidome
Fulldome Mapping Software Toolkit
|
Abstract interface for a canvas A canvas represents the surface on which the projection is performed. It might be a dome or a planar surface. More...
#include <Interface.h>
Public Types | |
enum | ViewMode { ViewMode::INSIDE, ViewMode::OUTSIDE, ViewMode::BOTH } |
Public Member Functions | |
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 Box | bounds () const =0 |
Abstract method for returning bounding box of canvas. 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... | |
Public Member Functions inherited from omni::TypeIdInterface | |
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... | |
Public Member Functions inherited from omni::visual::Interface | |
virtual void | draw () const =0 |
Abstract method for visualing. More... | |
virtual void | update () |
Update geometry. More... | |
Protected Attributes | |
bool | needsUpdate_ = true |
Private Attributes | |
AffineTransform | transform_ |
ViewMode | viewMode_ = ViewMode::BOTH |
visual::Scene const * | scene_ = nullptr |
Additional Inherited Members | |
Static Protected Member Functions inherited from omni::visual::Interface | |
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... | |
Abstract interface for a canvas A canvas represents the surface on which the projection is performed. It might be a dome or a planar surface.
|
strong |
omni::canvas::Interface::Interface | ( | ) |
|
virtual |
|
pure virtual |
Abstract method for returning bounding box of canvas.
Implemented in omni::canvas::Dome, and omni::canvas::Envelope.
|
virtual |
Spectator's center of canvas (center of bounding box by default)
|
inlinevirtual |
Draws auxiliary elements which are not used for mapping (e.g.
Reimplemented in omni::canvas::Dome.
void omni::canvas::Interface::drawWithViewMode | ( | ) | const |
Draws with culled front or back faces, depending on view mode.
|
virtual |
|
virtual |
Transformation matrix for canvas.
|
virtual |
Canvas radius (is half of size by default)
Reimplemented in omni::canvas::Dome.
visual::Scene const * omni::canvas::Interface::scene | ( | ) | const |
The scene this canvas belongs to.
void omni::canvas::Interface::setScene | ( | visual::Scene const * | _scene | ) |
Set the scene this canvas belongs to. Is set automatically when a canvas is added to a session.
void omni::canvas::Interface::setTransform | ( | AffineTransform const & | _transform | ) |
Set new affine transform.
void omni::canvas::Interface::setViewMode | ( | ViewMode | _viewMode | ) |
Set view mode.
|
virtual |
AffineTransform const & omni::canvas::Interface::transform | ( | ) | const |
Return const ref to affine transform.
AffineTransform & omni::canvas::Interface::transform | ( | ) |
Return ref to affine transform.
Interface::ViewMode omni::canvas::Interface::viewMode | ( | ) | const |
Return current view mode.
|
pure virtual |
Returns pointer to new parameter widget.
|
protected |
|
private |
|
private |
|
private |