Inviwo  0.9.10.1
Inviwo documentation
inviwo::ProcessorWidget Class Referenceabstract

#include <processorwidget.h>

+ Inheritance diagram for inviwo::ProcessorWidget:

Public Member Functions

 ProcessorWidget (Processor *p)
 
virtual ProcessorgetProcessor () const
 
virtual bool isVisible () const
 
virtual void setVisible (bool visible)
 
virtual void show ()
 
virtual void hide ()
 
virtual glm::ivec2 getDimensions () const
 
virtual void setDimensions (ivec2)
 
virtual glm::ivec2 getPosition () const
 
virtual void setPosition (ivec2)
 
- 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 ()
 

Protected Member Functions

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)
 

Protected Attributes

Processorprocessor_
 
ProcessorWidgetMetaDatametaData_
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Additional Inherited Members

- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 

Detailed Description

Base class for widgets connected to a Processor

Member Function Documentation

◆ setVisible()

void inviwo::ProcessorWidget::setVisible ( bool  visible)
virtual

Show or hide window. Calls onProcessorWidgetVisibilityChange if state changed. Calls notifyObserversAboutShow if visible = true and then invalidates processor. Calls notifyObserversAboutHide if visible = false.

Reimplemented in inviwo::ProcessorDockWidgetQt, inviwo::CanvasProcessorWidgetQt, inviwo::ProcessorWidgetQt, and inviwo::CanvasProcessorWidgetGLFW.


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