VTK
vtkOTScatterPlotMatrix.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOTScatterPlotMatrix.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
28 #ifndef vtkOTScatterPlotMatrix_h
29 #define vtkOTScatterPlotMatrix_h
30 
31 #include "vtkFiltersOpenTurnsModule.h" // For export macro
32 #include "vtkScatterPlotMatrix.h"
33 #include "vtkSmartPointer.h" // For SmartPointer
34 
35 class vtkOTDensityMap;
36 
37 class VTKFILTERSOPENTURNS_EXPORT vtkOTScatterPlotMatrix : public vtkScatterPlotMatrix
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  static vtkOTScatterPlotMatrix* New();
47 
51  void SetDensityMapVisibility(int plotType, bool visible);
52 
56  void SetDensityLineSize(int plotType, float size);
57 
61  void SetDensityMapColor(int plotType, unsigned int densityLineIndex, const vtkColor4ub& color);
62 
63 protected:
65  ~vtkOTScatterPlotMatrix() override;
66 
72  virtual void AddSupplementaryPlot(vtkChart* chart,
73  int plotType,
74  vtkStdString row,
75  vtkStdString column,
76  int plotCorner = 0) override;
77 
78 private:
80  void operator=(const vtkOTScatterPlotMatrix&) = delete;
81 
82  class DensityMapSettings;
83  std::map<int, DensityMapSettings*> DensityMapsSettings;
84  typedef std::map<std::pair<vtkStdString, vtkStdString>, vtkSmartPointer<vtkOTDensityMap> >
85  DensityMapCacheMap;
86  DensityMapCacheMap DensityMapCache;
87 };
88 
89 #endif // vtkOTScatterPlotMatrix_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
container for a matrix of charts.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Hold a reference to a vtkObjectBase instance.
container for a matrix of charts.
virtual void AddSupplementaryPlot(vtkChart *vtkNotUsed(chart), int vtkNotUsed(plotType), vtkStdString vtkNotUsed(row), vtkStdString vtkNotUsed(column), int vtkNotUsed(plotCorner)=0)
Called when drawing a chart, does nothing at this level.
Factory class for drawing 2D charts.
Definition: vtkChart.h:44
static vtkScatterPlotMatrix * New()
Creates a new object.
a simple class to control print indentation
Definition: vtkIndent.h:33
A VTK Filter to compute density map on any pair of numeric data arrays with the same number of tuples...