Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::NetworkEditor Class Reference

#include <networkeditor.h>

+ Inheritance diagram for inviwo::NetworkEditor:

Public Member Functions

 NetworkEditor (InviwoMainWindow *mainWindow)
 
std::unique_ptr< QMimeData > copy () const
 
std::unique_ptr< QMimeData > cut ()
 
void paste (const QMimeData &data)
 
void append (const std::filesystem::path &workspace)
 
void selectAll ()
 
void deleteSelection ()
 
ProcessorNetworkgetNetwork () const
 
InviwoMainWindowgetMainWindow () const
 
TextLabelOverlaygetOverlay () const
 
void addPropertyWidgets (Processor *processor)
 
void removeAndDeletePropertyWidgets (Processor *processor)
 
void removePropertyWidgets (Processor *processor)
 
void showProcessorHelp (const std::string &classIdentifier, bool raise=false)
 
void initiateConnection (ProcessorOutportGraphicsItem *item)
 
void initiateConnection (ProcessorInportGraphicsItem *item)
 
void releaseConnection (ProcessorInportGraphicsItem *item)
 
void initiateLink (ProcessorLinkGraphicsItem *item, QPointF pos)
 
std::shared_ptr< const ImagerenderPortInspectorImage (Outport *port)
 
ProcessorGraphicsItemgetProcessorGraphicsItem (Processor *key) const
 
ConnectionGraphicsItemgetConnectionGraphicsItem (const PortConnection &key) const
 
LinkConnectionGraphicsItemgetLinkGraphicsItem (const ProcessorPair &key) const
 
LinkConnectionGraphicsItemgetLinkGraphicsItem (Processor *processor1, Processor *processor2) const
 
ProcessorGraphicsItemgetProcessorGraphicsItemAt (const QPointF pos) const
 
ProcessorInportGraphicsItemgetProcessorInportGraphicsItemAt (const QPointF pos) const
 
ProcessorOutportGraphicsItemgetProcessorOutportGraphicsItemAt (const QPointF pos) const
 
ConnectionGraphicsItemgetConnectionGraphicsItemAt (const QPointF pos) const
 
LinkConnectionGraphicsItemgetLinkGraphicsItemAt (const QPointF pos) const
 
void setBackgroundVisible (bool visible)
 
bool isBackgroundVisible () const
 
void updateSceneSize ()
 
QRectF getProcessorsBoundingRect () const
 
void resetAllTimeMeasurements ()
 
void showLinkDialog (Processor *processor1, Processor *processor2)
 
- Public Member Functions inherited from inviwo::Observable< NetworkEditorObserver >
 Observable (const Observable< NetworkEditorObserver > &other)
 
 Observable (Observable< NetworkEditorObserver > &&other) noexcept
 
Observable< NetworkEditorObserver > & operator= (const Observable< NetworkEditorObserver > &other)
 
Observable< NetworkEditorObserver > & operator= (Observable< NetworkEditorObserver > &&other) noexcept
 
void addObserver (NetworkEditorObserver *observer)
 
void removeObserver (NetworkEditorObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ObservableInterface
- Public Member Functions inherited from inviwo::ProcessorNetworkObserver
virtual void onProcessorNetworkChange ()
 
virtual void onProcessorNetworkEvaluateRequest ()
 
virtual void onProcessorNetworkUnlocked ()
 
virtual void onProcessorNetworkWillAddProcessor (Processor *)
 
virtual void onProcessorNetworkDidRemoveProcessor (Processor *)
 
virtual void onProcessorNetworkWillAddConnection (const PortConnection &)
 
virtual void onProcessorNetworkDidRemoveConnection (const PortConnection &)
 
virtual void onProcessorNetworkWillAddLink (const PropertyLink &)
 
virtual void onProcessorNetworkWillRemoveLink (const PropertyLink &)
 
virtual void onProcessorBackgroundJobsChanged (Processor *, int, int)
 
- 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 snapToGrid (QPointF pos)
 
static std::string getMimeTag ()
 

Static Public Attributes

static constexpr std::string_view name {"NetworkEditor"}
 

Protected Member Functions

virtual void mousePressEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void keyPressEvent (QKeyEvent *keyEvent) override
 
void propagateEventToSelectedProcessors (KeyboardEvent &pressKeyEvent)
 
virtual void keyReleaseEvent (QKeyEvent *keyEvent) override
 
void deleteAndKeepConnections (ProcessorGraphicsItem *processor)
 
virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override
 
virtual void helpEvent (QGraphicsSceneHelpEvent *helpEvent) override
 
virtual void dragEnterEvent (QGraphicsSceneDragDropEvent *) override
 
virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *) override
 
virtual void dragLeaveEvent (QGraphicsSceneDragDropEvent *) override
 
- Protected Member Functions inherited from inviwo::Observable< NetworkEditorObserver >
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)
 

Friends

class ProcessorGraphicsItem
 
class ConnectionGraphicsItem
 

Additional Inherited Members

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

Detailed Description

The NetworkEditor supports interactive editing of a ProcessorNetwork. Processors can be added and removed, and their ports can be connected, while their properties can be linked.

  • interactive editing, but if necessary use access functions
  • graphical representation automatically managed
  • inspector networks

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