VTK
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 =========================================================================*/
36 #ifndef vtkExtractArraysOverTime_h
37 #define vtkExtractArraysOverTime_h
38 
39 #include "vtkFiltersExtractionModule.h" // For export macro
41 
42 class vtkSelection;
43 class vtkDataSet;
44 class vtkTable;
47 
48 class VTKFILTERSEXTRACTION_EXPORT vtkExtractArraysOverTime : public vtkMultiBlockDataSetAlgorithm
49 {
50 public:
51  static vtkExtractArraysOverTime *New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
59  vtkGetMacro(NumberOfTimeSteps,int);
61 
67  {
68  this->SetInputConnection(1, algOutput);
69  }
70 
72 
82  virtual void SetSelectionExtractor(vtkExtractSelection*);
83  vtkGetObjectMacro(SelectionExtractor,vtkExtractSelection);
85 
87 
97  vtkSetMacro(ReportStatisticsOnly,int);
98  vtkGetMacro(ReportStatisticsOnly,int);
99  vtkBooleanMacro(ReportStatisticsOnly,int);
101 
102 protected:
105 
106  virtual int RequestInformation(vtkInformation* request,
107  vtkInformationVector** inputVector,
108  vtkInformationVector* outputVector);
109  virtual int RequestUpdateExtent(vtkInformation* request,
110  vtkInformationVector** inputVector,
111  vtkInformationVector* outputVector);
112  virtual int RequestData(vtkInformation* request,
113  vtkInformationVector** inputVector,
114  vtkInformationVector* outputVector);
115 
116  virtual void PostExecute(vtkInformation* request,
117  vtkInformationVector** inputVector,
118  vtkInformationVector* outputVector);
119 
120  // Add virtual method to be overwritten in the subclass. takes the
121  virtual vtkSelection* GetSelection(vtkInformation* info);
122 
129  int DetermineSelectionType(vtkSelection*);
130 
132 
133  void ExecuteAtTimeStep(vtkInformationVector** inputV,
134  vtkInformation* outInfo);
135 
138 
141 
143 
145 
146  int Error;
147 
148  enum Errors
149  {
151  MoreThan1Indices
152  };
153 
155 
156 private:
157  vtkExtractArraysOverTime(const vtkExtractArraysOverTime&) VTK_DELETE_FUNCTION;
158  void operator=(const vtkExtractArraysOverTime&) VTK_DELETE_FUNCTION;
159 
160  class vtkInternal;
161  vtkInternal *Internal;
162 
163 };
164 
165 #endif
vtkExtractArraysOverTime
extracts a selection over time.
Definition: vtkExtractArraysOverTime.h:48
vtkExtractArraysOverTime::SetSelectionConnection
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Convenience method to specify the selection connection (2nd input port)
Definition: vtkExtractArraysOverTime.h:66
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:58
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkExtractSelection
extract a subset from a vtkDataSet.
Definition: vtkExtractSelection.h:50
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkMultiBlockDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:97
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
vtkExtractArraysOverTime::CurrentTimeIndex
int CurrentTimeIndex
Definition: vtkExtractArraysOverTime.h:136
vtkExtractArraysOverTime::SelectionExtractor
vtkExtractSelection * SelectionExtractor
Definition: vtkExtractArraysOverTime.h:154
vtkExtractArraysOverTime::NumberOfTimeSteps
int NumberOfTimeSteps
Definition: vtkExtractArraysOverTime.h:137
vtkMultiBlockDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:88
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkExtractArraysOverTime::Errors
Errors
Definition: vtkExtractArraysOverTime.h:148
vtkExtractArraysOverTime::Error
int Error
Definition: vtkExtractArraysOverTime.h:146
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractArraysOverTime::ContentType
int ContentType
Definition: vtkExtractArraysOverTime.h:140
vtkExtractArraysOverTime::IsExecuting
bool IsExecuting
Definition: vtkExtractArraysOverTime.h:142
vtkMultiBlockDataSetAlgorithm.h
vtkExtractArraysOverTime::NoError
@ NoError
Definition: vtkExtractArraysOverTime.h:150
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkMultiBlockDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkExtractArraysOverTime::FieldType
int FieldType
Definition: vtkExtractArraysOverTime.h:139
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkMultiBlockDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkMultiBlockDataSetAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:80
vtkExtractArraysOverTime::ReportStatisticsOnly
int ReportStatisticsOnly
Definition: vtkExtractArraysOverTime.h:144
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32