Imaging/vtkImageGridSource.h Source File

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

# 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 =========================================================================*/
    00040 #ifndef __vtkImageGridSource_h
    00041 #define __vtkImageGridSource_h
    00042
    00043 #include "vtkImageSource.h"
    00044
    00045 class VTK_IMAGING_EXPORT vtkImageGridSource : public vtkImageSource
    00046 {
    00047 public:
    00048   static vtkImageGridSource *New();
    00049   vtkTypeRevisionMacro(vtkImageGridSource,vtkImageSource);
    00050   void PrintSelf(ostream& os, vtkIndent indent);
    00051
    00053
    00055   vtkSetVector3Macro(GridSpacing,int);
    00056   vtkGetVector3Macro(GridSpacing,int);
    00058
    00060
    00061   vtkSetVector3Macro(GridOrigin,int);
    00062   vtkGetVector3Macro(GridOrigin,int);
    00064
    00066
    00067   vtkSetMacro(LineValue,float);
    00068   vtkGetMacro(LineValue,float);
    00070
    00072
    00073   vtkSetMacro(FillValue,float);
    00074   vtkGetMacro(FillValue,float);
    00076
    00078
    00080   vtkSetMacro(DataScalarType,int);
    00081   void SetDataScalarTypeToFloat(){this->SetDataScalarType(VTK_FLOAT);}
    00082   void SetDataScalarTypeToInt(){this->SetDataScalarType(VTK_INT);}
    00083   void SetDataScalarTypeToShort(){this->SetDataScalarType(VTK_SHORT);}
    00084   void SetDataScalarTypeToUnsignedShort()
    00085     {this->SetDataScalarType(VTK_UNSIGNED_SHORT);}
    00086   void SetDataScalarTypeToUnsignedChar()
    00087     {this->SetDataScalarType(VTK_UNSIGNED_CHAR);}
    00088   vtkGetMacro(DataScalarType, int);
    00089   const char *GetDataScalarTypeAsString() {
    00090     return vtkImageScalarTypeNameMacro(this->DataScalarType); }
    00092
    00094
    00096   vtkSetVector6Macro(DataExtent,int);
    00097   vtkGetVector6Macro(DataExtent,int);
    00099
    00101
    00102   vtkSetVector3Macro(DataSpacing,float);
    00103   vtkGetVector3Macro(DataSpacing,float);
    00105
    00107
    00108   vtkSetVector3Macro(DataOrigin,float);
    00109   vtkGetVector3Macro(DataOrigin,float);
    00111
    00112 protected:
    00113   vtkImageGridSource();
    00114   ~vtkImageGridSource() {};
    00115
    00116   int GridSpacing[3];
    00117   int GridOrigin[3];
    00118
    00119   float LineValue;
    00120   float FillValue;
    00121
    00122   int DataScalarType;
    00123
    00124   int DataExtent[6];
    00125   float DataSpacing[3];
    00126   float DataOrigin[3];
    00127
    00128   virtual void ExecuteInformation();
    00129   virtual void ExecuteData(vtkDataObject *data);
    00130 private:
    00131   vtkImageGridSource(const vtkImageGridSource&);  // Not implemented.
    00132   void operator=(const vtkImageGridSource&);  // Not implemented.
    00133 };
    00134
    00135
    00136 #endif