2026-04-06 00:20:51 -05:00

33 lines
818 B
C++

#ifndef ADAPTIXCLIENT_LAYOUTTREETOP_H
#define ADAPTIXCLIENT_LAYOUTTREETOP_H
#include <UI/Graph/GraphItem.h>
class LayoutTreeTop
{
public:
static double X_SEP;
static double Y_SEP;
static void draw( GraphItem* item );
static void NullTree( GraphItem* item );
static void ReingoldTilford( GraphItem* item );
static void DFS( GraphItem* item, double m, double depth );
static void apportion(GraphItem* item, GraphItem*& defaultAncestor);
static GraphItem* nextRight(GraphItem* v);
static GraphItem* nextLeft(GraphItem* v);
static void moveSubtree( GraphItem* wm, GraphItem* wp, double shift);
static GraphItem* ancestor(const GraphItem* vim, const GraphItem* v, GraphItem*& defaultAncestor );
static void executeShifts( GraphItem* item );
};
#endif