Omnidome
Fulldome Mapping Software Toolkit
|
Mapping interface with one or several inputs and shader Holds inputs and shader. More...
#include <Interface.h>
Public Member Functions | |
Interface () | |
virtual | ~Interface () |
void | initialize () |
Initialized OpenGL shader. More... | |
virtual void | bind () |
Bind shaders and set uniforms. More... | |
void | bind (input::Interface const *, OutputMode, bool _grayscale) |
void | bind (input::Interface const *, float _transparency) |
void | release () |
Release shader. More... | |
bool | flipHorizontal () const |
Flip horizontally. More... | |
void | setFlipHorizontal (bool) |
Flip horizontally. More... | |
bool | flipVertical () const |
Flip vertically. More... | |
void | setFlipVertical (bool) |
Flip vertically. More... | |
virtual bool | isUVW () const |
Flag which tells if this mapping uses UVW texture coordinates (true by default) . More... | |
virtual QWidget * | widget ()=0 |
Return pointer to parameter widget. More... | |
void | draw () const |
Abstract method for visualing. More... | |
virtual void | draw (float _opacity) const |
Draw mapping with opacity. More... | |
virtual void | update () |
Update mapping visualizer. 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... | |
virtual QMatrix4x4 | matrix () const |
Return matrix of transform. More... | |
bool | isBoundToCanvas () const |
If true, mapping transform is attached to canvas transform Is true by default. More... | |
void | setBoundToCanvas (bool) |
Set whether mapping transform is attached to canvas transform. More... | |
virtual void | toPropertyMap (PropertyMap &) const |
Write mapping to stream. More... | |
virtual void | fromPropertyMap (PropertyMap const &) |
Read mapping from stream. 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 | ~TypeIdInterface () |
virtual Id | getTypeId () const =0 |
Returns type id of object. More... | |
virtual void | registerInFactory () const =0 |
Register the inherited class in factory. More... | |
Static Public Member Functions | |
static IdSet | getUVWMappings () |
Static function to retrieve all registered mappings that support UVW. More... | |
static IdSet | getPlanarMappings () |
Static function to retrieve all registered mappings that dont. More... | |
Protected Attributes | |
std::unique_ptr < QOpenGLShaderProgram > | shader_ |
Private Member Functions | |
virtual QString | vertexShaderSourceCode () const |
Returns vertex shader source code Is taken from file :/shaders/mapping/common.vert by default) More... | |
virtual QString | fragmentShaderSourceCode () const |
Returns fragment shader source code Is taken from file :/shaders/mapping/$MAPPING_TYPEID by default) More... | |
Private Attributes | |
AffineTransform | transform_ |
bool | boundToCanvas_ = true |
bool | flipHorizontal_ = false |
bool | flipVertical_ = false |
visual::Scene const * | scene_ = nullptr |
Additional Inherited Members | |
![]() | |
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... | |
Mapping interface with one or several inputs and shader Holds inputs and shader.
omni::mapping::Interface::Interface | ( | ) |
|
virtual |
Reimplemented from omni::visual::Interface.
|
virtual |
Bind shaders and set uniforms.
void omni::mapping::Interface::bind | ( | input::Interface const * | _input, |
OutputMode | _outputMode, | ||
bool | _grayscale | ||
) |
void omni::mapping::Interface::bind | ( | input::Interface const * | _input, |
float | _transparency | ||
) |
|
inlinevirtual |
Abstract method for visualing.
Implements omni::visual::Interface.
|
inlinevirtual |
bool omni::mapping::Interface::flipHorizontal | ( | ) | const |
Flip horizontally.
bool omni::mapping::Interface::flipVertical | ( | ) | const |
Flip vertically.
|
privatevirtual |
Returns fragment shader source code Is taken from file :/shaders/mapping/$MAPPING_TYPEID by default)
|
virtual |
Read mapping from stream.
|
static |
Static function to retrieve all registered mappings that dont.
|
static |
Static function to retrieve all registered mappings that support UVW.
void omni::mapping::Interface::initialize | ( | ) |
Initialized OpenGL shader.
Make shader
bool omni::mapping::Interface::isBoundToCanvas | ( | ) | const |
If true, mapping transform is attached to canvas transform Is true by default.
|
inlinevirtual |
|
virtual |
Return matrix of transform.
void omni::mapping::Interface::release | ( | ) |
Release shader.
visual::Scene const * omni::mapping::Interface::scene | ( | ) | const |
The scene this canvas belongs to.
void omni::mapping::Interface::setBoundToCanvas | ( | bool | _boundToCanvas | ) |
Set whether mapping transform is attached to canvas transform.
void omni::mapping::Interface::setFlipHorizontal | ( | bool | _flipHorizontal | ) |
Flip horizontally.
void omni::mapping::Interface::setFlipVertical | ( | bool | _flipVertical | ) |
Flip vertically.
void omni::mapping::Interface::setScene | ( | visual::Scene const * | ) |
Set the scene this canvas belongs to. Is set automatically when a canvas is added to a session.
void omni::mapping::Interface::setTransform | ( | AffineTransform const & | _transform | ) |
Set new affine transform.
|
virtual |
Write mapping to stream.
AffineTransform const & omni::mapping::Interface::transform | ( | ) | const |
Return const ref to affine transform.
AffineTransform & omni::mapping::Interface::transform | ( | ) |
Return ref to affine transform.
|
inlinevirtual |
|
privatevirtual |
Returns vertex shader source code Is taken from file :/shaders/mapping/common.vert by default)
|
pure virtual |
Return pointer to parameter widget.
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |