mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-22 04:18:51 +00:00
29 lines
662 B
C++
29 lines
662 B
C++
#ifndef GRAPHVIZLAYOUT_H
|
|
#define GRAPHVIZLAYOUT_H
|
|
|
|
#include "core/Cutter.h"
|
|
#include "GraphLayout.h"
|
|
|
|
class GraphvizLayout : public GraphLayout
|
|
{
|
|
public:
|
|
enum class LayoutType {
|
|
DotOrtho,
|
|
DotPolyline,
|
|
Sfdp,
|
|
Neato,
|
|
TwoPi,
|
|
Circo,
|
|
};
|
|
enum class Direction { TB, LR };
|
|
GraphvizLayout(LayoutType layoutType, Direction direction = Direction::TB);
|
|
virtual void CalculateLayout(std::unordered_map<ut64, GraphBlock> &blocks, ut64 entry,
|
|
int &width, int &height) const override;
|
|
|
|
private:
|
|
Direction direction;
|
|
LayoutType layoutType;
|
|
};
|
|
|
|
#endif // GRAPHVIZLAYOUT_H
|