Omnidome
Fulldome Mapping Software Toolkit
|
Abstract class for test images that are generated with a shader. More...
#include <TestImage.h>
Public Member Functions | |
TestImage (Interface const *_parent=nullptr) | |
virtual | ~TestImage () |
virtual void | update () |
Update framebuffer image. More... | |
virtual void | destroy () |
QPointF | rulerPos () const |
Return ruler position. More... | |
void | setRulerPos (QPointF const &) |
Set ruler position. More... | |
virtual void | toPropertyMap (PropertyMap &) const |
Serialize to stream. More... | |
virtual void | fromPropertyMap (PropertyMap const &) |
Deserialize from stream. More... | |
virtual categoryset_type | categories () const |
Input can have a fixed set of categories. More... | |
![]() | |
Framebuffer (input::Interface const *=nullptr) | |
virtual | ~Framebuffer () |
virtual QSize | size () const |
An input must return width and height information. More... | |
virtual void | setSize (QSize const &) |
GLuint | textureId () const |
An input must return an OpenGL texture ID. More... | |
![]() | |
Interface (Interface const *_parent=nullptr) | |
virtual | ~Interface () |
Virtual destructor. More... | |
size_t | numberOfChildren () const |
int | width () const |
Return width from size. More... | |
int | height () const |
Return height from size. More... | |
QString | infoText () const |
Optional info text. More... | |
virtual QWidget * | widget () |
Make new parameter widget. More... | |
virtual QWidget * | controlWidget () |
Make new large control widget for live mode. More... | |
virtual bool | canAdd () |
Returns true if this input can be added E.g., an input can be added after an initial settings dialog was approved or it has valid settings. More... | |
virtual bool | canHaveChildren () const |
int | setUpdateCallback (callback_type _updatedCallback) |
Insert a new callback when input has updated and returns its unique id. More... | |
callback_type | updatedCallback (int _id) |
void | triggerUpdateCallbacks () const |
void | removeUpdateCallback (int _id) |
Interface * | addInput (QString const &_id, Id const &_typeId) |
Add new input with given type id. Returns nullptr if input with typeid does not exist. More... | |
Interface * | addInput (QString const &_id, Interface *_i) |
Input with id and return pointer to input when successfully added. More... | |
QString | getId (Interface const *) const |
Get id of child interface. More... | |
virtual void | removeInput (QString const &_id) |
Remove input with id. More... | |
Interface * | getInput (QString const &_id) |
Return pointer of input with id, nullptr if input does not exist. More... | |
Interface const * | getInput (QString const &_id) const |
Return pointer of input with id, nullptr if input does not exist. More... | |
container_type const & | children () const |
Return children. More... | |
Interface const * | parent () const |
Return parent interface (const version) More... | |
QString | path () const |
Return absolute path of interface. More... | |
void | setParent (Interface *) |
Set new parent. More... | |
inputlist_type | getAllInputs () const |
Returns a list of input maintained by controller, except this one. 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 Member Functions | |
virtual void | shaderUniformHandler () |
Virtual method to handle additional shader uniforms in derived classes. More... | |
![]() | |
QOpenGLFramebufferObject * | framebuffer () |
QOpenGLFramebufferObject const * | framebuffer () const |
void | setupFramebuffer (QSize const &_size) |
void | setupFramebuffer () |
Protected Attributes | |
ContextBoundPtr < QOpenGLShaderProgram > | shader_ |
Private Member Functions | |
virtual QString | fragmentShaderSource () const =0 |
String representing the fragment shader source. More... | |
virtual QString | vertexShaderSource () const =0 |
String representing the vertex shader source. More... | |
Private Attributes | |
QPointF | rulerPos_ |
Additional Inherited Members | |
![]() | |
typedef Interface | interface_type |
typedef std::vector< Interface const * > | inputlist_type |
typedef std::map< QString, std::unique_ptr< Interface > > | container_type |
typedef std::function< void()> | callback_type |
typedef std::set< QString > | categoryset_type |
Abstract class for test images that are generated with a shader.
omni::input::TestImage::TestImage | ( | Interface const * | _parent = nullptr | ) |
|
inlinevirtual |
Input can have a fixed set of categories.
Reimplemented from omni::input::Interface.
|
virtual |
Reimplemented from omni::input::Framebuffer.
|
privatepure virtual |
String representing the fragment shader source.
|
virtual |
Deserialize from stream.
Reimplemented from omni::input::Framebuffer.
QPointF omni::input::TestImage::rulerPos | ( | ) | const |
Return ruler position.
void omni::input::TestImage::setRulerPos | ( | QPointF const & | _rulerPos | ) |
Set ruler position.
|
protectedvirtual |
Virtual method to handle additional shader uniforms in derived classes.
|
virtual |
Serialize to stream.
Reimplemented from omni::input::Framebuffer.
|
virtual |
Update framebuffer image.
Reimplemented from omni::input::Interface.
|
privatepure virtual |
String representing the vertex shader source.
|
private |
|
protected |