Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkImageRectangularSource.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 #ifndef __vtkImageRectangularSource_h
00008 #define __vtkImageRectangularSource_h
00009 
00010 #include "vtkImageSource.h"
00011 #include "vtkSlicerBaseLogic.h"
00012 
00013 class  VTK_SLICER_BASE_LOGIC_EXPORT vtkImageRectangularSource : public vtkImageSource
00014 {
00015 public:
00016   static vtkImageRectangularSource *New();
00017   vtkTypeRevisionMacro(vtkImageRectangularSource,vtkImageSource);
00018   void PrintSelf(ostream& os, vtkIndent indent);   
00019   
00022   void SetWholeExtent(int extent[6]);
00023   void SetWholeExtent(int minX, int maxX, int minY, int maxY, 
00024                             int minZ, int maxZ);
00025   void GetWholeExtent(int extent[6]);
00026   int *GetWholeExtent() {return this->WholeExtent;}
00027   
00030   vtkSetVector3Macro(Center, int);
00031   vtkGetVector3Macro(Center, int);
00032   
00035   vtkSetVector3Macro(Size, int);
00036   vtkGetVector3Macro(Size, int);
00037 
00040   vtkSetMacro(InValue,float);
00041   vtkGetMacro(InValue,float);
00042 
00045   vtkSetMacro(OutValue,float);
00046   vtkGetMacro(OutValue,float);
00047 
00050   vtkSetMacro(InsideGraySlopeFlag,int);
00051   vtkGetMacro(InsideGraySlopeFlag,int);
00052 
00055   vtkSetMacro(OutputScalarType,int);
00056   vtkGetMacro(OutputScalarType,int);
00057   void SetOutputScalarTypeToDouble()
00058     {this->SetOutputScalarType(VTK_DOUBLE);}
00059   void SetOutputScalarTypeToFloat()
00060     {this->SetOutputScalarType(VTK_FLOAT);}
00061   void SetOutputScalarTypeToLong()
00062     {this->SetOutputScalarType(VTK_LONG);}
00063   void SetOutputScalarTypeToUnsignedLong()
00064     {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
00065   void SetOutputScalarTypeToInt()
00066     {this->SetOutputScalarType(VTK_INT);}
00067   void SetOutputScalarTypeToUnsignedInt()
00068     {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
00069   void SetOutputScalarTypeToShort()
00070     {this->SetOutputScalarType(VTK_SHORT);}
00071   void SetOutputScalarTypeToUnsignedShort()
00072     {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
00073   void SetOutputScalarTypeToChar()
00074     {this->SetOutputScalarType(VTK_CHAR);}
00075   void SetOutputScalarTypeToUnsignedChar()
00076     {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
00077 
00079   void SetCorners(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
00080 
00081 protected:
00082   vtkImageRectangularSource();
00083   ~vtkImageRectangularSource();
00084 
00085   int **Corners;
00086 
00087   int WholeExtent[6];
00088   int Center[3];
00089   int Size[3];
00090   float InValue;
00091   float OutValue;
00092   int OutputScalarType;
00093   int InsideGraySlopeFlag;
00094   
00095   virtual void ExecuteInformation();
00096   virtual void ExecuteData(vtkDataObject *outData);
00097 private:
00098   vtkImageRectangularSource(const vtkImageRectangularSource&);  
00099   void operator=(const vtkImageRectangularSource&);  
00100 };
00101 
00102 
00103 #endif
00104 
00105 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines