VTK
dox/Filters/Texture/vtkTextureMapToPlane.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTextureMapToPlane.h
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 =========================================================================*/
00045 #ifndef __vtkTextureMapToPlane_h
00046 #define __vtkTextureMapToPlane_h
00047 
00048 #include "vtkFiltersTextureModule.h" // For export macro
00049 #include "vtkDataSetAlgorithm.h"
00050 
00051 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
00052 {
00053 public:
00054   vtkTypeMacro(vtkTextureMapToPlane,vtkDataSetAlgorithm);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056 
00059   static vtkTextureMapToPlane *New();
00060 
00062 
00064   vtkSetVector3Macro(Origin,double);
00065   vtkGetVectorMacro(Origin,double,3);
00067 
00069 
00070   vtkSetVector3Macro(Point1,double);
00071   vtkGetVectorMacro(Point1,double,3);
00073 
00075 
00076   vtkSetVector3Macro(Point2,double);
00077   vtkGetVectorMacro(Point2,double,3);
00079 
00081 
00084   vtkSetVector3Macro(Normal,double);
00085   vtkGetVectorMacro(Normal,double,3);
00087 
00089 
00090   vtkSetVector2Macro(SRange,double);
00091   vtkGetVectorMacro(SRange,double,2);
00093 
00095 
00096   vtkSetVector2Macro(TRange,double);
00097   vtkGetVectorMacro(TRange,double,2);
00099 
00101 
00102   vtkSetMacro(AutomaticPlaneGeneration,int);
00103   vtkGetMacro(AutomaticPlaneGeneration,int);
00104   vtkBooleanMacro(AutomaticPlaneGeneration,int);
00106 
00107 protected:
00108   vtkTextureMapToPlane();
00109   ~vtkTextureMapToPlane() {};
00110 
00111   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00112   void ComputeNormal(vtkDataSet *output);
00113 
00114   double Origin[3];
00115   double Point1[3];
00116   double Point2[3];
00117   double Normal[3];
00118   double SRange[2];
00119   double TRange[2];
00120   int AutomaticPlaneGeneration;
00121 
00122 private:
00123   vtkTextureMapToPlane(const vtkTextureMapToPlane&);  // Not implemented.
00124   void operator=(const vtkTextureMapToPlane&);  // Not implemented.
00125 };
00126 
00127 #endif