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
35class vtkDataObject;
36
37class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialProducer : public vtkAlgorithm
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43
51 vtkInformationVector*) VTK_OVERRIDE;
52
57 virtual void SetOutput(vtkDataObject* output);
58
63 vtkMTimeType GetMTime() VTK_OVERRIDE;
64
66
71 vtkSetVector6Macro(WholeExtent, int);
72 vtkGetVector6Macro(WholeExtent, int);
74
80 static void FillOutputDataInformation(vtkDataObject* output,
81 vtkInformation* outInfo);
82
83protected:
85 ~vtkTrivialProducer() VTK_OVERRIDE;
86
87 int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
88 int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
89 vtkExecutive* CreateDefaultExecutive() VTK_OVERRIDE;
90
91 // The real data object.
93
94 int WholeExtent[6];
95
96 void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
97private:
98 vtkTrivialProducer(const vtkTrivialProducer&) VTK_DELETE_FUNCTION;
99 void operator=(const vtkTrivialProducer&) VTK_DELETE_FUNCTION;
100};
101
102#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
general representation of visualization data
Definition: vtkDataObject.h:65
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:50
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:40
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.
virtual void SetOutput(vtkDataObject *output)
Set the data object that is "produced" by this producer.
static vtkTrivialProducer * New()
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process upstream/downstream requests trivially.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248