VTK  9.3.0
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
17 #ifndef vtkTrivialProducer_h
18 #define vtkTrivialProducer_h
19 
20 #include "vtkAlgorithm.h"
21 #include "vtkCommonExecutionModelModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkDataObject;
25 
26 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialProducer : public vtkAlgorithm
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
40 
45  virtual void SetOutput(vtkDataObject* output);
46 
51  vtkMTimeType GetMTime() override;
52 
54 
59  vtkSetVector6Macro(WholeExtent, int);
60  vtkGetVector6Macro(WholeExtent, int);
62 
68  static void FillOutputDataInformation(vtkDataObject* output, vtkInformation* outInfo);
69 
70 protected:
72  ~vtkTrivialProducer() override;
73 
77 
78  // The real data object.
80 
81  int WholeExtent[6];
82 
84 
85 private:
86  vtkTrivialProducer(const vtkTrivialProducer&) = delete;
87  void operator=(const vtkTrivialProducer&) = delete;
88 };
89 
90 VTK_ABI_NAMESPACE_END
91 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
general representation of visualization data
Definition: vtkDataObject.h:64
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:48
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Producer for stand-alone data objects.
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
static vtkTrivialProducer * New()
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process upstream/downstream requests trivially.
~vtkTrivialProducer() override
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 void FillOutputDataInformation(vtkDataObject *output, vtkInformation *outInfo)
This method can be used to copy meta-data from an existing data object to an information object.
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270