ParaView
vtkPythonExtractSelection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 vtkPythonExtractSelection_h
23 #define vtkPythonExtractSelection_h
24 
25 #include "vtkExtractSelectionBase.h"
26 #include "vtkPVClientServerCoreCoreModule.h" //needed for exports
27 
28 class vtkCompositeDataSet;
29 
30 class VTKPVCLIENTSERVERCORECORE_EXPORT vtkPythonExtractSelection : public vtkExtractSelectionBase
31 {
32 public:
33  static vtkPythonExtractSelection* New();
34  vtkTypeMacro(vtkPythonExtractSelection, vtkExtractSelectionBase);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
43  bool ExtractElements(int attributeType, vtkDataObject* input, vtkDataObject* output);
44  bool ExtractElements(int attributeType, vtkCompositeDataSet* input, vtkCompositeDataSet* output);
46 
47 protected:
50 
51  virtual int FillInputPortInformation(int port, vtkInformation* info);
52  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
53  vtkInformationVector* outputVector);
54  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
55 
61  void InitializeOutput(vtkDataObject* output, vtkDataObject* input);
62 
63 private:
64  vtkPythonExtractSelection(const vtkPythonExtractSelection&) VTK_DELETE_FUNCTION;
65  void operator=(const vtkPythonExtractSelection&) VTK_DELETE_FUNCTION;
66 };
67 
68 #endif
vtkPythonExtractSelection is a used to extra cells/points using numpy.