Omnidome
Fulldome Mapping Software Toolkit
|
A basic dome canvas width a radius/diameter and offset. More...
#include <Dome.h>
Public Member Functions | |
Dome () | |
virtual | ~Dome () |
qreal | radius () const |
Return radius (10.0m by default) More... | |
void | setRadius (qreal) |
Set radius in meter. More... | |
qreal | diameter () const |
Return diameter in meter. More... | |
void | setDiameter (qreal) |
Set diameter in meter. More... | |
Box | bounds () const |
Return internally cached bounding box. More... | |
virtual void | draw () const |
Draw dome sphere. More... | |
virtual void | drawAux () const |
Draw auxiliary elements. More... | |
virtual void | update () |
Update dome mesh. More... | |
virtual void | toPropertyMap (PropertyMap &) const |
Serialize to stream. More... | |
virtual void | fromPropertyMap (PropertyMap const &) |
Deserialize from stream. More... | |
![]() | |
Envelope () | |
~Envelope () | |
Box | bounds () const |
Returns copy of cached bounding box. 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 QVector3D | center () const |
Spectator's center of canvas (center of bounding box 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 | ~TypeIdInterface () |
virtual Id | getTypeId () const =0 |
Returns type id of object. More... | |
virtual void | registerInFactory () const =0 |
Register the inherited class in factory. More... | |
Protected Attributes | |
visual::Sphere | sphere_ |
Sphere visualizer. More... | |
![]() | |
omni::Box | bounds_ |
Protected bounding box member. More... | |
![]() | |
bool | needsUpdate_ = true |
Private Attributes | |
QVector3D | center_ |
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... | |
A basic dome canvas width a radius/diameter and offset.
omni::canvas::Dome::Dome | ( | ) |
|
virtual |
Return internally cached bounding box.
Implements omni::canvas::Interface.
qreal omni::canvas::Dome::diameter | ( | ) | const |
Return diameter in meter.
|
virtual |
Draw dome sphere.
Reimplemented from omni::canvas::Envelope.
|
virtual |
|
virtual |
Deserialize from stream.
Reimplemented from omni::canvas::Interface.
|
virtual |
void omni::canvas::Dome::setDiameter | ( | qreal | _diameter | ) |
Set diameter in meter.
void omni::canvas::Dome::setRadius | ( | qreal | _radius | ) |
Set radius in meter.
|
virtual |
Serialize to stream.
Reimplemented from omni::canvas::Interface.
|
virtual |
Update dome mesh.
Reimplemented from omni::visual::Interface.
|
private |
|
protected |
Sphere visualizer.