27 #ifndef vtkDendrogramItem_h
28 #define vtkDendrogramItem_h
31 #include "vtkViewsInfovisModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
58 virtual void SetTree(
vtkTree* tree);
71 void CollapseToNumberOfLeafNodes(
unsigned int n);
83 void SetColorArray(
const char* arrayName);
92 vtkSetMacro(ExtendLeafNodes,
bool);
93 vtkGetMacro(ExtendLeafNodes,
bool);
94 vtkBooleanMacro(ExtendLeafNodes,
bool);
106 int GetOrientation();
120 double GetTextAngleForOrientation(
int orientation);
127 vtkSetMacro(DrawLabels,
bool);
128 vtkGetMacro(DrawLabels,
bool);
129 vtkBooleanMacro(DrawLabels,
bool);
136 vtkSetVector2Macro(
Position,
float);
144 vtkGetVector2Macro(
Position,
float);
153 vtkGetMacro(LeafSpacing,
double);
154 vtkSetMacro(LeafSpacing,
double);
169 virtual void GetBounds(
double bounds[4]);
179 float GetLabelWidth();
197 vtkGetMacro(LineWidth,
float);
198 vtkSetMacro(LineWidth,
float);
206 vtkSetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
207 vtkGetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
208 vtkBooleanMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
286 virtual void RebuildBuffers();
297 virtual bool IsDirty();
303 void ComputeMultipliers();
308 void ComputeBounds();
313 void CountLeafNodes();
323 vtkIdType GetClosestVertex(
double x,
double y);
351 vtkIdType GetClickedCollapsedSubTree(
double x,
double y);
366 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
375 void PositionColorLegend();
394 int NumberOfLeafNodes;
401 double SceneBottomLeft[3];
402 double SceneTopRight[3];
406 bool ExtendLeafNodes;
408 bool DisplayNumberOfCollapsedLeafNodes;
409 bool LegendPositionSet;
414 VTK_ABI_NAMESPACE_END
vtkSmartPointer< vtkTree > LayoutTree
Wrapper around std::string to keep symbols short.
void GetBounds(T a, double bds[6])
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.
struct Position_t Position
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
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
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.