Go to the documentation of this file.
38 #ifndef vtkDendrogramItem_h
39 #define vtkDendrogramItem_h
211 if (
v1.weight <
v2.weight)
320 unsigned long DendrogramBuildTime;
329 int NumberOfLeafNodes;
336 double SceneBottomLeft[3];
337 double SceneTopRight[3];
341 bool ExtendLeafNodes;
343 bool DisplayNumberOfCollapsedLeafNodes;
344 bool LegendPositionSet;
data structure to represent mouse events.
GLfloat GLfloat GLfloat v2
#define vtkSetVector2Macro(name, type)
void PositionColorLegend()
#define vtkGetVector2Macro(name, type)
void ComputeLabelWidth(vtkContext2D *painter)
#define VTKVIEWSINFOVIS_EXPORT
bool LineIsVisible(double x0, double y0, double x1, double y1)
#define vtkTypeMacro(thisClass, superclass)
void CollapseToNumberOfLeafNodes(unsigned int n)
GLint GLint GLint GLint GLint x
double GetTextAngleForOrientation(int orientation)
Class for drawing 2D primitives to a graphical context.
virtual void PaintBuffers(vtkContext2D *painter)
vtkIdType GetClickedCollapsedSubTree(double x, double y)
void SetOrientation(int orientation)
void CollapseSubTree(vtkIdType vertex)
void UpdateVisibleSceneExtent(vtkContext2D *painter)
void PrepareToPaint(vtkContext2D *painter)
virtual bool Hit(const vtkContextMouseEvent &mouse)
A rooted tree data structure.
vtkIdType GetClosestVertex(double x, double y)
vtkIdType GetOriginalId(vtkIdType vertex)
virtual void GetBounds(double bounds[4])
virtual bool Paint(vtkContext2D *painter)
virtual void SetTree(vtkTree *tree)
vtkVector2f PositionVector
static vtkDendrogramItem * New()
a simple class to control print indentation
vtkSmartPointer< vtkTree > LayoutTree
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkTree > Tree
int CountLeafNodes(vtkIdType vertex)
vtkIdType GetPrunedIdForOriginalId(vtkIdType originalId)
#define vtkGetMacro(name, type)
double GetAngleForOrientation(int orientation)
vtkVector2f GetPositionVector()
prune a subtree out of a vtkTree
void SetPosition(const vtkVector2f &pos)
vtkBooleanMacro(IgnoreDriverBugs, bool)
base class for items that are part of a vtkContextScene.
vtkSetMacro(IgnoreDriverBugs, bool)
map scalar values into colors via a lookup table
void SetOrientation(vtkTree *tree, int orientation)
vtkTree * GetPrunedTree()
virtual void RebuildBuffers()
Legend item to display vtkScalarsToColors.
GLint GLint GLint GLint GLint GLint y
A 2D graphics item for rendering a tree as a dendrogram.
bool operator()(WeightedVertex &v1, WeightedVertex &v2)
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &event)
dynamic, self-adjusting array of double
void ComputeMultipliers()
void ExpandSubTree(vtkIdType vertex)
bool GetPositionOfVertex(std::string vertexName, double position[2])
Wrapper around std::string to keep symbols short.
void SetColorArray(const char *arrayName)
GLsizei const GLchar ** string
layout a graph in 2 or 3 dimensions