Inviwo
0.9.10.1
Inviwo documentation
|
Base class for Qt processor widget using InviwoDockWidget. More...
#include <processordockwidgetqt.h>
Public Member Functions | |
ProcessorDockWidgetQt (Processor *p, const QString &title=QString("ProcessorDockWidgetQt"), QWidget *parent=nullptr) | |
virtual void | setVisible (bool visible) override |
virtual void | show () override |
virtual void | hide () override |
virtual void | setPosition (glm::ivec2 pos) override |
virtual void | setDimensions (ivec2 dimensions) override |
virtual void | onProcessorIdentifierChanged (Processor *processor, const std::string &oldIdentifier) override |
Public Member Functions inherited from inviwo::InviwoDockWidget | |
InviwoDockWidget (QString title, QWidget *parent) | |
InviwoDockWidget (QString title, QWidget *parent, QString objname) | |
virtual void | showEvent (QShowEvent *showEvent) override |
virtual void | keyPressEvent (QKeyEvent *keyEvent) override |
void | setSticky (bool sticky) |
bool | isSticky () const |
void | setContents (QWidget *widget) |
void | setContents (QLayout *layout) |
virtual void | saveState () |
virtual void | loadState () |
Public Member Functions inherited from inviwo::ProcessorWidget | |
ProcessorWidget (Processor *p) | |
virtual Processor * | getProcessor () const |
virtual bool | isVisible () const |
virtual glm::ivec2 | getDimensions () const |
virtual glm::ivec2 | getPosition () const |
Public Member Functions inherited from inviwo::ProcessorWidgetObservable | |
void | notifyObserversAboutShow (ProcessorWidget *p) |
void | notifyObserversAboutHide (ProcessorWidget *p) |
Public Member Functions inherited from inviwo::Observable< ProcessorWidgetObserver > | |
Observable (const Observable< ProcessorWidgetObserver > &other) | |
Observable (Observable< ProcessorWidgetObserver > &&other) | |
Observable< ProcessorWidgetObserver > & | operator= (const Observable< ProcessorWidgetObserver > &other) |
Observable< ProcessorWidgetObserver > & | operator= (Observable< ProcessorWidgetObserver > &&other) |
void | addObserver (ProcessorWidgetObserver *observer) |
void | removeObserver (ProcessorWidgetObserver *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
Public Member Functions inherited from inviwo::Observer | |
Observer (const Observer &other) | |
Observer (Observer &&other) | |
Observer & | operator= (Observer &&other) |
Observer & | operator= (const Observer &other) |
virtual | ~Observer () |
void | removeObservation (ObservableInterface *observable) |
void | removeObservations () |
Public Member Functions inherited from inviwo::ProcessorObserver | |
virtual void | onAboutPropertyChange (Property *) |
virtual void | onProcessorInvalidationBegin (Processor *) |
virtual void | onProcessorInvalidationEnd (Processor *) |
virtual void | onProcessorDisplayNameChanged (Processor *, const std::string &) |
virtual void | onProcessorPortAdded (Processor *, Port *) |
virtual void | onProcessorPortRemoved (Processor *, Port *) |
virtual void | onProcessorAboutToProcess (Processor *) |
virtual void | onProcessorFinishedProcess (Processor *) |
virtual void | onProcessorSourceChanged (Processor *) |
virtual void | onProcessorSinkChanged (Processor *) |
virtual void | onProcessorReadyChanged (Processor *) |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *) override |
virtual void | moveEvent (QMoveEvent *) override |
Protected Member Functions inherited from inviwo::InviwoDockWidget | |
virtual void | closeEvent (QCloseEvent *event) override |
Protected Member Functions inherited from inviwo::ProcessorWidget | |
virtual void | updateVisible (bool visible)=0 |
virtual void | updateDimensions (ivec2)=0 |
virtual void | updatePosition (ivec2)=0 |
virtual void | onProcessorWidgetPositionChange (ProcessorWidgetMetaData *) override |
virtual void | onProcessorWidgetDimensionChange (ProcessorWidgetMetaData *) override |
virtual void | onProcessorWidgetVisibilityChange (ProcessorWidgetMetaData *) override |
Protected Member Functions inherited from inviwo::Observable< ProcessorWidgetObserver > | |
void | forEachObserver (C callback) |
Protected Member Functions inherited from inviwo::ObservableInterface | |
void | addObservationHelper (Observer *observer) |
void | removeObservationHelper (Observer *observer) |
Protected Member Functions inherited from inviwo::Observer | |
void | addObservation (ObservableInterface *observable) |
Additional Inherited Members | |
Signals inherited from inviwo::InviwoDockWidget | |
void | stickyFlagChanged (bool sticky) |
Public Attributes inherited from inviwo::ProcessorObserver | |
friend | ProcessorObservable |
Protected Types inherited from inviwo::Observer | |
using | ObservableSet = std::unordered_set< ObservableInterface * > |
Protected Attributes inherited from inviwo::ProcessorWidget | |
Processor * | processor_ |
ProcessorWidgetMetaData * | metaData_ |
Protected Attributes inherited from inviwo::Observer | |
ObservableSet | observables_ |
Base class for Qt processor widget using InviwoDockWidget.
This Qt widget provides the basic functionality and setup for creating a processor widget based on InviwoDockWidget. The content of the dock widget is set by calling setContent().
|
overridevirtual |
Called after the identifier has been changed.
Reimplemented from inviwo::ProcessorObserver.
|
overridevirtual |
Show or hide window. Calls onProcessorWidgetVisibilityChange if state changed. Calls notifyObserversAboutShow if visible = true and then invalidates processor. Calls notifyObserversAboutHide if visible = false.
Reimplemented from inviwo::ProcessorWidget.