38 #ifndef vtkDendrogramItem_h
39 #define vtkDendrogramItem_h
67 virtual void SetTree(
vtkTree *tree);
76 void CollapseToNumberOfLeafNodes(
unsigned int n);
84 void SetColorArray(
const char *arrayName);
91 vtkSetMacro(ExtendLeafNodes,
bool);
92 vtkGetMacro(ExtendLeafNodes,
bool);
93 vtkBooleanMacro(ExtendLeafNodes,
bool);
101 int GetOrientation();
111 double GetTextAngleForOrientation(
int orientation);
116 vtkSetMacro(DrawLabels,
bool);
117 vtkGetMacro(DrawLabels,
bool);
118 vtkBooleanMacro(DrawLabels,
bool);
123 vtkSetVector2Macro(Position,
float);
129 vtkGetVector2Macro(Position,
float);
136 vtkGetMacro(LeafSpacing,
double);
137 vtkSetMacro(LeafSpacing,
double);
148 virtual void GetBounds(
double bounds[4]);
154 float GetLabelWidth();
167 vtkGetMacro(LineWidth,
float);
168 vtkSetMacro(LineWidth,
float);
175 vtkSetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
176 vtkGetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
177 vtkBooleanMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
250 virtual void RebuildBuffers();
258 virtual bool IsDirty();
262 void ComputeMultipliers();
265 void ComputeBounds();
268 void CountLeafNodes();
274 vtkIdType GetClosestVertex(
double x,
double y);
292 vtkIdType GetClickedCollapsedSubTree(
double x,
double y);
303 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
310 void PositionColorLegend();
320 unsigned long DendrogramBuildTime;
329 int NumberOfLeafNodes;
336 double SceneBottomLeft[3];
337 double SceneTopRight[3];
341 bool ExtendLeafNodes;
343 bool DisplayNumberOfCollapsedLeafNodes;
344 bool LegendPositionSet;
vtkSmartPointer< vtkTree > LayoutTree
Wrapper around std::string to keep symbols short.
A 2D graphics item for rendering a tree as a dendrogram.
vtkSmartPointer< vtkTree > Tree
base class for items that are part of a vtkContextScene.
virtual bool Paint(vtkContext2D *painter)
map scalar values into colors via a lookup table
Legend item to display vtkScalarsToColors.
dynamic, self-adjusting array of double
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
a simple class to control print indentation
layout a graph in 2 or 3 dimensions
bool operator()(WeightedVertex &v1, WeightedVertex &v2)
vtkVector2f PositionVector
virtual bool Hit(const vtkContextMouseEvent &mouse)
prune a subtree out of a vtkTree
virtual void PrintSelf(ostream &os, vtkIndent indent)
A rooted tree data structure.
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
#define VTKVIEWSINFOVIS_EXPORT