SquarifiedTreeMap.cpp3tulip
Usage
#include <cmath>
#include <float.h>
#include <algorithm>
#include <tulip/TreeTest.h>
#include 'tulip/RectangleArea.h'
#include 'tulip/Border.h'
#include 'SquarifiedTreeMap.h'
#include 'TreeTools.h'
Functions
LAYOUTPLUGINOFGROUP (SquarifiedTreeMap,'Squarified Tree Map','Julien Testut, Antony Durand, Pascal Ollier, ''Yashvin Nababsing, Sebastien Leclerc, ''Thibault Ruchon, Eric Dauchier','03/11/2004','ok','1.0','Tree')
float computeAspectRatio (float area, float childrenArea, float widthArea)
float computeAspectRatio (float metric, float rowMetric, const RectangleArea &rectArea)
void setRectangleOrientation (RectangleArea &rectArea)
static bool isGreater (const pairNodeF &p1, const pairNodeF &p2)
void computeNewSpace (RectangleArea *rectArea, float borderSize)
Variables
const float SEPARATION_Z = 150
const float DEFAULT_RATIO = 1.
const int DEFAULT_WIDTH = 1024
const int DEFAULT_HEIGHT = 1024
const int TEXTUREDGLYPHID = 101