17 #ifndef vtkHeatmapItem_h
18 #define vtkHeatmapItem_h
21 #include "vtkViewsInfovisModule.h"
31 VTK_ABI_NAMESPACE_BEGIN
52 virtual void SetTable(
vtkTable* table);
105 vtkGetVector2Macro(
Position,
float);
114 vtkGetMacro(CellHeight,
double);
115 vtkSetMacro(CellHeight,
double);
123 vtkGetMacro(CellWidth,
double);
124 vtkSetMacro(CellWidth,
double);
130 virtual void GetBounds(
double bounds[4]);
148 vtkGetMacro(RowLabelWidth,
float);
149 vtkGetMacro(ColumnLabelWidth,
float);
189 virtual void RebuildBuffers();
200 virtual bool IsDirty();
205 void InitializeLookupTables();
213 void AccumulateProminentCategoricalDataValues(
vtkIdType column);
219 void GenerateContinuousDataLookupTable();
225 void GenerateCategoricalDataLookupTable();
247 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
253 void ComputeBounds();
277 unsigned long HeatmapBuildTime;
289 std::map<vtkIdType, std::pair<double, double>> ColumnRanges;
290 std::vector<vtkIdType> SceneRowToTableRowMap;
291 std::vector<vtkIdType> SceneColumnToTableColumnMap;
292 std::set<std::string> BlankRows;
298 double SceneBottomLeft[3];
299 double SceneTopRight[3];
301 float ColumnLabelWidth;
305 bool LegendPositionSet;
308 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.