graph_analysis
BaseGraphView.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_GUI_BASEGRAPHVIEW_HPP
2 #define GRAPH_ANALYSIS_GUI_BASEGRAPHVIEW_HPP
3 
4 #include "../GraphWidget.hpp"
5 
6 #include "../VertexItemBase.hpp"
7 #include "../EdgeItemBase.hpp"
8 
9 namespace graph_analysis
10 {
11 namespace gui
12 {
13 
14 class GraphLayout;
15 
42 class BaseGraphView : public GraphWidget
43 {
44  Q_OBJECT
45 
46 public:
52  BaseGraphView(graph_analysis::BaseGraph::Ptr graph, QWidget *parent = NULL);
53 
54  virtual ~BaseGraphView();
55 
56  QString getClassName() const;
57 
63  void populateCanvas();
64 
68  void applyLayout(const std::string& layoutName = "");
69 
70  virtual QStringList getSupportedLayouts() const;
71 };
72 
73 } // end namespace gui
74 } // end namespace graph_analysis
75 #endif
QString getClassName() const
Definition: BaseGraphView.cpp:47
displaying the raw hypergraph in all its glory
Definition: BaseGraphView.hpp:42
virtual QStringList getSupportedLayouts() const
Definition: BaseGraphView.cpp:85
Base-class for visual representations of a "Graph" in this framework.
Definition: GraphWidget.hpp:26
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
BaseGraphView(graph_analysis::BaseGraph::Ptr graph, QWidget *parent=NULL)
constructor
Definition: BaseGraphView.cpp:37
graph_analysis::BaseGraph::Ptr graph() const
getter method for retrieving the underlying base graph
Definition: GraphWidget.cpp:59
void populateCanvas()
Definition: BaseGraphView.cpp:52
void applyLayout(const std::string &layoutName="")
Definition: BaseGraphView.cpp:76
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
virtual ~BaseGraphView()
Definition: BaseGraphView.cpp:43