VTK  9.1.0
vtkTrivialProducer.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTrivialProducer.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
26#ifndef vtkTrivialProducer_h
27#define vtkTrivialProducer_h
28
29#include "vtkAlgorithm.h"
30#include "vtkCommonExecutionModelModule.h" // For export macro
31
32class vtkDataObject;
33
34class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialProducer : public vtkAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
48
53 virtual void SetOutput(vtkDataObject* output);
54
60
62
67 vtkSetVector6Macro(WholeExtent, int);
68 vtkGetVector6Macro(WholeExtent, int);
70
77
78protected:
81
85
86 // The real data object.
88
89 int WholeExtent[6];
90
92
93private:
95 void operator=(const vtkTrivialProducer&) = delete;
96};
97
98#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:114
general representation of visualization data
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:76
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:113
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
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
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 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:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287