VTK  9.0.1
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 
32 class vtkDataObject;
33 
34 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialProducer : public vtkAlgorithm
35 {
36 public:
37  static vtkTrivialProducer* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
48 
53  virtual void SetOutput(vtkDataObject* output);
54 
59  vtkMTimeType GetMTime() override;
60 
62 
67  vtkSetVector6Macro(WholeExtent, int);
68  vtkGetVector6Macro(WholeExtent, int);
70 
76  static void FillOutputDataInformation(vtkDataObject* output, vtkInformation* outInfo);
77 
78 protected:
80  ~vtkTrivialProducer() override;
81 
82  int FillInputPortInformation(int, vtkInformation*) override;
83  int FillOutputPortInformation(int, vtkInformation*) override;
85 
86  // The real data object.
88 
89  int WholeExtent[6];
90 
91  void ReportReferences(vtkGarbageCollector*) override;
92 
93 private:
94  vtkTrivialProducer(const vtkTrivialProducer&) = delete;
95  void operator=(const vtkTrivialProducer&) = delete;
96 };
97 
98 #endif
vtkAlgorithm::CreateDefaultExecutive
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTrivialProducer::Output
vtkDataObject * Output
Definition: vtkTrivialProducer.h:87
vtkTrivialProducer
Producer for stand-alone data objects.
Definition: vtkTrivialProducer.h:34
vtkAlgorithm.h
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:46
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:94
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkAlgorithm::ProcessRequest
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293