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);
103 vtkSetMacro(ExtendLeafNodes,
bool);
104 vtkGetMacro(ExtendLeafNodes,
bool);
105 vtkBooleanMacro(ExtendLeafNodes,
bool);
117 int GetOrientation();
131 double GetTextAngleForOrientation(
int orientation);
138 vtkSetMacro(DrawLabels,
bool);
139 vtkGetMacro(DrawLabels,
bool);
140 vtkBooleanMacro(DrawLabels,
bool);
147 vtkSetVector2Macro(Position,
float);
155 vtkGetVector2Macro(Position,
float);
164 vtkGetMacro(LeafSpacing,
double);
165 vtkSetMacro(LeafSpacing,
double);
180 virtual void GetBounds(
double bounds[4]);
190 float GetLabelWidth();
208 vtkGetMacro(LineWidth,
float);
209 vtkSetMacro(LineWidth,
float);
217 vtkSetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
218 vtkGetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
219 vtkBooleanMacro(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
vtkTypeUInt32 vtkMTimeType
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.
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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool operator()(WeightedVertex &v1, WeightedVertex &v2)
vtkVector2f PositionVector
prune a subtree out of a vtkTree
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A rooted tree data structure.