Inviwo  0.9.10.1
Inviwo documentation
inviwo::ProcessorGraphicsItem Class Reference
+ Inheritance diagram for inviwo::ProcessorGraphicsItem:

Public Types

enum  { Type = UserType + ProcessorGraphicsType }
 
enum  PortType { In, Out }
 

Public Member Functions

 ProcessorGraphicsItem (Processor *processor)
 
ProcessorgetProcessor () const
 
std::string getIdentifier () const
 
ProcessorInportGraphicsItemgetInportGraphicsItem (Inport *port) const
 
ProcessorOutportGraphicsItemgetOutportGraphicsItem (Outport *port) const
 
ProcessorLinkGraphicsItemgetLinkGraphicsItem () const
 
ProcessorStatusGraphicsItemgetStatusItem () const
 
void editDisplayName ()
 
void editIdentifier ()
 
bool isEditingProcessorName ()
 
void snapToGrid ()
 
virtual int type () const override
 
virtual void showToolTip (QGraphicsSceneHelpEvent *event) override
 
void setHighlight (bool val)
 
QPointF portPosition (PortType type, size_t index)
 
- Public Member Functions inherited from inviwo::EditorGraphicsItem
 EditorGraphicsItem (QGraphicsItem *parent)
 
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 onProcessorAboutToProcess (Processor *)
 
virtual void onProcessorFinishedProcess (Processor *)
 
virtual void onProcessorSourceChanged (Processor *)
 
virtual void onProcessorSinkChanged (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 ()
 

Static Public Member Functions

static QPointF portOffset (PortType type, size_t index)
 

Static Public Attributes

static const QSizeF size_ = {150.f, 50.f}
 

Protected Member Functions

void paint (QPainter *p, const QStyleOptionGraphicsItem *options, QWidget *widget) override
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
void updateWidgets ()
 
void addInport (Inport *port)
 
void addOutport (Outport *port)
 
void removeInport (Inport *port)
 
void removeOutport (Outport *port)
 
void onLabelGraphicsItemChanged (LabelGraphicsItem *item) override
 
void onLabelGraphicsItemEdited (LabelGraphicsItem *item) override
 
virtual void onProcessorIdentifierChanged (Processor *, const std::string &) override
 
virtual void onProcessorDisplayNameChanged (Processor *, const std::string &) override
 
virtual void onProcessorReadyChanged (Processor *) override
 
virtual void onProcessorPortAdded (Processor *, Port *) override
 
virtual void onProcessorPortRemoved (Processor *, Port *) override
 
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)
 

Additional Inherited Members

- 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::Observer
ObservableSet observables_
 

Member Function Documentation

◆ onLabelGraphicsItemChanged()

void inviwo::ProcessorGraphicsItem::onLabelGraphicsItemChanged ( LabelGraphicsItem )
overrideprotectedvirtual

This method will be called when observed object changes. Override it to add behavior.

Reimplemented from inviwo::LabelGraphicsItemObserver.

◆ onProcessorDisplayNameChanged()

void inviwo::ProcessorGraphicsItem::onProcessorDisplayNameChanged ( Processor ,
const std::string &   
)
overrideprotectedvirtual

Called after the displayName has been changed.

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorIdentifierChanged()

void inviwo::ProcessorGraphicsItem::onProcessorIdentifierChanged ( Processor ,
const std::string &   
)
overrideprotectedvirtual

Called after the identifier has been changed.

Reimplemented from inviwo::ProcessorObserver.

◆ onProcessorReadyChanged()

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

Called after the processor has changed its ready state. The processor argument is the modified processor

Reimplemented from inviwo::ProcessorObserver.


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