28 #ifndef __vtkScatterPlotMatrix_h
29 #define __vtkScatterPlotMatrix_h
31 #include "vtkChartsCoreModule.h"
41 class vtkAnnotationLink;
42 class vtkTextProperty;
44 class vtkRenderWindowInteractor;
67 virtual bool Paint(vtkContext2D *painter);
72 virtual bool SetActivePlot(
const vtkVector2i& position);
75 virtual vtkVector2i GetActivePlot();
80 VTK_LEGACY(vtkAnnotationLink* GetActiveAnnotationLink());
84 vtkAnnotationLink* GetAnnotationLink();
89 virtual void SetInput(vtkTable *table);
92 void SetColumnVisibility(
const vtkStdString& name,
bool visible);
96 void InsertVisibleColumn(
const vtkStdString& name,
int index);
103 void SetColumnVisibilityAll(
bool visible);
114 virtual void SetNumberOfBins(
int numberOfBins);
121 void SetPlotColor(
int plotType,
const vtkColor4ub& color);
124 void SetPlotMarkerStyle(
int plotType,
int style);
127 void SetPlotMarkerSize(
int plotType,
float size);
130 bool Hit(
const vtkContextMouseEvent &mouse);
133 bool MouseMoveEvent(
const vtkContextMouseEvent &mouse);
136 bool MouseButtonPressEvent(
const vtkContextMouseEvent &mouse);
139 bool MouseButtonReleaseEvent(
const vtkContextMouseEvent &mouse);
144 int GetPlotType(
const vtkVector2i &pos);
145 int GetPlotType(
int row,
int column);
157 void SetTitleProperties(vtkTextProperty *prop);
158 vtkTextProperty* GetTitleProperties();
165 void SetGridVisibility(
int plotType,
bool visible);
166 bool GetGridVisibility(
int plotType);
172 void SetBackgroundColor(
int plotType,
const vtkColor4ub& color);
179 void SetAxisColor(
int plotType,
const vtkColor4ub& color);
186 void SetGridColor(
int plotType,
const vtkColor4ub& color);
194 void SetAxisLabelVisibility(
int plotType,
bool visible);
195 bool GetAxisLabelVisibility(
int plotType);
202 void SetAxisLabelProperties(
int plotType, vtkTextProperty *prop);
203 vtkTextProperty* GetAxisLabelProperties(
int plotType);
209 void SetAxisLabelNotation(
int plotType,
int notation);
210 int GetAxisLabelNotation(
int plotType);
216 void SetAxisLabelPrecision(
int plotType,
int precision);
217 int GetAxisLabelPrecision(
int plotType);
223 void SetTooltipNotation(
int plotType,
int notation);
224 void SetTooltipPrecision(
int plotType,
int precision);
225 int GetTooltipNotation(
int plotType);
226 int GetTooltipPrecision(
int plotType);
231 void SetTooltip(vtkTooltipItem *tooltip);
235 vtkTooltipItem* GetTooltip()
const;
245 void SetScatterPlotSelectedRowColumnColor(
const vtkColor4ub& color);
246 vtkColor4ub GetScatterPlotSelectedRowColumnColor();
251 void SetScatterPlotSelectedActiveColor(
const vtkColor4ub& color);
256 void UpdateSettings();
259 void UpdateChartSettings(
int plotType);
266 virtual void SetSelectionMode(
int);
267 vtkGetMacro(SelectionMode,
int);
278 void SetNumberOfFrames(
int frames);
282 int GetNumberOfFrames();
285 void ClearAnimationPath();
290 bool AddAnimationPath(
const vtkVector2i &move);
293 vtkIdType GetNumberOfAnimationPathElements();
296 vtkVector2i GetAnimationPathElement(
vtkIdType i);
299 bool BeginAnimationPath(vtkRenderWindowInteractor* interactor);
303 virtual void AdvanceAnimation();
319 void AttachAxisRangeListener(
vtkAxis*);
320 void AxisRangeForwarderCallback(
vtkObject*,
unsigned long,
void*);
325 void BigChartSelectionCallback(
vtkObject*,
unsigned long,
void*);
329 virtual void UpdateAnimationPath(
const vtkVector2i& newActivePos);
333 virtual void StartAnimation(vtkRenderWindowInteractor* interactor);
337 static void ProcessEvents(
vtkObject *caller,
unsigned long event,
338 void *clientData,
void *callerData);
377 #endif //__vtkScatterPlotMatrix_h
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
container for a matrix of charts.
a vtkAbstractArray subclass for strings
vtkSmartPointer< vtkTextProperty > TitleProperties
Factory class for drawing 2D charts.
takes care of drawing 2D axes
a simple class to control print indentation
virtual bool Paint(vtkContext2D *painter)
container for a matrix of charts.
static vtkChartMatrix * New()
vtkSmartPointer< vtkTable > Input
vtkNew< vtkStringArray > VisibleColumns
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual int GetNumberOfBins() const