00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSliceCubes.h 00005 Language: C++ 00006 00007 00008 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 00009 All rights reserved. 00010 00011 THIS CLASS IS PATENTED UNDER UNITED STATES PATENT NUMBER 4,710,876 00012 "System and Method for the Display of Surface Structures Contained 00013 Within The Interior Region of a Solid body". 00014 Application of this software for commercial purposes requires 00015 a license grant from GE. Contact: 00016 00017 Carl B. Horton 00018 Sr. Counsel, Intellectual Property 00019 3000 N. Grandview Blvd., W-710 00020 Waukesha, WI 53188 00021 Phone: (262) 513-4022 00022 E-Mail: Carl.Horton@med.ge.com 00023 00024 for more information. 00025 00026 Redistribution and use in source and binary forms, with or without 00027 modification, are permitted provided that the following conditions are met: 00028 00029 * Redistributions of source code must retain the above copyright notice, 00030 this list of conditions and the following disclaimer. 00031 00032 * Redistributions in binary form must reproduce the above copyright notice, 00033 this list of conditions and the following disclaimer in the documentation 00034 and/or other materials provided with the distribution. 00035 00036 * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names 00037 of any contributors may be used to endorse or promote products derived 00038 from this software without specific prior written permission. 00039 00040 * Modified source versions must be plainly marked as such, and must not be 00041 misrepresented as being the original software. 00042 00043 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' 00044 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00045 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00046 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR 00047 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00048 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00049 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00050 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00051 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00052 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00053 00054 =========================================================================*/ 00094 #ifndef __vtkSliceCubes_h 00095 #define __vtkSliceCubes_h 00096 00097 #include "vtkObject.h" 00098 #include "vtkVolumeReader.h" 00099 #include "vtkMCubesReader.h" 00100 00101 class VTK_PATENTED_EXPORT vtkSliceCubes : public vtkObject 00102 { 00103 public: 00104 static vtkSliceCubes *New(); 00105 vtkTypeMacro(vtkSliceCubes,vtkObject); 00106 void PrintSelf(ostream& os, vtkIndent indent); 00107 00108 // methods to make it look like a filter 00109 void Write() {this->Update();}; 00110 void Update(); 00111 00113 00114 vtkSetObjectMacro(Reader,vtkVolumeReader); 00115 vtkGetObjectMacro(Reader,vtkVolumeReader); 00117 00119 00120 vtkSetStringMacro(FileName); 00121 vtkGetStringMacro(FileName); 00123 00125 00126 vtkSetMacro(Value,float); 00127 vtkGetMacro(Value,float); 00129 00131 00133 vtkSetStringMacro(LimitsFileName); 00134 vtkGetStringMacro(LimitsFileName); 00136 00137 protected: 00138 vtkSliceCubes(); 00139 ~vtkSliceCubes(); 00140 00141 void Execute(); 00142 00143 vtkVolumeReader *Reader; 00144 char *FileName; 00145 float Value; 00146 char *LimitsFileName; 00147 private: 00148 vtkSliceCubes(const vtkSliceCubes&); // Not implemented. 00149 void operator=(const vtkSliceCubes&); // Not implemented. 00150 }; 00151 00152 #endif 00153