Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ProcessorGraphicsItem Class Reference
+ Inheritance diagram for inviwo::ProcessorGraphicsItem:

Public Types

enum  { Type = static_cast<int>(UserType) + static_cast<int>(ProcessorGraphicsType) }
 
enum class  PortType { In , Out }
 

Public Member Functions

 ProcessorGraphicsItem (Processor *processor)
 
 ProcessorGraphicsItem (const ProcessorGraphicsItem &)=delete
 
 ProcessorGraphicsItem (ProcessorGraphicsItem &&)=delete
 
ProcessorGraphicsItemoperator= (const ProcessorGraphicsItem &)=delete
 
ProcessorGraphicsItemoperator= (ProcessorGraphicsItem &&)=delete
 
ProcessorgetProcessor () const
 
ProcessorInportGraphicsItemgetInportGraphicsItem (Inport *port) const
 
ProcessorOutportGraphicsItemgetOutportGraphicsItem (Outport *port) const
 
ProcessorLinkGraphicsItemgetLinkGraphicsItem () const
 
ProcessorStatusGraphicsItemgetStatusItem () const
 
void setErrorText (std::string_view)
 
void snapToGrid ()
 
virtual int type () const override
 
virtual void showToolTip (QGraphicsSceneHelpEvent *event) override
 
void setHighlight (bool val)
 
QPointF portPosition (PortType type, size_t index)
 
void adoptWidget (std::unique_ptr< QWidget > widget)
 
- Public Member Functions inherited from inviwo::EditorGraphicsItem
 EditorGraphicsItem (QGraphicsItem *parent)
 
 EditorGraphicsItem (const EditorGraphicsItem &)=delete
 
 EditorGraphicsItem (EditorGraphicsItem &&)=delete
 
EditorGraphicsItemoperator= (const EditorGraphicsItem &)=delete
 
EditorGraphicsItemoperator= (EditorGraphicsItem &&)=delete
 
QPoint mapPosToSceen (QPointF pos) const
 
void showPortInfo (QGraphicsSceneHelpEvent *e, Port *port) const
 
- Public Member Functions inherited from inviwo::ProcessorObserver
virtual void onAboutPropertyChange (Property *)
 
virtual void onProcessorInvalidationBegin (Processor *)
 
virtual void onProcessorInvalidationEnd (Processor *)
 
virtual void onProcessorSourceChanged (Processor *)
 
virtual void onProcessorSinkChanged (Processor *)
 
virtual void onProcessorActiveConnectionsChanged (Processor *)
 
- 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::ProcessorMetaDataObserver

Static Public Member Functions

static QPointF portOffset (PortType type, size_t index)
 

Static Public Attributes

static constexpr QSizeF size_ {150.0, 50.0}
 

Protected Types

enum class  FontType { Name , Identifier , Tag , Count }
 

Protected Member Functions

void paint (QPainter *p, const QStyleOptionGraphicsItem *options, QWidget *widget) override
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *e) override
 
void updateWidgets ()
 
void addInport (Inport *port)
 
void addOutport (Outport *port)
 
void removeInport (Inport *port)
 
void removeOutport (Outport *port)
 
virtual void onProcessorReadyChanged (Processor *) override
 
virtual void onProcessorPortAdded (Processor *, Port *) override
 
virtual void onProcessorPortRemoved (Processor *, Port *) override
 
virtual void onProcessorAboutToProcess (Processor *) override
 
virtual void onProcessorFinishedProcess (Processor *) override
 
virtual void onProcessorStartBackgroundWork (Processor *, size_t jobs) override
 Called when a processor initiates a background computation.
 
virtual void onProcessorFinishBackgroundWork (Processor *, size_t jobs) override
 Called when a processor finishes a background computation.
 
virtual void onProcessorMetaDataPositionChange () override
 
virtual void onProcessorMetaDataVisibilityChange () override
 
virtual void onProcessorMetaDataSelectionChange () override
 
- Protected Member Functions inherited from inviwo::EditorGraphicsItem
void showToolTipHelper (QGraphicsSceneHelpEvent *event, QString string) const
 
NetworkEditorgetNetworkEditor () const
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Static Protected Member Functions

static const QFont & getFont (FontType type)
 
static QString elide (std::string_view text, double width, FontType type)
 

Properties

QPointF pos
 

Additional Inherited Members

- Public Attributes inherited from inviwo::ProcessorObserver
friend ProcessorObservable
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Member Function Documentation

◆ onProcessorAboutToProcess()

virtual void inviwo::ProcessorGraphicsItem::onProcessorAboutToProcess ( Processor * )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorFinishBackgroundWork()

virtual void inviwo::ProcessorGraphicsItem::onProcessorFinishBackgroundWork ( Processor * ,
size_t  )
inlineoverrideprotectedvirtual

Called when a processor finishes a background computation.

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorFinishedProcess()

virtual void inviwo::ProcessorGraphicsItem::onProcessorFinishedProcess ( Processor * )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorMetaDataPositionChange()

virtual void inviwo::ProcessorGraphicsItem::onProcessorMetaDataPositionChange ( )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorMetaDataObserver.

◆ onProcessorMetaDataSelectionChange()

virtual void inviwo::ProcessorGraphicsItem::onProcessorMetaDataSelectionChange ( )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorMetaDataObserver.

◆ onProcessorMetaDataVisibilityChange()

virtual void inviwo::ProcessorGraphicsItem::onProcessorMetaDataVisibilityChange ( )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorMetaDataObserver.

◆ onProcessorPortAdded()

virtual void inviwo::ProcessorGraphicsItem::onProcessorPortAdded ( Processor * ,
Port *  )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorPortRemoved()

virtual void inviwo::ProcessorGraphicsItem::onProcessorPortRemoved ( Processor * ,
Port *  )
overrideprotectedvirtual

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorReadyChanged()

virtual void inviwo::ProcessorGraphicsItem::onProcessorReadyChanged ( Processor * )
overrideprotectedvirtual

Called after the processor has changed its ready state.

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorStartBackgroundWork()

virtual void inviwo::ProcessorGraphicsItem::onProcessorStartBackgroundWork ( Processor * ,
size_t  )
inlineoverrideprotectedvirtual

Called when a processor initiates a background computation.

Reimplemented from inviwo::ProcessorObserver.

◆ showToolTip()

virtual void inviwo::ProcessorGraphicsItem::showToolTip ( QGraphicsSceneHelpEvent * event)
overridevirtual

Reimplemented from inviwo::EditorGraphicsItem.


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