00001 /*========================================================================= 00002 00003 Program: vtkCNMRRLibrary 00004 Module: $RCSfile: vtkImageSliceGradient.h,v $ 00005 00006 Copyright 2006 The Pennsylvania State University 00007 00008 Notice 00009 00010 The contents of this file are subject to The Pennsylvania State University 00011 Open Source License (the "License"); you may not use this file except in 00012 compliance with the License. You may obtain a copy of the License at H066 00013 Radiology, NMR Building, 500 University Drive, Hershey, PA, 00014 tel. (717) 531-6069 or via email at dcb210@psu.edu. 00015 00016 Software distributed under the License is distributed on an "AS IS" basis, 00017 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00018 for the specific language governing rights and limitations under the 00019 License. 00020 00021 The Original Code is listed under Exhibit A of the license. 00022 00023 The Initial Developer of the Original Code is Don Bigler. 00024 00025 Contributor(s): 00026 00027 =========================================================================*/ 00048 #ifndef __vtkImageSliceGradient_h 00049 #define __vtkImageSliceGradient_h 00050 00051 #include "vtkSimpleImageToImageFilter.h" 00052 #include "vtkCNMRRImagingWin32Header.h" 00053 00054 class VTK_CNMRR_IMAGING_EXPORT vtkImageSliceGradient : public vtkSimpleImageToImageFilter 00055 { 00056 public: 00057 static vtkImageSliceGradient *New(); 00058 vtkTypeRevisionMacro(vtkImageSliceGradient,vtkSimpleImageToImageFilter); 00059 00061 void SetEchoTimes(double *time, int num); 00062 00064 double *GetEchoTimes(int &num); 00065 00067 00068 vtkSetMacro(SpacingScaleFactor,double); 00069 vtkGetMacro(SpacingScaleFactor,double); 00071 00073 00074 vtkSetMacro(PrecessionFrequency,double); 00075 vtkGetMacro(PrecessionFrequency,double); 00077 00078 protected: 00079 00080 vtkImageSliceGradient(); 00081 ~vtkImageSliceGradient(); 00082 00083 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output); 00084 00085 private: 00086 vtkImageSliceGradient(const vtkImageSliceGradient&); // Not implemented. 00087 void operator=(const vtkImageSliceGradient&); // Not implemented. 00088 00089 double SpacingScaleFactor; 00090 double PrecessionFrequency; 00091 double *EchoTimes; 00092 int NumberOfEchoTimes; 00093 }; 00094 00095 #endif
1.4.7