OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / HP / util / HP / include / vtk / vtkImageStaticCache.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkImageStaticCache.h,v $
5   Language:  C++
6   Date:      $Date: 2002/02/01 06:33:23 $
7   Version:   $Revision: 1.1.1.1 $
8
9 Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
10
11 This software is copyrighted by Ken Martin, Will Schroeder and Bill Lorensen.
12 The following terms apply to all files associated with the software unless
13 explicitly disclaimed in individual files. This copyright specifically does
14 not apply to the related textbook "The Visualization Toolkit" ISBN
15 013199837-4 published by Prentice Hall which is covered by its own copyright.
16
17 The authors hereby grant permission to use, copy, and distribute this
18 software and its documentation for any purpose, provided that existing
19 copyright notices are retained in all copies and that this notice is included
20 verbatim in any distributions. Additionally, the authors grant permission to
21 modify this software and its documentation for any purpose, provided that
22 such modifications are not distributed without the explicit consent of the
23 authors and that existing copyright notices are retained in all copies. Some
24 of the algorithms implemented by this software are patented, observe all
25 applicable patent law.
26
27 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
28 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
29 OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
30 EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
33 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
34 PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS PROVIDED ON AN
35 "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
36 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
37
38
39 =========================================================================*/
40 // .NAME vtkImageStaticCache - Caches an ImageData object
41 // .SECTION Description
42 // vtkImageStaticCache is used to directly cache a vtkImageData object
43 // that has been passed to it.
44
45 #ifndef __vtkImageStaticCache_h
46 #define __vtkImageStaticCache_h
47
48 #include "vtkImageCache.h"
49
50 class VTK_EXPORT vtkImageStaticCache : public vtkImageCache
51 {
52 public:
53   vtkImageStaticCache();
54   ~vtkImageStaticCache();
55   static vtkImageStaticCache *New() {return new vtkImageStaticCache;};
56   const char *GetClassName() {return "vtkImageStaticCache";};
57   void PrintSelf(ostream& os, vtkIndent indent);
58
59   void Update();
60   virtual void UpdateImageInformation();
61   vtkImageData *UpdateAndReturnData();
62   void ReleaseData();
63   virtual unsigned long GetPipelineMTime();
64
65   // Law: for vtkImageIterateFilter
66   vtkImageData *GetData(); 
67
68   // Description:
69   // Set the vtkImageData for this cache to cache. 
70   vtkSetObjectMacro(CachedData, vtkImageData);
71   
72 protected:
73   vtkImageData *CachedData;
74 };
75
76 #endif
77
78