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);
101 int GetOrientation();
111 double GetTextAngleForOrientation(
int orientation);
148 virtual void GetBounds(
double bounds[4]);
154 float GetLabelWidth();
175 vtkSetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
176 vtkGetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
250 virtual void RebuildBuffers();
258 virtual bool IsDirty();
262 void ComputeMultipliers();
265 void ComputeBounds();
268 void CountLeafNodes();
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)
#define vtkGetMacro(name, type)
map scalar values into colors via a lookup table
Legend item to display vtkScalarsToColors.
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
dynamic, self-adjusting array of double
GLint GLint GLint GLint GLint x
Class for drawing 2D primitives to a graphical context.
GLfloat GLfloat GLfloat v2
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)
#define vtkGetVector2Macro(name, type)
vtkVector2f PositionVector
prune a subtree out of a vtkTree
#define vtkBooleanMacro(name, type)
virtual void PrintSelf(ostream &os, vtkIndent indent)
A rooted tree data structure.
GLsizei const GLchar ** string
#define vtkSetVector2Macro(name, type)
#define VTKVIEWSINFOVIS_EXPORT
#define vtkSetMacro(name, type)