graph_analysis
GVLayout.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_GUI_GVLAYOUT_HPP
2 #define GRAPH_ANALYSIS_GUI_GVLAYOUT_HPP
3 
4 #include "../GraphLayout.hpp"
5 
6 namespace graph_analysis {
7 namespace io {
8  class GVGraph;
9 } // end namespace io
10 
11 namespace gui {
12 namespace layouts {
13 
15 {
16 public:
17  GVLayout();
18  virtual ~GVLayout();
19 
20  virtual std::string getClassName() const { return "graph_analysis::gui::layouts::GVLayout"; }
21 
22  void initialize(const graph_analysis::BaseGraph::Ptr& graph);
23 
25 
26  virtual void update(const graph_analysis::BaseGraph::Ptr& graph,
27  const std::string& layoutName,
28  GraphWidget::VertexItemMap& vertexItemMap,
29  QGraphicsScene* scene);
30 
31  std::set<std::string> getSupportedLayouts() const;
32 
33 protected:
34  void applyLayout(const std::string& name);
35 
37  std::string mDefaultLayoutName;
38  std::string mGraphName;
39 };
40 
41 } // end namespace layouts
42 } // end namespace gui
43 } // end namespace graph_analysis
44 #endif // GRAPH_ANALYSIS_GUI_GVLAYOUT_HPP
std::string mGraphName
Definition: GVLayout.hpp:38
Definition: GVLayout.hpp:14
std::string mDefaultLayoutName
Definition: GVLayout.hpp:37
Definition: GraphLayout.hpp:10
std::map< const graph_analysis::Vertex::Ptr, QPointF > VertexItemCoordinateCache
Definition: GraphWidget.hpp:90
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
std::map< const graph_analysis::Vertex::Ptr, VertexItemBase * > VertexItemMap
Definition: GraphWidget.hpp:51
virtual std::string getClassName() const
Definition: GVLayout.hpp:20
graph_analysis::io::GVGraph * mpLayoutGraph
Definition: GVLayout.hpp:36
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
An object containing a libgraph graph and its associated nodes and edges.
Definition: GVGraph.hpp:119