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 
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 
75 
76 protected:
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
vtkChart
Factory class for drawing 2D charts.
Definition: vtkChart.h:51
vtkOTScatterPlotMatrix::SetDensityMapColor
void SetDensityMapColor(int plotType, unsigned int densityLineIndex, const vtkColor4ub &color)
Set the color for the specified plotType, automatically distributed on HSV by default.
vtkOTScatterPlotMatrix
container for a matrix of charts.
Definition: vtkOTScatterPlotMatrix.h:42
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition: vtkSmartPointer.h:37
vtkOTScatterPlotMatrix::GetTransferFunction
vtkScalarsToColors * GetTransferFunction()
vtkX3D::color
@ color
Definition: vtkX3D.h:221
vtkOTScatterPlotMatrix::SetDensityLineSize
void SetDensityLineSize(int plotType, float size)
Set the density line size for the specified plotType, 2 by default.
vtkOTScatterPlotMatrix::~vtkOTScatterPlotMatrix
~vtkOTScatterPlotMatrix() override
vtkOTScatterPlotMatrix::New
static vtkOTScatterPlotMatrix * New()
Creates a new object.
vtkOTScatterPlotMatrix::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOTScatterPlotMatrix::SetTransferFunction
void SetTransferFunction(vtkScalarsToColors *stc)
Get/Set a custom color transfer function.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSmartPointer.h
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkScatterPlotMatrix
container for a matrix of charts.
Definition: vtkScatterPlotMatrix.h:49
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:67
vtkOTDensityMap
A VTK Filter to compute density map on any pair of numeric data arrays with the same number of tuples...
Definition: vtkOTDensityMap.h:44
vtkOTScatterPlotMatrix::AddSupplementaryPlot
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...
vtkOTScatterPlotMatrix::SetDensityMapVisibility
void SetDensityMapVisibility(int plotType, bool visible)
Set the visibility of density map for the specifid plotType, false by default.
vtkScatterPlotMatrix.h
vtkColor4ub
Definition: vtkColor.h:241
vtkOTScatterPlotMatrix::vtkOTScatterPlotMatrix
vtkOTScatterPlotMatrix()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:41