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 
40 class VTKFILTERSOPENTURNS_EXPORT vtkOTScatterPlotMatrix : public vtkScatterPlotMatrix
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
49  static vtkOTScatterPlotMatrix* New();
50 
54  void SetDensityMapVisibility(int plotType, bool visible);
55 
59  void SetDensityLineSize(int plotType, float size);
60 
64  void SetDensityMapColor(int plotType, unsigned int densityLineIndex, const vtkColor4ub& color);
65 
66 protected:
68  ~vtkOTScatterPlotMatrix() override;
69 
75  virtual void AddSupplementaryPlot(vtkChart* chart,
76  int plotType,
77  vtkStdString row,
78  vtkStdString column,
79  int plotCorner = 0) override;
80 
81 private:
83  void operator=(const vtkOTScatterPlotMatrix&) = delete;
84 
85  class DensityMapSettings;
86  std::map<int, DensityMapSettings*> DensityMapsSettings;
87  typedef std::map<std::pair<vtkStdString, vtkStdString>, vtkSmartPointer<vtkOTDensityMap> >
88  DensityMapCacheMap;
89  DensityMapCacheMap DensityMapCache;
90 };
91 
92 #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.
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...