VTK  9.0.1
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 class vtkScalarsToColors;
37 
38 class VTKFILTERSOPENTURNS_EXPORT vtkOTScatterPlotMatrix : public vtkScatterPlotMatrix
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  static vtkOTScatterPlotMatrix* New();
48 
52  void SetDensityMapVisibility(int plotType, bool visible);
53 
57  void SetDensityLineSize(int plotType, float size);
58 
62  void SetDensityMapColor(int plotType, unsigned int densityLineIndex, const vtkColor4ub& color);
63 
65 
69  void SetTransferFunction(vtkScalarsToColors* stc);
70  vtkScalarsToColors* GetTransferFunction();
72 
73 protected:
75  ~vtkOTScatterPlotMatrix() override;
76 
82  virtual void AddSupplementaryPlot(vtkChart* chart, int plotType, vtkStdString row,
83  vtkStdString column, int plotCorner = 0) override;
84 
85 private:
87  void operator=(const vtkOTScatterPlotMatrix&) = delete;
88 
89  class DensityMapSettings;
90  std::map<int, DensityMapSettings*> DensityMapsSettings;
91  typedef std::map<std::pair<vtkStdString, vtkStdString>, vtkSmartPointer<vtkOTDensityMap> >
92  DensityMapCacheMap;
93  DensityMapCacheMap DensityMapCache;
94 
95  vtkSmartPointer<vtkScalarsToColors> TransferFunction;
96 };
97 
98 #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.
Definition: vtkMeta.h:32
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.
Superclass for mapping scalar values to colors.
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...