VTK
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 =========================================================================*/
29 #ifndef vtkTrivialProducer_h
30 #define vtkTrivialProducer_h
31 
32 #include "vtkCommonExecutionModelModule.h" // For export macro
33 #include "vtkAlgorithm.h"
34 
35 class vtkDataObject;
36 
37 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialProducer : public vtkAlgorithm
38 {
39 public:
40  static vtkTrivialProducer *New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
51  vtkInformationVector*) override;
52 
57  virtual void SetOutput(vtkDataObject* output);
58 
63  vtkMTimeType GetMTime() override;
64 
66 
71  vtkSetVector6Macro(WholeExtent, int);
72  vtkGetVector6Macro(WholeExtent, int);
74 
80  static void FillOutputDataInformation(vtkDataObject* output,
81  vtkInformation* outInfo);
82 
83 protected:
85  ~vtkTrivialProducer() override;
86 
87  int FillInputPortInformation(int, vtkInformation*) override;
88  int FillOutputPortInformation(int, vtkInformation*) override;
90 
91  // The real data object.
93 
94  int WholeExtent[6];
95 
96  void ReportReferences(vtkGarbageCollector*) override;
97 private:
98  vtkTrivialProducer(const vtkTrivialProducer&) = delete;
99  void operator=(const vtkTrivialProducer&) = delete;
100 };
101 
102 #endif
vtkAlgorithm::CreateDefaultExecutive
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
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:41
vtkTrivialProducer::Output
vtkDataObject * Output
Definition: vtkTrivialProducer.h:92
vtkTrivialProducer
Producer for stand-alone data objects.
Definition: vtkTrivialProducer.h:37
vtkAlgorithm.h
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:49
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:99
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
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:64
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302