graph_analysis
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
graph_analysis::gui::layouts::GVLayout Class Reference

#include <GVLayout.hpp>

Inheritance diagram for graph_analysis::gui::layouts::GVLayout:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::gui::layouts::GVLayout:
Collaboration graph
[legend]

Public Member Functions

 GVLayout ()
 
virtual ~GVLayout ()
 
virtual std::string getClassName () const
 
void initialize (const graph_analysis::BaseGraph::Ptr &graph)
 
GraphWidget::VertexItemCoordinateCache getCoordinates (const graph_analysis::BaseGraph::Ptr &graph) const
 
virtual void update (const graph_analysis::BaseGraph::Ptr &graph, const std::string &layoutName, GraphWidget::VertexItemMap &vertexItemMap, QGraphicsScene *scene)
 
std::set< std::string > getSupportedLayouts () const
 
- Public Member Functions inherited from graph_analysis::gui::GraphLayout
 GraphLayout ()
 
virtual ~GraphLayout ()
 

Protected Member Functions

void applyLayout (const std::string &name)
 

Protected Attributes

graph_analysis::io::GVGraph * mpLayoutGraph
 
std::string mDefaultLayoutName
 
std::string mGraphName
 

Additional Inherited Members

- Public Types inherited from graph_analysis::gui::GraphLayout
typedef shared_ptr< GraphLayout > Ptr
 

Constructor & Destructor Documentation

◆ GVLayout()

graph_analysis::gui::layouts::GVLayout::GVLayout ( )

◆ ~GVLayout()

graph_analysis::gui::layouts::GVLayout::~GVLayout ( )
virtual

Member Function Documentation

◆ applyLayout()

void graph_analysis::gui::layouts::GVLayout::applyLayout ( const std::string &  name)
protected

◆ getClassName()

virtual std::string graph_analysis::gui::layouts::GVLayout::getClassName ( ) const
inlinevirtual

◆ getCoordinates()

GraphWidget::VertexItemCoordinateCache graph_analysis::gui::layouts::GVLayout::getCoordinates ( const graph_analysis::BaseGraph::Ptr &  graph) const
virtual

Get the coordinates of the layout

Implements graph_analysis::gui::GraphLayout.

◆ getSupportedLayouts()

std::set< std::string > graph_analysis::gui::layouts::GVLayout::getSupportedLayouts ( ) const
virtual

◆ initialize()

void graph_analysis::gui::layouts::GVLayout::initialize ( const graph_analysis::BaseGraph::Ptr &  graph)

◆ update()

void graph_analysis::gui::layouts::GVLayout::update ( const graph_analysis::BaseGraph::Ptr &  graph,
const std::string &  layoutName,
GraphWidget::VertexItemMap &  VertexItemMap,
QGraphicsScene *  scene 
)
virtual

Update the current layout, e.g. after changes to the underlying graph

Implements graph_analysis::gui::GraphLayout.

Member Data Documentation

◆ mDefaultLayoutName

std::string graph_analysis::gui::layouts::GVLayout::mDefaultLayoutName
protected

◆ mGraphName

std::string graph_analysis::gui::layouts::GVLayout::mGraphName
protected

◆ mpLayoutGraph

graph_analysis::io::GVGraph* graph_analysis::gui::layouts::GVLayout::mpLayoutGraph
protected

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