VTK  9.3.20241006
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
28VTK_ABI_NAMESPACE_BEGIN
29class vtkDataSet;
30
31class VTKCOMMONEXECUTIONMODEL_EXPORT vtkAnnotationLayersAlgorithm : public vtkAlgorithm
32{
33public:
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
58protected:
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
81 int FillOutputPortInformation(int port, vtkInformation* info) override;
82 int FillInputPortInformation(int port, vtkInformation* info) override;
83
84private:
86 void operator=(const vtkAnnotationLayersAlgorithm&) = delete;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
Superclass for all sources, filters, and sinks in VTK.
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)
vtkAnnotationLayers * GetOutput()
Get the output data object for a port on this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
~vtkAnnotationLayersAlgorithm() override
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkAnnotationLayersAlgorithm * New()
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:166
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64