00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMemoryLimitImageDataStreamer.h,v $ 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 =========================================================================*/ 00026 #ifndef __vtkMemoryLimitImageDataStreamer_h 00027 #define __vtkMemoryLimitImageDataStreamer_h 00028 00029 #include "vtkImageDataStreamer.h" 00030 00031 00032 class VTK_PARALLEL_EXPORT vtkMemoryLimitImageDataStreamer : public vtkImageDataStreamer 00033 { 00034 public: 00035 static vtkMemoryLimitImageDataStreamer *New(); 00036 vtkTypeRevisionMacro(vtkMemoryLimitImageDataStreamer,vtkImageDataStreamer); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 00041 vtkSetMacro(MemoryLimit, unsigned long); 00042 vtkGetMacro(MemoryLimit, unsigned long); 00044 00045 // See the vtkAlgorithm for a desciption of what these do 00046 int ProcessRequest(vtkInformation*, 00047 vtkInformationVector**, 00048 vtkInformationVector*); 00049 00050 protected: 00051 vtkMemoryLimitImageDataStreamer(); 00052 ~vtkMemoryLimitImageDataStreamer() {}; 00053 00054 unsigned long MemoryLimit; 00055 private: 00056 vtkMemoryLimitImageDataStreamer(const vtkMemoryLimitImageDataStreamer&); // Not implemented. 00057 void operator=(const vtkMemoryLimitImageDataStreamer&); // Not implemented. 00058 }; 00059 00060 00061 00062 00063 #endif 00064 00065 00066