VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkExtractArraysOverTime.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractArraysOverTime.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 =========================================================================*/
35 #ifndef __vtkExtractArraysOverTime_h
36 #define __vtkExtractArraysOverTime_h
37 
38 #include "vtkFiltersExtractionModule.h" // For export macro
39 #include "vtkMultiBlockDataSetAlgorithm.h"
40 
41 class vtkSelection;
42 class vtkDataSet;
43 class vtkTable;
45 class vtkDataSetAttributes;
46 
47 class VTKFILTERSEXTRACTION_EXPORT vtkExtractArraysOverTime : public vtkMultiBlockDataSetAlgorithm
48 {
49 public:
50  static vtkExtractArraysOverTime *New();
51  vtkTypeMacro(vtkExtractArraysOverTime, vtkMultiBlockDataSetAlgorithm);
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  vtkGetMacro(NumberOfTimeSteps,int);
58 
60 
62  void SetSelectionConnection(vtkAlgorithmOutput* algOutput)
63  {
64  this->SetInputConnection(1, algOutput);
65  }
67 
69 
74  virtual void SetSelectionExtractor(vtkExtractSelection*);
75  vtkGetObjectMacro(SelectionExtractor,vtkExtractSelection);
77 
79 
85  vtkSetMacro(ReportStatisticsOnly,int);
86  vtkGetMacro(ReportStatisticsOnly,int);
87  vtkBooleanMacro(ReportStatisticsOnly,int);
89 
90 //BTX
91 protected:
94 
95  virtual int RequestInformation(vtkInformation* request,
96  vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
98  virtual int RequestUpdateExtent(vtkInformation* request,
99  vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector);
101  virtual int RequestData(vtkInformation* request,
102  vtkInformationVector** inputVector,
103  vtkInformationVector* outputVector);
104 
105  virtual void PostExecute(vtkInformation* request,
106  vtkInformationVector** inputVector,
107  vtkInformationVector* outputVector);
108 
113  int DetermineSelectionType(vtkSelection*);
114 
115  virtual int FillInputPortInformation(int port, vtkInformation* info);
116 
118 
120  bool UpdateFastPathIDs(
121  vtkInformationVector** inputV, vtkInformation* outInfo);
123 
127  void CopyFastPathDataToOutput(vtkDataSet *input, vtkTable *output);
128 
129 
130  void ExecuteAtTimeStep(vtkInformationVector** inputV,
131  vtkInformation* outInfo);
132 
135 
138 
142 
144 
145  int Error;
146 
147  enum Errors
148  {
150  MoreThan1Indices
151  };
152 
154 
155 private:
156  vtkExtractArraysOverTime(const vtkExtractArraysOverTime&); // Not implemented.
157  void operator=(const vtkExtractArraysOverTime&); // Not implemented.
158 
159  class vtkInternal;
160  vtkInternal *Internal;
161 
162 //ETX
163 };
164 
165 #endif
extracts a selection over time.
extract a subset from a vtkDataSet.
vtkExtractSelection * SelectionExtractor
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)