VTK  9.1.0
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
33#include "vtkSmartPointer.h" // For SmartPointer
34
35class vtkOTDensityMap;
37
38class VTKFILTERSOPENTURNS_EXPORT vtkOTScatterPlotMatrix : public vtkScatterPlotMatrix
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
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
72
73protected:
76
82 virtual void AddSupplementaryPlot(vtkChart* chart, int plotType, vtkStdString row,
83 vtkStdString column, int plotCorner = 0) override;
84
85private:
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
96};
97
98#endif // vtkOTScatterPlotMatrix_h
Factory class for drawing 2D charts.
Definition: vtkChart.h:45
a simple class to control print indentation
Definition: vtkIndent.h:113
A VTK Filter to compute density map on any pair of numeric data arrays with the same number of tuples...
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.
void SetTransferFunction(vtkScalarsToColors *stc)
Get/Set a custom color transfer function.
static vtkOTScatterPlotMatrix * New()
Creates a new object.
void SetDensityMapColor(int plotType, unsigned int densityLineIndex, const vtkColor4ub &color)
Set the color for the specified plotType, automatically distributed on HSV by default.
vtkScalarsToColors * GetTransferFunction()
Get/Set a custom color transfer function.
~vtkOTScatterPlotMatrix() override
void SetDensityLineSize(int plotType, float size)
Set the density line size for the specified plotType, 2 by default.
virtual void AddSupplementaryPlot(vtkChart *chart, int plotType, vtkStdString row, vtkStdString column, int plotCorner=0) override
Add a density map as a supplementary plot, with provided row and column, computed with OpenTURNS if D...
void SetDensityMapVisibility(int plotType, bool visible)
Set the visibility of density map for the specific plotType, false by default.
Superclass for mapping scalar values to colors.
container for a matrix of charts.
Hold a reference to a vtkObjectBase instance.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:105
@ color
Definition: vtkX3D.h:227
@ size
Definition: vtkX3D.h:259