graph_analysis
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
graph_analysis::gui::EdgeItemTypeManager Class Reference

factory for EdgeItem-s: clones different types of EdgeItem instances (i.e. graphical edges) More...

#include <EdgeItemTypeManager.hpp>

Inheritance diagram for graph_analysis::gui::EdgeItemTypeManager:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::gui::EdgeItemTypeManager:
Collaboration graph
[legend]

Public Types

typedef std::map< edge::Type, EdgeItemBase * > ClassVisualizationMap
 

Public Member Functions

void registerVisualization (const edge::Type &type, EdgeItemBase *graphicsItem)
 
EdgeItemBase * createItem (GraphWidget *graphWidget, const graph_analysis::Edge::Ptr &edge, QGraphicsItem *parent, const std::string &type=std::string())
 clones a new graphical edge of a specified type More...
 
QStringList getSupportedTypes () const
 

Protected Member Functions

 EdgeItemTypeManager ()
 constructor More...
 

Friends

class base::Singleton< EdgeItemTypeManager >
 

Detailed Description

factory for EdgeItem-s: clones different types of EdgeItem instances (i.e. graphical edges)

Member Typedef Documentation

◆ ClassVisualizationMap

Constructor & Destructor Documentation

◆ EdgeItemTypeManager()

graph_analysis::gui::EdgeItemTypeManager::EdgeItemTypeManager ( )
protected

constructor

Member Function Documentation

◆ createItem()

EdgeItemBase * graph_analysis::gui::EdgeItemTypeManager::createItem ( GraphWidget *  graphWidget,
const graph_analysis::Edge::Ptr &  edge,
QGraphicsItem *  parent,
const std::string &  type = std::string() 
)

clones a new graphical edge of a specified type

Parameters
graphWidgetthe managing graph widget to assume parenthood of the to-be-created item
edgeunderlying conceptual edge
parentParent of this item
typeoptional type parameter
Returns
smart pointer to the newly created graphical edge instance

◆ getSupportedTypes()

QStringList graph_analysis::gui::EdgeItemTypeManager::getSupportedTypes ( ) const

◆ registerVisualization()

void graph_analysis::gui::EdgeItemTypeManager::registerVisualization ( const edge::Type &  type,
EdgeItemBase *  graphicsItem 
)

Friends And Related Function Documentation

◆ base::Singleton< EdgeItemTypeManager >

friend class base::Singleton< EdgeItemTypeManager >
friend

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