VTK
vtkAppendSelection.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAppendSelection.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=========================================================================*/
15/*----------------------------------------------------------------------------
16 Copyright (c) Sandia Corporation
17 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18----------------------------------------------------------------------------*/
32#ifndef vtkAppendSelection_h
33#define vtkAppendSelection_h
34
35#include "vtkFiltersCoreModule.h" // For export macro
37
38class vtkSelection;
39
40class VTKFILTERSCORE_EXPORT vtkAppendSelection : public vtkSelectionAlgorithm
41{
42public:
44
46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47
49
55 vtkSetMacro(UserManagedInputs,int);
56 vtkGetMacro(UserManagedInputs,int);
57 vtkBooleanMacro(UserManagedInputs,int);
59
65
71
73
77 vtkSelection *GetInput() { return this->GetInput( 0 ); };
79
84 void SetNumberOfInputs(int num);
85
86 // Set Nth input, should only be used when UserManagedInputs is true.
88
90
98 vtkSetMacro(AppendByUnion, int);
99 vtkGetMacro(AppendByUnion, int);
100 vtkBooleanMacro(AppendByUnion, int);
102
103protected:
105 ~vtkAppendSelection() VTK_OVERRIDE;
106
107 // Usual data generation method
108 int RequestData(vtkInformation *,
109 vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
110 int FillInputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
111
112 private:
113 // hide the superclass' AddInput() from the user and the compiler
114 void AddInputData(vtkDataObject *)
115 { vtkErrorMacro( << "AddInput() must be called with a vtkSelection not a vtkDataObject."); };
116
117 int UserManagedInputs;
118 int AppendByUnion;
119private:
120 vtkAppendSelection(const vtkAppendSelection&) VTK_DELETE_FUNCTION;
121 void operator=(const vtkAppendSelection&) VTK_DELETE_FUNCTION;
122};
123
124#endif
125
126
Proxy object to connect input/output ports.
appends one or more selections together
static vtkAppendSelection * New()
void SetNumberOfInputs(int num)
Directly set(allocate) number of inputs, should only be used when UserManagedInputs is true.
void SetInputConnectionByNumber(int num, vtkAlgorithmOutput *input)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelection * GetInput()
void RemoveInputData(vtkSelection *)
Remove a dataset from the list of data to append.
vtkSelection * GetInput(int idx)
Get any input of this filter.
~vtkAppendSelection() override
void AddInputData(vtkSelection *)
Add a dataset to the list of data to append.
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
A node in a selection tree.
Definition: vtkSelection.h:44
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.