36 #ifndef vtkDendrogramItem_h 37 #define vtkDendrogramItem_h 39 #include "vtkViewsInfovisModule.h" 66 virtual void SetTree(
vtkTree *tree);
79 void CollapseToNumberOfLeafNodes(
unsigned int n);
91 void SetColorArray(
const char *arrayName);
101 vtkGetMacro(ExtendLeafNodes,
bool);
114 int GetOrientation();
128 double GetTextAngleForOrientation(
int orientation);
136 vtkGetMacro(DrawLabels,
bool);
144 vtkSetVector2Macro(Position,
float);
152 vtkGetVector2Macro(Position,
float);
161 vtkGetMacro(LeafSpacing,
double);
177 virtual void GetBounds(
double bounds[4]);
187 float GetLabelWidth();
205 vtkGetMacro(LineWidth,
float);
214 vtkSetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
215 vtkGetMacro(DisplayNumberOfCollapsedLeafNodes,
bool);
294 virtual
void RebuildBuffers();
305 virtual
bool IsDirty();
311 void ComputeMultipliers();
316 void ComputeBounds();
321 void CountLeafNodes();
331 vtkIdType GetClosestVertex(
double x,
double y);
359 vtkIdType GetClickedCollapsedSubTree(
double x,
double y);
374 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
383 void PositionColorLegend();
402 int NumberOfLeafNodes;
409 double SceneBottomLeft[3];
410 double SceneTopRight[3];
414 bool ExtendLeafNodes;
416 bool DisplayNumberOfCollapsedLeafNodes;
417 bool LegendPositionSet;
Wrapper around std::string to keep symbols short.
A 2D graphics item for rendering a tree as a dendrogram.
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.
Hold a reference to a vtkObjectBase instance.
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.
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.
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
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.