28 #ifndef vtkHeatmapItem_h
29 #define vtkHeatmapItem_h
60 virtual void SetTable(
vtkTable *table);
90 vtkSetVector2Macro(Position,
float);
96 vtkGetVector2Macro(Position,
float);
102 vtkGetMacro(CellHeight,
double);
103 vtkSetMacro(CellHeight,
double);
108 vtkGetMacro(CellWidth,
double);
109 vtkSetMacro(CellWidth,
double);
113 virtual void GetBounds(
double bounds[4]);
125 vtkGetMacro(RowLabelWidth,
float);
126 vtkGetMacro(ColumnLabelWidth,
float);
162 virtual void RebuildBuffers();
170 virtual bool IsDirty();
173 void InitializeLookupTables();
179 void AccumulateProminentCategoricalDataValues(
vtkIdType column);
183 void GenerateContinuousDataLookupTable();
187 void GenerateCategoricalDataLookupTable();
203 bool LineIsVisible(
double x0,
double y0,
double x1,
double y1);
207 void ComputeBounds();
229 unsigned long HeatmapBuildTime;
241 std::map< vtkIdType, std::pair< double, double > > ColumnRanges;
242 std::vector< vtkIdType > SceneRowToTableRowMap;
243 std::vector< vtkIdType > SceneColumnToTableColumnMap;
244 std::set<std::string> BlankRows;
250 double SceneBottomLeft[3];
251 double SceneTopRight[3];
253 float ColumnLabelWidth;
257 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)
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
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)
virtual bool Hit(const vtkContextMouseEvent &mouse)
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
#define VTKVIEWSINFOVIS_EXPORT