VTK
vtkExtractSelectionBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelectionBase.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 =========================================================================*/
24 #ifndef vtkExtractSelectionBase_h
25 #define vtkExtractSelectionBase_h
26 
27 #include "vtkFiltersGeneralModule.h" // For export macro
28 #include "vtkDataObjectAlgorithm.h"
29 
30 class VTKFILTERSGENERAL_EXPORT vtkExtractSelectionBase : public vtkDataObjectAlgorithm
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
35 
41  {
42  this->SetInputConnection(1, algOutput);
43  }
44 
46 
51  vtkSetMacro(PreserveTopology, int);
52  vtkGetMacro(PreserveTopology, int);
53  vtkBooleanMacro(PreserveTopology, int);
55 
56 protected:
58  ~vtkExtractSelectionBase() VTK_OVERRIDE;
59 
63  int RequestDataObject(vtkInformation* request,
64  vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector) VTK_OVERRIDE;
66 
67  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
68 
70 private:
71  vtkExtractSelectionBase(const vtkExtractSelectionBase&) VTK_DELETE_FUNCTION;
72  void operator=(const vtkExtractSelectionBase&) VTK_DELETE_FUNCTION;
73 
74 };
75 
76 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Convenience method to specify the selection connection (2nd input port)
abstract base class for all extract selection filters.
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Superclass for algorithms that produce only data object as output.
Store zero or more vtkInformation instances.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.