Inviwo  0.9.10.1
Inviwo documentation
inviwo::ProcessorDockWidgetQt Class Reference

Base class for Qt processor widget using InviwoDockWidget. More...

#include <processordockwidgetqt.h>

+ Inheritance diagram for inviwo::ProcessorDockWidgetQt:

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 ProcessorgetProcessor () 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)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (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
Processorprocessor_
 
ProcessorWidgetMetaDatametaData_
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Detailed Description

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().

See also
InviwoDockWidget ProcessorWidget

Member Function Documentation

◆ onProcessorIdentifierChanged()

void inviwo::ProcessorDockWidgetQt::onProcessorIdentifierChanged ( Processor ,
const std::string &   
)
overridevirtual

Called after the identifier has been changed.

Reimplemented from inviwo::ProcessorObserver.

◆ setVisible()

void inviwo::ProcessorDockWidgetQt::setVisible ( bool  visible)
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.


The documentation for this class was generated from the following files: