VTK  9.5.20251125
vtkTrivialProducer.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
16
17#ifndef vtkTrivialProducer_h
18#define vtkTrivialProducer_h
19
20#include "vtkAlgorithm.h"
21#include "vtkCommonExecutionModelModule.h" // For export macro
22#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkDataObject;
26
27class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkTrivialProducer : public vtkAlgorithm
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
41
46 VTK_MARSHALSETTER(OutputDataObject)
47 virtual void SetOutput(vtkDataObject* output);
48
54
56
61 vtkSetVector6Macro(WholeExtent, int);
62 vtkGetVector6Macro(WholeExtent, int);
64
71
72protected:
74 ~vtkTrivialProducer() override;
75
79
80 // The real data object.
82
84
86
87private:
89 void operator=(const vtkTrivialProducer&) = delete;
90};
91
92VTK_ABI_NAMESPACE_END
93#endif
general representation of visualization data
Superclass for all pipeline executives in VTK.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
friend class vtkGarbageCollector
Some classes need to clear the reference counts manually due to the way they work.
vtkMTimeType GetMTime() override
The modified time of this producer is the newer of this object or the assigned output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReportReferences(vtkGarbageCollector *) override
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process upstream/downstream requests trivially.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
virtual void SetOutput(vtkDataObject *output)
Set the data object that is "produced" by this producer.
vtkDataObject * Output
static vtkTrivialProducer * New()
static void FillOutputDataInformation(vtkDataObject *output, vtkInformation *outInfo)
This method can be used to copy meta-data from an existing data object to an information object.
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_MARSHALSETTER(property)
#define VTK_MARSHALAUTO