vtkAnnotateSelectionFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkAnnotateSelectionFilter_h
15 #define vtkAnnotateSelectionFilter_h
16 
17 #include "vtkDataSetAlgorithm.h"
18 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
19 
21  : public vtkDataSetAlgorithm
22 {
23 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
35  void ResetLabels();
36  void SetLabels(int index, const char* label);
38 
44  {
45  this->SetInputConnection(1, algOutput);
46  }
47 
51  void RemoveAllSelectionsInputs() { this->SetInputConnection(1, nullptr); }
52 
54 
57  vtkSetStdStringFromCharMacro(DefaultLabel);
58  vtkGetCharFromStdStringMacro(DefaultLabel);
60 
62 
63 protected:
65  ~vtkAnnotateSelectionFilter() override = default;
66 
67  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
68  vtkInformationVector* outputVector) override;
69 
70  std::vector<std::string> Labels;
71 
72  std::string DefaultLabel;
73 
74 private:
76  void operator=(const vtkAnnotateSelectionFilter&) = delete;
77 };
78 
79 #endif
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
std::vector< std::string > Labels
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Convenience method to specify the selection connection (2nd input port)
info
filter for annotating selection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
void RemoveAllSelectionsInputs()
Removes all inputs from input port 1.
port
void operator=(const vtkObjectBase &)
static vtkDataSetAlgorithm * New()