Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Imaging/vtkImageGridSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageGridSource.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00029 #ifndef __vtkImageGridSource_h 00030 #define __vtkImageGridSource_h 00031 00032 #include "vtkImageSource.h" 00033 00034 class VTK_IMAGING_EXPORT vtkImageGridSource : public vtkImageSource 00035 { 00036 public: 00037 static vtkImageGridSource *New(); 00038 vtkTypeRevisionMacro(vtkImageGridSource,vtkImageSource); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00042 00044 vtkSetVector3Macro(GridSpacing,int); 00045 vtkGetVector3Macro(GridSpacing,int); 00047 00049 00050 vtkSetVector3Macro(GridOrigin,int); 00051 vtkGetVector3Macro(GridOrigin,int); 00053 00055 00056 vtkSetMacro(LineValue,float); 00057 vtkGetMacro(LineValue,float); 00059 00061 00062 vtkSetMacro(FillValue,float); 00063 vtkGetMacro(FillValue,float); 00065 00067 00069 vtkSetMacro(DataScalarType,int); 00070 void SetDataScalarTypeToFloat(){this->SetDataScalarType(VTK_FLOAT);} 00071 void SetDataScalarTypeToInt(){this->SetDataScalarType(VTK_INT);} 00072 void SetDataScalarTypeToShort(){this->SetDataScalarType(VTK_SHORT);} 00073 void SetDataScalarTypeToUnsignedShort() 00074 {this->SetDataScalarType(VTK_UNSIGNED_SHORT);} 00075 void SetDataScalarTypeToUnsignedChar() 00076 {this->SetDataScalarType(VTK_UNSIGNED_CHAR);} 00077 vtkGetMacro(DataScalarType, int); 00078 const char *GetDataScalarTypeAsString() { 00079 return vtkImageScalarTypeNameMacro(this->DataScalarType); } 00081 00083 00085 vtkSetVector6Macro(DataExtent,int); 00086 vtkGetVector6Macro(DataExtent,int); 00088 00090 00091 vtkSetVector3Macro(DataSpacing,float); 00092 vtkGetVector3Macro(DataSpacing,float); 00094 00096 00097 vtkSetVector3Macro(DataOrigin,float); 00098 vtkGetVector3Macro(DataOrigin,float); 00100 00101 protected: 00102 vtkImageGridSource(); 00103 ~vtkImageGridSource() {}; 00104 00105 int GridSpacing[3]; 00106 int GridOrigin[3]; 00107 00108 float LineValue; 00109 float FillValue; 00110 00111 int DataScalarType; 00112 00113 int DataExtent[6]; 00114 float DataSpacing[3]; 00115 float DataOrigin[3]; 00116 00117 virtual void ExecuteInformation(); 00118 virtual void ExecuteData(vtkDataObject *data); 00119 private: 00120 vtkImageGridSource(const vtkImageGridSource&); // Not implemented. 00121 void operator=(const vtkImageGridSource&); // Not implemented. 00122 }; 00123 00124 00125 #endif