29 #ifndef vtkHeatmapItem_h 30 #define vtkHeatmapItem_h 32 #include "vtkViewsInfovisModule.h" 63 virtual void SetTable(
vtkTable *table);
102 double GetTextAngleForOrientation(
int orientation);
108 vtkSetVector2Macro(Position,
float);
116 vtkGetVector2Macro(Position,
float);
125 vtkGetMacro(CellHeight,
double);
134 vtkGetMacro(CellWidth,
double);
141 virtual void GetBounds(
double bounds[4]);
159 vtkGetMacro(RowLabelWidth,
float);
160 vtkGetMacro(ColumnLabelWidth,
float);
200 virtual
void RebuildBuffers();
211 virtual
bool IsDirty();
216 void InitializeLookupTables();
224 void AccumulateProminentCategoricalDataValues(
vtkIdType column);
230 void GenerateContinuousDataLookupTable();
236 void GenerateCategoricalDataLookupTable();
243 std::
string GetTooltipText(
float x,
float y);
258 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
264 void ComputeBounds();
278 void PositionLegends(
int orientation);
288 unsigned long HeatmapBuildTime;
300 std::map<
vtkIdType, std::pair<
double,
double > > ColumnRanges;
301 std::
vector< vtkIdType > SceneRowToTableRowMap;
302 std::
vector< vtkIdType > SceneColumnToTableColumnMap;
303 std::set<std::
string> BlankRows;
309 double SceneBottomLeft[3];
310 double SceneTopRight[3];
312 float ColumnLabelWidth;
316 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.