VTK
dox/Imaging/Hybrid/vtkSliceCubes.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkSliceCubes.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 =========================================================================*/
00051 #ifndef __vtkSliceCubes_h
00052 #define __vtkSliceCubes_h
00053 
00054 #include "vtkImagingHybridModule.h" // For export macro
00055 #include "vtkObject.h"
00056 
00057 class vtkVolumeReader;
00058 
00059 class VTKIMAGINGHYBRID_EXPORT vtkSliceCubes : public vtkObject
00060 {
00061 public:
00062   static vtkSliceCubes *New();
00063   vtkTypeMacro(vtkSliceCubes,vtkObject);
00064   void PrintSelf(ostream& os, vtkIndent indent);
00065 
00066   // methods to make it look like a filter
00067   void Write() {this->Update();};
00068   void Update();
00069 
00071 
00072   virtual void SetReader(vtkVolumeReader*);
00073   vtkGetObjectMacro(Reader,vtkVolumeReader);
00075 
00077 
00078   vtkSetStringMacro(FileName);
00079   vtkGetStringMacro(FileName);
00081 
00083 
00084   vtkSetMacro(Value,double);
00085   vtkGetMacro(Value,double);
00087 
00089 
00091   vtkSetStringMacro(LimitsFileName);
00092   vtkGetStringMacro(LimitsFileName);
00094 
00095 protected:
00096   vtkSliceCubes();
00097   ~vtkSliceCubes();
00098 
00099   void Execute();
00100 
00101   vtkVolumeReader *Reader;
00102   char *FileName;
00103   double Value;
00104   char *LimitsFileName;
00105 
00106 private:
00107   vtkSliceCubes(const vtkSliceCubes&);  // Not implemented.
00108   void operator=(const vtkSliceCubes&);  // Not implemented.
00109 };
00110 
00111 #endif