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 =========================================================================*/
26 #ifndef vtkTrivialProducer_h
27 #define vtkTrivialProducer_h
28 
29 #include "vtkCommonExecutionModelModule.h" // For export macro
30 #include "vtkAlgorithm.h"
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) VTK_OVERRIDE;
40 
48  vtkInformationVector*) VTK_OVERRIDE;
49 
54  virtual void SetOutput(vtkDataObject* output);
55 
60  vtkMTimeType GetMTime() VTK_OVERRIDE;
61 
63 
68  vtkSetVector6Macro(WholeExtent, int);
69  vtkGetVector6Macro(WholeExtent, int);
71 
77  static void FillOutputDataInformation(vtkDataObject* output,
78  vtkInformation* outInfo);
79 
80 protected:
82  ~vtkTrivialProducer() VTK_OVERRIDE;
83 
84  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
85  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
86  vtkExecutive* CreateDefaultExecutive() VTK_OVERRIDE;
87 
88  // The real data object.
89  vtkDataObject* Output;
90 
91  int WholeExtent[6];
92 
93  void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
94 private:
95  vtkTrivialProducer(const vtkTrivialProducer&) VTK_DELETE_FUNCTION;
96  void operator=(const vtkTrivialProducer&) VTK_DELETE_FUNCTION;
97 };
98 
99 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:46
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Detect and break reference loops.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
Producer for stand-alone data objects.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:58