Inviwo  0.9.10.1
Inviwo documentation
inviwo::NetworkEditor Class Reference

#include <networkeditor.h>

+ Inheritance diagram for inviwo::NetworkEditor:

Public Member Functions

 NetworkEditor (InviwoMainWindow *mainwindow)
 
QByteArray copy () const
 
QByteArray cut ()
 
void paste (QByteArray data)
 
void append (std::istream &is, const std::string &refPath="")
 
void selectAll ()
 
void deleteSelection ()
 
const std::string & getCurrentFilename () const
 
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)
 
bool isModified () const
 
void setModified (const bool modified=true)
 
void initiateConnection (ProcessorOutportGraphicsItem *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
 
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)
 
Observable< NetworkEditorObserver > & operator= (const Observable< NetworkEditorObserver > &other)
 
Observable< NetworkEditorObserver > & operator= (Observable< NetworkEditorObserver > &&other)
 
void addObserver (NetworkEditorObserver *observer)
 
void removeObserver (NetworkEditorObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ProcessorNetworkObserver
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 &)
 
- 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 ()
 

Protected Member Functions

virtual void mousePressEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *e) override
 
virtual void keyPressEvent (QKeyEvent *keyEvent) override
 
void progagateEventToSelecedProcessors (KeyboardEvent &pressKeyEvent)
 
virtual void keyReleaseEvent (QKeyEvent *keyEvent) override
 
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 Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet 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 files: