GraphLayout

class GraphLayout

Subclassed by GraphGridLayout, GraphvizLayout

Public Types

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

Public Functions

GraphLayout(const LayoutConfig &layout_config)
virtual ~GraphLayout()
virtual void CalculateLayout(Graph &blocks, ut64 entry, int &width, int &height) const = 0
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:

Down
Left
Up
Right
None

Public Functions

GraphEdge(ut64 target)

Public Members

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

Public Members

int block_vertical_margin = 40
int block_horizontal_margin = 10