Inviwo 0.9.12-pre
Inviwo documentation
|
#include <networkeditor.h>
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 () |
ProcessorNetwork * | getNetwork () const |
InviwoMainWindow * | getMainWindow () const |
TextLabelOverlay & | getOverlay () 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 Image > | renderPortInspectorImage (Outport *port) |
ProcessorGraphicsItem * | getProcessorGraphicsItem (Processor *key) const |
ConnectionGraphicsItem * | getConnectionGraphicsItem (const PortConnection &key) const |
LinkConnectionGraphicsItem * | getLinkGraphicsItem (const ProcessorPair &key) const |
LinkConnectionGraphicsItem * | getLinkGraphicsItem (Processor *processor1, Processor *processor2) const |
ProcessorGraphicsItem * | getProcessorGraphicsItemAt (const QPointF pos) const |
ProcessorInportGraphicsItem * | getProcessorInportGraphicsItemAt (const QPointF pos) const |
ProcessorOutportGraphicsItem * | getProcessorOutportGraphicsItemAt (const QPointF pos) const |
ConnectionGraphicsItem * | getConnectionGraphicsItemAt (const QPointF pos) const |
LinkConnectionGraphicsItem * | getLinkGraphicsItemAt (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) | |
Observer & | operator= (Observer &&other) |
Observer & | operator= (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_ |
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.