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 =========================================================================*/
25 #ifndef __vtkTrivialProducer_h
26 #define __vtkTrivialProducer_h
27 
28 #include "vtkAlgorithm.h"
29 
30 class vtkDataObject;
31 
33 {
34 public:
35  static vtkTrivialProducer *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
43  virtual int ProcessRequest(vtkInformation*,
47 
50  virtual void SetOutput(vtkDataObject* output);
51 
53 
55  virtual unsigned long GetMTime();
56 protected:
60 
61  virtual int FillInputPortInformation(int, vtkInformation*);
62  virtual int FillOutputPortInformation(int, vtkInformation*);
63  virtual vtkExecutive* CreateDefaultExecutive();
64 
65  // The real data object.
67 
69 private:
70  vtkTrivialProducer(const vtkTrivialProducer&); // Not implemented.
71  void operator=(const vtkTrivialProducer&); // Not implemented.
72 };
73 
74 #endif
virtual vtkExecutive * CreateDefaultExecutive()
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
Producer for stand-alone data objects.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDataObject * Output
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)