|
graph_analysis
|
#include <GridLayout.hpp>


Public Types | |
| typedef shared_ptr< GridLayout > | Ptr |
| typedef std::string | ColumnLabel |
| typedef std::string | RowLabel |
| typedef std::vector< ColumnLabel > | ColumnLabels |
| typedef std::vector< RowLabel > | RowLabels |
Public Types inherited from graph_analysis::gui::GraphLayout | |
| typedef shared_ptr< GraphLayout > | Ptr |
General grid layouter which uses row and columns It requires two functions inorder to associate a vertex to a row / a column
| typedef std::string graph_analysis::gui::layouts::GridLayout::ColumnLabel |
| typedef std::vector<ColumnLabel> graph_analysis::gui::layouts::GridLayout::ColumnLabels |
| typedef shared_ptr<GridLayout> graph_analysis::gui::layouts::GridLayout::Ptr |
| typedef std::string graph_analysis::gui::layouts::GridLayout::RowLabel |
| typedef std::vector<RowLabel> graph_analysis::gui::layouts::GridLayout::RowLabels |
| graph_analysis::gui::layouts::GridLayout::GridLayout | ( | GetLabelFunction | getColumnLabelFunction = GetLabelFunction(), |
| GetLabelFunction | getRowLabelFunction = GetLabelFunction() |
||
| ) |
|
virtual |
|
inline |
Get the effective x position in the scene
|
inline |
|
inlinevirtual |
Implements graph_analysis::gui::GraphLayout.
| size_t graph_analysis::gui::layouts::GridLayout::getColumnIndex | ( | const ColumnLabel & | label | ) | const |
| GridLayout::ColumnLabel graph_analysis::gui::layouts::GridLayout::getColumnLabel | ( | const Vertex::Ptr & | vertex | ) | const |
|
inline |
|
inline |
|
inline |
|
virtual |
Get the coordinates of the layout
Implements graph_analysis::gui::GraphLayout.
| QPointF graph_analysis::gui::layouts::GridLayout::getPosition | ( | const Vertex::Ptr & | vertex | ) | const |
| size_t graph_analysis::gui::layouts::GridLayout::getRowIndex | ( | const RowLabel & | label | ) | const |
| GridLayout::RowLabel graph_analysis::gui::layouts::GridLayout::getRowLabel | ( | const Vertex::Ptr & | vertex | ) | const |
|
inline |
|
inlinevirtual |
|
inline |
|
virtual |
Implements graph_analysis::gui::GraphLayout.
| double graph_analysis::gui::layouts::GridLayout::getXPosition | ( | const ColumnLabel & | columnLabel | ) | const |
Get the x position for a given column
| double graph_analysis::gui::layouts::GridLayout::getYPosition | ( | const RowLabel & | rowLabel | ) | const |
Get the y position for a given row
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Update the current layout, e.g. after changes to the underlying graph
Implements graph_analysis::gui::GraphLayout.
1.8.13