ParaView
vtkExtractSelectionRange.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkExtractSelectionRange.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
24 #ifndef vtkExtractSelectionRange_h
25 #define vtkExtractSelectionRange_h
26 
27 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 #include "vtkTableAlgorithm.h"
29 
30 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkExtractSelectionRange : public vtkTableAlgorithm
31 {
32 public:
33  static vtkExtractSelectionRange* New();
34  vtkTypeMacro(vtkExtractSelectionRange, vtkTableAlgorithm);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
41  vtkSetStringMacro(ArrayName);
42  vtkGetStringMacro(ArrayName);
44 
46 
49  vtkSetMacro(FieldType, int);
50  vtkGetMacro(FieldType, int);
52 
54 
57  vtkSetMacro(Component, int);
58  vtkGetMacro(Component, int);
60 
62 
65  vtkGetVector2Macro(Range, double);
67 
68 protected:
71 
72  int FillInputPortInformation(int port, vtkInformation* info);
73  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
74  vtkInformationVector* outputVector);
75 
76  int FieldType;
77  int Component;
78  char* ArrayName;
79  double Range[2];
80 
81 private:
82  vtkExtractSelectionRange(const vtkExtractSelectionRange&) VTK_DELETE_FUNCTION;
83  void operator=(const vtkExtractSelectionRange&) VTK_DELETE_FUNCTION;
84 };
85 
86 #endif
compute the range of the input selection.