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 
31 #ifndef vtkOTScatterPlotMatrix_h
32 #define vtkOTScatterPlotMatrix_h
33 
34 #include "vtkFiltersOpenTurnsModule.h" // For export macro
35 #include "vtkScatterPlotMatrix.h"
36 #include "vtkSmartPointer.h" // For SmartPointer
37 
38 class vtkOTDensityMap;
39 class vtkScalarsToColors;
40 
41 class VTKFILTERSOPENTURNS_EXPORT vtkOTScatterPlotMatrix : public vtkScatterPlotMatrix
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  static vtkOTScatterPlotMatrix* New();
51 
55  void SetDensityMapVisibility(int plotType, bool visible);
56 
60  void SetDensityLineSize(int plotType, float size);
61 
65  void SetDensityMapColor(int plotType, unsigned int densityLineIndex, const vtkColor4ub& color);
66 
68 
72  void SetTransferFunction(vtkScalarsToColors* stc);
73  vtkScalarsToColors* GetTransferFunction();
75 
76 protected:
78  ~vtkOTScatterPlotMatrix() override;
79 
85  virtual void AddSupplementaryPlot(vtkChart* chart,
86  int plotType,
87  vtkStdString row,
88  vtkStdString column,
89  int plotCorner = 0) override;
90 
91 private:
93  void operator=(const vtkOTScatterPlotMatrix&) = delete;
94 
95  class DensityMapSettings;
96  std::map<int, DensityMapSettings*> DensityMapsSettings;
97  typedef std::map<std::pair<vtkStdString, vtkStdString>, vtkSmartPointer<vtkOTDensityMap> >
98  DensityMapCacheMap;
99  DensityMapCacheMap DensityMapCache;
100 
101  vtkSmartPointer<vtkScalarsToColors> TransferFunction;
102 };
103 
104 #endif // vtkOTScatterPlotMatrix_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:40
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.
Superclass for mapping scalar values to colors.
Factory class for drawing 2D charts.
Definition: vtkChart.h:50
static vtkScatterPlotMatrix * New()
Creates a new object.
a simple class to control print indentation
Definition: vtkIndent.h:39
A VTK Filter to compute density map on any pair of numeric data arrays with the same number of tuples...