26 #ifndef vtkHeatmapItem_h
27 #define vtkHeatmapItem_h
29 #include "vtkViewsInfovisModule.h"
60 virtual void SetTable(
vtkTable *table);
105 vtkSetVector2Macro(Position,
float);
113 vtkGetVector2Macro(Position,
float);
122 vtkGetMacro(CellHeight,
double);
131 vtkGetMacro(CellWidth,
double);
138 virtual void GetBounds(
double bounds[4]);
156 vtkGetMacro(RowLabelWidth,
float);
157 vtkGetMacro(ColumnLabelWidth,
float);
197 virtual
void RebuildBuffers();
208 virtual
bool IsDirty();
213 void InitializeLookupTables();
221 void AccumulateProminentCategoricalDataValues(
vtkIdType column);
227 void GenerateContinuousDataLookupTable();
233 void GenerateCategoricalDataLookupTable();
240 std::
string GetTooltipText(
float x,
float y);
255 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
261 void ComputeBounds();
275 void PositionLegends(
int orientation);
285 unsigned long HeatmapBuildTime;
297 std::map<
vtkIdType, std::pair<
double,
double > > ColumnRanges;
298 std::
vector< vtkIdType > SceneRowToTableRowMap;
299 std::
vector< vtkIdType > SceneColumnToTableColumnMap;
300 std::set<std::
string> BlankRows;
306 double SceneBottomLeft[3];
307 double SceneTopRight[3];
309 float ColumnLabelWidth;
313 bool LegendPositionSet;
Wrapper around std::string to keep symbols short.
An array holding vtkVariants.
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.
a vtkAbstractArray subclass for strings
A 2D graphics item for rendering a heatmap.
Hold a reference to a vtkObjectBase instance.
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
a simple class to control print indentation
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.
Legend item to display categorical data.
A table, which contains similar-typed columns of data.
dynamic, self-adjusting array of bits
Allocate and hold a VTK object.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
Mouse button double click event.