GraphLayout

class GraphLayout

Subclassed by GraphGridLayout, GraphHorizontalAdapter, GraphvizLayout

Public Types

using Graph = std::unordered_map<ut64, GraphBlock>

Public Functions

inline GraphLayout(const LayoutConfig &layout_config)
inline virtual ~GraphLayout()
virtual void CalculateLayout(Graph &blocks, ut64 entry, int &width, int &height) const = 0
inline virtual void setLayoutConfig(const LayoutConfig &config)
struct GraphBlock

Public Members

int x = 0
int y = 0
int width = 0
int height = 0
ut64 entry
std::vector<GraphEdge> edges
struct GraphEdge

Public Types

enum ArrowDirection

Values:

enumerator Down
enumerator Left
enumerator Up
enumerator Right
enumerator None

Public Functions

inline explicit GraphEdge(ut64 target)

Public Members

ut64 target
QPolygonF polyline
ArrowDirection arrow = ArrowDirection::Down
struct LayoutConfig

Public Members

int blockVerticalSpacing = 40
int blockHorizontalSpacing = 20
int edgeVerticalSpacing = 10
int edgeHorizontalSpacing = 10