VTK  9.3.20240226
vtkAnnotationLayersAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkAnnotationLayersAlgorithm_h
22 #define vtkAnnotationLayersAlgorithm_h
23 
24 #include "vtkAlgorithm.h"
25 #include "vtkAnnotationLayers.h" // makes things a bit easier
26 #include "vtkCommonExecutionModelModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkDataSet;
30 
31 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkAnnotationLayersAlgorithm : public vtkAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
43 
47  vtkAnnotationLayers* GetOutput() { return this->GetOutput(0); }
49 
55  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
56  void SetInputData(int index, vtkDataObject* obj);
57 
58 protected:
61 
62  // convenience method
63  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
64  vtkInformationVector* outputVector);
65 
70  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
71  vtkInformationVector* outputVector);
72 
79 
80  // see algorithm for more info
83 
84 private:
86  void operator=(const vtkAnnotationLayersAlgorithm&) = delete;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
Superclass for algorithms that produce only vtkAnnotationLayers as output.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAnnotationLayers * GetOutput()
Get the output data object for a port on this algorithm.
void SetInputData(int index, vtkDataObject *obj)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
vtkAnnotationLayers * GetOutput(int index)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkAnnotationLayersAlgorithm * New()
~vtkAnnotationLayersAlgorithm() override
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Stores a ordered collection of annotation sets.
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkTypeBool
Definition: vtkABI.h:64