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 =========================================================================*/ 00023 #ifndef __vtkMemoryLimitImageDataStreamer_h 00024 #define __vtkMemoryLimitImageDataStreamer_h 00025 00026 #include "vtkImageDataStreamer.h" 00027 00028 00029 class VTK_PARALLEL_EXPORT vtkMemoryLimitImageDataStreamer : public vtkImageDataStreamer 00030 { 00031 public: 00032 static vtkMemoryLimitImageDataStreamer *New(); 00033 vtkTypeRevisionMacro(vtkMemoryLimitImageDataStreamer,vtkImageDataStreamer); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00037 00038 vtkSetMacro(MemoryLimit, unsigned long); 00039 vtkGetMacro(MemoryLimit, unsigned long); 00041 00043 void UpdateData( vtkDataObject *out ); 00044 00045 protected: 00046 vtkMemoryLimitImageDataStreamer(); 00047 ~vtkMemoryLimitImageDataStreamer() {}; 00048 00049 unsigned long MemoryLimit; 00050 private: 00051 vtkMemoryLimitImageDataStreamer(const vtkMemoryLimitImageDataStreamer&); // Not implemented. 00052 void operator=(const vtkMemoryLimitImageDataStreamer&); // Not implemented. 00053 }; 00054 00055 00056 00057 00058 #endif 00059 00060 00061