Inviwo
0.9.10.1
Inviwo documentation
|
#include <networkeditor.h>
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 |
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) |
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 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 |
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) | |
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) | |
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 () |
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_ |
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.