VTK
dox/Common/ExecutionModel/vtkTrivialProducer.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTrivialProducer.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00028 #ifndef __vtkTrivialProducer_h
00029 #define __vtkTrivialProducer_h
00030 
00031 #include "vtkCommonExecutionModelModule.h" // For export macro
00032 #include "vtkAlgorithm.h"
00033 
00034 class vtkDataObject;
00035 
00036 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialProducer : public vtkAlgorithm
00037 {
00038 public:
00039   static vtkTrivialProducer *New();
00040   vtkTypeMacro(vtkTrivialProducer,vtkAlgorithm);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00047   virtual int ProcessRequest(vtkInformation*,
00048                              vtkInformationVector**,
00049                              vtkInformationVector*);
00051 
00054   virtual void SetOutput(vtkDataObject* output);
00055 
00057 
00059   virtual unsigned long GetMTime();
00060 protected:
00061   vtkTrivialProducer();
00062   ~vtkTrivialProducer();
00064 
00065   virtual int FillInputPortInformation(int, vtkInformation*);
00066   virtual int FillOutputPortInformation(int, vtkInformation*);
00067   virtual vtkExecutive* CreateDefaultExecutive();
00068 
00069   // The real data object.
00070   vtkDataObject* Output;
00071 
00072   virtual void ReportReferences(vtkGarbageCollector*);
00073 private:
00074   vtkTrivialProducer(const vtkTrivialProducer&);  // Not implemented.
00075   void operator=(const vtkTrivialProducer&);  // Not implemented.
00076 };
00077 
00078 #endif