|
graph_analysis
|
factory for VertexItem-s: clones different types of VertexItem instances (i.e. graphical vertexs) More...
#include <VertexItemTypeManager.hpp>


Public Types | |
| typedef std::map< vertex::Type, VertexItemBase * > | ClassVisualizationMap |
Public Member Functions | |
| void | registerVisualization (const vertex::Type &type, VertexItemBase *graphicsItem, bool throwOnAlreadyRegistered=false) |
| 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 More... | |
| QStringList | getSupportedTypes () const |
Protected Member Functions | |
| VertexItemTypeManager () | |
| constructor More... | |
| ~VertexItemTypeManager () | |
| destructor More... | |
Friends | |
| class | base::Singleton< VertexItemTypeManager > |
factory for VertexItem-s: clones different types of VertexItem instances (i.e. graphical vertexs)
| typedef std::map<vertex::Type, VertexItemBase*> graph_analysis::gui::VertexItemTypeManager::ClassVisualizationMap |
|
protected |
constructor
|
protected |
destructor
| VertexItemBase * graph_analysis::gui::VertexItemTypeManager::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
| graphWidget | the managing graph widget to assume parenthood of the to-be-created item |
| vertex | underlying conceptual graph vertex |
| parent | Parent of this item |
| type | optional preferred type |
| QStringList graph_analysis::gui::VertexItemTypeManager::getSupportedTypes | ( | ) | const |
Get list of supported visualizations
| void graph_analysis::gui::VertexItemTypeManager::registerVisualization | ( | const vertex::Type & | type, |
| VertexItemBase * | graphicsItem, | ||
| bool | throwOnAlreadyRegistered = false |
||
| ) |
|
friend |
1.8.17