|
Omnidome
Fulldome Mapping Software Toolkit
|
Input List contains a list of inputs, accessible over an QString id Input List is the root input of a session's input tree. Input List is serializable via QDataStream. More...
#include <List.h>


Public Member Functions | |
| List (Interface const *=nullptr) | |
| void | registerInFactory () const |
| A list cannot be registered in factory. More... | |
| Id | getTypeId () const |
| Type id is "List". More... | |
| std::pair< QString, Input * > | addInput (Id const &_typeId) |
| Add new input with given type id. Returns nullptr if input with typeid does not exist Id is automatically generated. More... | |
| void | removeInput (QString const &_id) |
| Remove input and reset current index if necessary. More... | |
| bool | canHaveChildren () const |
| List can have children. More... | |
| QSize | size () const |
| List has no size. More... | |
| GLuint | textureId () const |
| List does not have a texture. More... | |
| QWidget * | widget () |
| Make new parameter widget. More... | |
| Input * | operator[] (QString const &_id) |
| Return input at index. More... | |
| Input const * | operator[] (QString const &_id) const |
| Returns input at index (const version) More... | |
| void | clear () |
| Delete all inputs. More... | |
| Input * | current () |
| Returns pointer to current input Returns nullptr if currentIdx_ == -1 or input list is empty. More... | |
| Input const * | current () const |
| Returns pointer to current input (const version) Returns nullptr if currentIdx_ == -1 or input list is empty. More... | |
| QString | currentId () const |
| Return ID of current input. More... | |
| void | setCurrentId (QString const &) |
| Set current input by ID. More... | |
| Controller * | controller () |
| Return pointer to controller. More... | |
| Controller const * | controller () const |
| Return pointer to controller (const version) More... | |
| void | fromPropertyMap (PropertyMap const &) |
| Deserialize from property map. More... | |
| void | toPropertyMap (PropertyMap &) const |
| Serialize to property map. More... | |
Public Member Functions inherited from omni::input::Interface | |
| Interface (Interface const *_parent=nullptr) | |
| virtual | ~Interface () |
| Virtual destructor. More... | |
| virtual void | update () |
| Update interface. More... | |
| size_t | numberOfChildren () const |
| int | width () const |
| Return width from size. More... | |
| int | height () const |
| Return height from size. More... | |
| virtual categoryset_type | categories () const |
| Input can have a fixed set of categories. More... | |
| QString | infoText () const |
| Optional info text. 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... | |
| 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... | |
| 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... | |
Public Member Functions inherited from omni::TypeIdInterface | |
| virtual | ~TypeIdInterface () |
Private Member Functions | |
| QString | generateId () const |
| Generate a new id for input. More... | |
Private Attributes | |
| QString | currentId_ |
Friends | |
| bool | operator== (List const &, List const &) |
| Test for equality. More... | |
Additional Inherited Members | |
Public Types inherited from omni::input::Interface | |
| 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 |
Input List contains a list of inputs, accessible over an QString id Input List is the root input of a session's input tree. Input List is serializable via QDataStream.
| omni::input::List::List | ( | Interface const * | _parent = nullptr | ) |
Add new input with given type id. Returns nullptr if input with typeid does not exist Id is automatically generated.
| _typeId | Type id of input to determine which kind of input is created |
|
inlinevirtual |
| Controller * omni::input::List::controller | ( | ) |
Return pointer to controller.
| Controller const * omni::input::List::controller | ( | ) | const |
Return pointer to controller (const version)
| Input * omni::input::List::current | ( | ) |
Returns pointer to current input Returns nullptr if currentIdx_ == -1 or input list is empty.
| Input const * omni::input::List::current | ( | ) | const |
Returns pointer to current input (const version) Returns nullptr if currentIdx_ == -1 or input list is empty.
| QString omni::input::List::currentId | ( | ) | const |
Return ID of current input.
|
virtual |
Deserialize from property map.
Reimplemented from omni::input::Interface.
|
private |
Generate a new id for input.
|
inlinevirtual |
| Input * omni::input::List::operator[] | ( | QString const & | _id | ) |
Return input at index.
| Input const * omni::input::List::operator[] | ( | QString const & | _id | ) | const |
Returns input at index (const version)
|
inlinevirtual |
|
virtual |
Remove input and reset current index if necessary.
Reimplemented from omni::input::Interface.
| void omni::input::List::setCurrentId | ( | QString const & | _id | ) |
Set current input by ID.
Deactivate current input
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Serialize to property map.
Reimplemented from omni::input::Interface.
|
inlinevirtual |
Test for equality.
|
private |
1.8.6