ParaView
vtkPVExtractComponent.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVExtractComponent.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 =========================================================================*/
22 #ifndef vtkPVExtractComponent_h
23 #define vtkPVExtractComponent_h
24 
25 #include "vtkDataSetAlgorithm.h"
26 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
27 
28 class vtkDataSet;
29 
30 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVExtractComponent : public vtkDataSetAlgorithm
31 {
32 public:
33  static vtkPVExtractComponent* New();
34  vtkTypeMacro(vtkPVExtractComponent, vtkDataSetAlgorithm);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
37  vtkSetMacro(InputArrayComponent, int);
38  vtkGetMacro(InputArrayComponent, int);
39 
40  vtkSetStringMacro(OutputArrayName);
41  vtkGetStringMacro(OutputArrayName);
42 
43 protected:
46 
47  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
48 
49  virtual int FillInputPortInformation(int port, vtkInformation* info);
50 
53 
54 private:
55  vtkPVExtractComponent(const vtkPVExtractComponent&) VTK_DELETE_FUNCTION;
56  void operator=(const vtkPVExtractComponent&) VTK_DELETE_FUNCTION;
57 };
58 
59 #endif
Extract a component of an attribute.