39 #ifndef vtkDendrogramItem_h
40 #define vtkDendrogramItem_h
42 #include "vtkViewsInfovisModule.h"
69 virtual void SetTree(
vtkTree *tree);
82 void CollapseToNumberOfLeafNodes(
unsigned int n);
94 void SetColorArray(
const char *arrayName);
104 vtkGetMacro(ExtendLeafNodes,
bool);
117 int GetOrientation();
131 double GetTextAngleForOrientation(
int orientation);
139 vtkGetMacro(DrawLabels,
bool);
147 vtkSetVector2Macro(Position,
float);
155 vtkGetVector2Macro(Position,
float);
164 vtkGetMacro(LeafSpacing,
double);
180 virtual void GetBounds(
double bounds[4]);
190 float GetLabelWidth();
208 vtkGetMacro(LineWidth,
float);
217 vtkSetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
218 vtkGetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
297 virtual void RebuildBuffers();
308 virtual bool IsDirty();
314 void ComputeMultipliers();
319 void ComputeBounds();
324 void CountLeafNodes();
334 vtkIdType GetClosestVertex(
double x,
double y);
362 vtkIdType GetClickedCollapsedSubTree(
double x,
double y);
377 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
386 void PositionColorLegend();
405 int NumberOfLeafNodes;
412 double SceneBottomLeft[3];
413 double SceneTopRight[3];
417 bool ExtendLeafNodes;
419 bool DisplayNumberOfCollapsedLeafNodes;
420 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)
Paint event for the item, called whenever the item needs to be drawn.
map scalar values into colors via a lookup table
Legend item to display vtkScalarsToColors.
vtkTypeUInt64 vtkMTimeType
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
bool operator()(WeightedVertex &v1, WeightedVertex &v2)
Allocate and hold a VTK object.
vtkVector2f PositionVector
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
prune a subtree out of a vtkTree
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A rooted tree data structure.
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
Mouse button double click event.