VTK
vtkParallelCoordinatesHistogramRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParallelCoordinatesHistogramRepresentation.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 /*-------------------------------------------------------------------------
16  Copyright 2009 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
54 #ifndef __vtkParallelCoordinatesHistogramRepresentation_h
55 #define __vtkParallelCoordinatesHistogramRepresentation_h
56 
58 
63 class vtkLookupTable;
64 
66 {
67 public:
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
73  virtual void ApplyViewTheme(vtkViewTheme* theme);
74 
76 
78  virtual void SetUseHistograms(int);
79  vtkGetMacro(UseHistograms,int);
80  vtkBooleanMacro(UseHistograms,int);
82 
84 
85  virtual void SetShowOutliers(int);
86  vtkGetMacro(ShowOutliers,int);
87  vtkBooleanMacro(ShowOutliers,int);
89 
91 
93  vtkSetVector2Macro(HistogramLookupTableRange,double);
94  vtkGetVector2Macro(HistogramLookupTableRange,double);
96 
97  //BTX
99 
100  void SetNumberOfHistogramBins(int,int);
101  void SetNumberOfHistogramBins(int*);
102  vtkGetVector2Macro(NumberOfHistogramBins,int);
103  //ETX
105 
107 
109  void SetPreferredNumberOfOutliers(int);
110  vtkGetMacro(PreferredNumberOfOutliers,int);
112 
115  virtual int SwapAxisPositions(int position1, int position2);
116 
119  virtual int SetRangeAtPosition(int position, double range[2]);
120 
121 protected:
124 
125  virtual int RequestData(
129 
130  virtual bool AddToView(vtkView* view);
131 
132  virtual bool RemoveFromView(vtkView* view);
133 
136 
138  double HistogramLookupTableRange[2];
139 
141  int NumberOfHistogramBins[2];
142 
143  //BTX
146  //ETX
147 
150 
153 
154  //BTX
159  //ETX
160 
163  virtual int PlaceLines(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot);
164 
167  virtual int PlaceCurves(vtkPolyData* polyData, vtkTable* data, vtkIdTypeArray* idsToPlot);
168 
171  virtual int PlaceSelection(vtkPolyData* polyData, vtkTable* data, vtkSelectionNode* selectionNode);
172 
174  virtual int PlaceHistogramLineQuads(vtkPolyData* polyData);
175 
179  virtual int PlaceHistogramCurveQuads(vtkPolyData* polyData);
180 
182 
184  virtual int ComputeDataProperties();
185  virtual int UpdatePlotProperties(vtkStringArray*);
187 
190  virtual vtkImageData* GetHistogramImage(int idx);
191 
193 
194  virtual vtkTable* GetOutlierData();
195 private:
197  void operator=(const vtkParallelCoordinatesHistogramRepresentation&); // Not implemented
198 };
200 
201 #endif
A node in a selection tree. Used to store selection results.
vtkSmartPointer< vtkComputeHistogram2DOutliers > OutlierFilter
Store vtkAlgorithm input/output information.
virtual bool AddToView(vtkView *view)
map scalar values into colors via a lookup table
static vtkParallelCoordinatesRepresentation * New()
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
virtual int PlaceCurves(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
virtual int SwapAxisPositions(int position1, int position2)
#define VTK_VIEWS_EXPORT
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:46
virtual int UpdatePlotProperties(vtkStringArray *inputTitles)
The superclass for all views.
Definition: vtkView.h:61
a simple class to control print indentation
Definition: vtkIndent.h:37
compute a 2D histogram between two columns of an input vtkTable.
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual void ApplyViewTheme(vtkViewTheme *theme)
virtual bool RemoveFromView(vtkView *view)
vtkSmartPointer< vtkPairwiseExtractHistogram2D > HistogramFilter
Data representation that takes generic multivariate data and produces a parallel coordinates plot...
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:66
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int PlaceSelection(vtkPolyData *polyData, vtkTable *data, vtkSelectionNode *selectionNode)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int SetRangeAtPosition(int position, double range[2])
compute a 2D histogram between all adjacent columns of an input vtkTable.
virtual int PlaceLines(vtkPolyData *polyData, vtkTable *data, vtkIdTypeArray *idsToPlot)
Data representation that takes generic multivariate data and produces a parallel coordinates plot...
compute the outliers in a set of 2D histograms and extract the corresponding row data.