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

Servers/Filters/vtkSurfaceVectors.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSurfaceVectors.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 =========================================================================*/
00023 #ifndef __vtkSurfaceVectors_h
00024 #define __vtkSurfaceVectors_h
00025 
00026 #include "vtkDataSetAlgorithm.h"
00027 
00028 class vtkFloatArray;
00029 class vtkIdList;
00030 
00031 class VTK_EXPORT vtkSurfaceVectors : public vtkDataSetAlgorithm
00032 {
00033 public:
00034   vtkTypeRevisionMacro(vtkSurfaceVectors,vtkDataSetAlgorithm);
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036   static vtkSurfaceVectors *New();
00037 
00038 //BTX
00039   enum ConstraintMode {
00040     Parallel = 0,
00041     Perpendicular,
00042     PerpendicularScale
00043   };
00044 //ETX
00045 
00047 
00050   vtkSetMacro(ConstraintMode,int);
00051   vtkGetMacro(ConstraintMode,int);
00052   void SetConstraintModeToParallel() 
00053     {this->SetConstraintMode(vtkSurfaceVectors::Parallel);}
00054   void SetConstraintModeToPerpendicular() 
00055     {this->SetConstraintMode(vtkSurfaceVectors::Perpendicular);}
00056   void SetConstraintModeToPerpendicularScale() 
00057     {this->SetConstraintMode(vtkSurfaceVectors::PerpendicularScale);}
00059     
00060 protected:
00061   vtkSurfaceVectors();
00062   ~vtkSurfaceVectors();
00063 
00064   // Usual data generation method
00065   virtual int RequestData(vtkInformation *, 
00066                           vtkInformationVector **, 
00067                           vtkInformationVector *);
00068   virtual int RequestUpdateExtent(vtkInformation*,
00069                                   vtkInformationVector**,
00070                                   vtkInformationVector*);
00071 
00072   int   ConstraintMode;
00073 
00074 private:
00075   vtkSurfaceVectors(const vtkSurfaceVectors&);  // Not implemented.
00076   void operator=(const vtkSurfaceVectors&);  // Not implemented.
00077 };
00078 
00079 #endif

Generated on Tue May 30 12:31:47 2006 for ParaView by doxygen 1.3.5