17 #ifndef vtkHeatmapItem_h
18 #define vtkHeatmapItem_h
21 #include "vtkViewsInfovisModule.h"
32 VTK_ABI_NAMESPACE_BEGIN
53 virtual void SetTable(
vtkTable* table);
106 vtkGetVector2Macro(
Position,
float);
115 vtkGetMacro(CellHeight,
double);
116 vtkSetMacro(CellHeight,
double);
124 vtkGetMacro(CellWidth,
double);
125 vtkSetMacro(CellWidth,
double);
131 virtual void GetBounds(
double bounds[4]);
149 vtkGetMacro(RowLabelWidth,
float);
150 vtkGetMacro(ColumnLabelWidth,
float);
193 virtual void RebuildBuffers();
204 virtual bool IsDirty();
209 void InitializeLookupTables();
217 void AccumulateProminentCategoricalDataValues(
vtkIdType column);
223 void GenerateContinuousDataLookupTable();
229 void GenerateCategoricalDataLookupTable();
251 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
257 void ComputeBounds();
281 unsigned long HeatmapBuildTime;
293 std::map<vtkIdType, std::pair<double, double>> ColumnRanges;
294 std::vector<vtkIdType> SceneRowToTableRowMap;
295 std::vector<vtkIdType> SceneColumnToTableColumnMap;
296 std::set<std::string> BlankRows;
302 double SceneBottomLeft[3];
303 double SceneTopRight[3];
305 float ColumnLabelWidth;
309 bool LegendPositionSet;
312 VTK_ABI_NAMESPACE_END
Wrapper around std::string to keep symbols short.
void GetBounds(T a, double bds[6])
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.
struct Position_t Position
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.
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
a simple class to control print indentation
vtkVector2f PositionVector
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStringArray * RowNames
Legend item to display categorical data.
vtkSmartPointer< vtkTable > Table
A table, which contains similar-typed columns of data.
dynamic, self-adjusting array of bits
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.