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

vtkImageMandelbrotSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMandelbrotSource.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkImageMandelbrotSource_h
00036 #define __vtkImageMandelbrotSource_h
00037 
00038 #include "vtkImageAlgorithm.h"
00039 
00040 class VTK_IMAGING_EXPORT vtkImageMandelbrotSource : public vtkImageAlgorithm
00041 {
00042 public:
00043   static vtkImageMandelbrotSource *New();
00044   vtkTypeRevisionMacro(vtkImageMandelbrotSource,vtkImageAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);   
00046   
00048 
00049   void SetWholeExtent(int extent[6]);
00050   void SetWholeExtent(int minX, int maxX, int minY, int maxY, 
00051                             int minZ, int maxZ);
00052   vtkGetVector6Macro(WholeExtent,int);
00054   
00056 
00058   vtkSetMacro(ConstantSize, int);
00059   vtkGetMacro(ConstantSize, int);
00060   vtkBooleanMacro(ConstantSize, int);
00062 
00064 
00067   void SetProjectionAxes(int x, int y, int z);
00068   void SetProjectionAxes(int a[3]) {this->SetProjectionAxes(a[0],a[1],a[2]);}
00069   vtkGetVector3Macro(ProjectionAxes, int);
00071 
00073 
00075   vtkSetVector4Macro(OriginCX, double);
00076   //void SetOriginCX(double cReal, double cImag, double xReal, double xImag);
00077   vtkGetVector4Macro(OriginCX, double);
00079 
00081 
00083   vtkSetVector4Macro(SampleCX, double);
00084   //void SetOriginCX(double cReal, double cImag, double xReal, double xImag);
00085   vtkGetVector4Macro(SampleCX, double);
00087 
00089 
00092   void SetSizeCX(double cReal, double cImag, double xReal, double xImag);
00093   double *GetSizeCX();
00094   void GetSizeCX(double s[4]);
00096 
00098 
00099   vtkSetClampMacro(MaximumNumberOfIterations, unsigned short, 1, 5000);
00100   vtkGetMacro(MaximumNumberOfIterations, unsigned short);
00102 
00104 
00106   void Zoom(double factor);
00107   void Pan(double x, double y, double z);
00109 
00112   void CopyOriginAndSample(vtkImageMandelbrotSource *source); 
00113 
00114 protected:
00115   vtkImageMandelbrotSource();
00116   ~vtkImageMandelbrotSource();
00117 
00118   int ProjectionAxes[3];
00119 
00120   // WholeExtent in 3 space (after projection).
00121   int WholeExtent[6];
00122 
00123   // Complex constant/initial-value at origin.
00124   double OriginCX[4];
00125   // Initial complex value at origin.
00126   double SampleCX[4];
00127   unsigned short MaximumNumberOfIterations;
00128 
00129   // A temporary vector that is computed as needed.
00130   // It is used to return a vector.
00131   double SizeCX[4];
00132 
00133   // A flag for keeping size constant (vs. keeping the spacing).
00134   int ConstantSize;
00135 
00136   // see vtkAlgorithm for details
00137   virtual int RequestData(vtkInformation *request,
00138                           vtkInformationVector** inputVector,
00139                           vtkInformationVector* outputVector);
00140 
00141   virtual int RequestInformation (vtkInformation *, 
00142                                   vtkInformationVector**, 
00143                                   vtkInformationVector *);
00144   double EvaluateSet(double p[4]);
00145 private:
00146   vtkImageMandelbrotSource(const vtkImageMandelbrotSource&);  // Not implemented.
00147   void operator=(const vtkImageMandelbrotSource&);  // Not implemented.
00148 };
00149 
00150 
00151 #endif
00152 
00153 

Generated on Mon Jan 21 23:07:29 2008 for VTK by  doxygen 1.4.3-20050530