Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine  1.5.28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow Class Reference

Window widget to edit a DataflowGraph. This class wraps DataflowGraph, GraphModel, QtNodes::BasicGraphicsScene and QtNodes::GraphicsView in a main window with several services : More...

#include <Dataflow/QtGui/GraphEditor/GraphEditorWindow.hpp>

+ Collaboration diagram for Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow:

Signals

void needUpdate ()
 

Public Member Functions

 GraphEditorWindow (std::shared_ptr< DataflowGraph > graph=nullptr)
 
void loadFile (const QString &fileName)
 
std::shared_ptr< GraphModelgraph_model ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 

Detailed Description

Window widget to edit a DataflowGraph. This class wraps DataflowGraph, GraphModel, QtNodes::BasicGraphicsScene and QtNodes::GraphicsView in a main window with several services :

  • The window can be used as a standalone editor if no parameter is given to the constructor.
  • The window can be used to edit an existing graph by giving the graph to the constructor.

connect the client to the needUpdate() signal to be notified of a change in the edited graph.

Definition at line 30 of file GraphEditorWindow.hpp.

Constructor & Destructor Documentation

◆ GraphEditorWindow()

Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow::GraphEditorWindow ( std::shared_ptr< DataflowGraph > graph = nullptr)
explicit

Definition at line 30 of file GraphEditorWindow.cpp.

◆ ~GraphEditorWindow()

Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow::~GraphEditorWindow ( )

Definition at line 28 of file GraphEditorWindow.cpp.

Member Function Documentation

◆ closeEvent()

void Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow::closeEvent ( QCloseEvent * event)
overrideprotected

Definition at line 206 of file GraphEditorWindow.cpp.

◆ graph_model()

std::shared_ptr< GraphModel > Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow::graph_model ( )
inline

Definition at line 38 of file GraphEditorWindow.hpp.

◆ loadFile()

void Ra::Dataflow::QtGui::GraphEditor::GraphEditorWindow::loadFile ( const QString & fileName)

Definition at line 356 of file GraphEditorWindow.cpp.


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