Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_GUI_VERTEX_ITEM_TYPE_MANAGER_HPP
2 #define GRAPH_ANALYSIS_GUI_VERTEX_ITEM_TYPE_MANAGER_HPP
5 #include <base-logging/Singleton.hpp>
6 #include "../Vertex.hpp"
9 #include <QPainterPath>
10 #include <QGraphicsItem>
11 #include <QGraphicsView>
61 QGraphicsItem* parent,
62 const std::string& type = std::string());
73 #endif // GRAPH_ANALYSIS_GUI_VERTEX_ITEM_TYPE_MANAGER_HPP
factory for VertexItem-s: clones different types of VertexItem instances (i.e. graphical vertexs)
Definition: VertexItemTypeManager.hpp:28
VertexItemBase * createItem(GraphWidget *graphWidget, const graph_analysis::Vertex::Ptr &vertex, QGraphicsItem *parent, const std::string &type=std::string())
clones a new graphical vertex of a specified type
Definition: VertexItemTypeManager.cpp:62
std::map< vertex::Type, VertexItemBase * > ClassVisualizationMap
Definition: VertexItemTypeManager.hpp:31
~VertexItemTypeManager()
destructor
Definition: VertexItemTypeManager.cpp:21
std::string Type
Definition: VertexItemTypeManager.hpp:17
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
QStringList getSupportedTypes() const
Definition: VertexItemTypeManager.cpp:76
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
VertexItemTypeManager()
constructor
Definition: VertexItemTypeManager.cpp:16
void registerVisualization(const vertex::Type &type, VertexItemBase *graphicsItem, bool throwOnAlreadyRegistered=false)
Definition: VertexItemTypeManager.cpp:30
graphical node representation interface
Definition: VertexItemBase.hpp:26