VTK
dox/Filters/Modeling/vtkSpherePuzzleArrows.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkSpherePuzzleArrows.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 =========================================================================*/
00027 #ifndef __vtkSpherePuzzleArrows_h
00028 #define __vtkSpherePuzzleArrows_h
00029 
00030 #include "vtkFiltersModelingModule.h" // For export macro
00031 #include "vtkPolyDataAlgorithm.h"
00032 
00033 class vtkCellArray;
00034 class vtkPoints;
00035 class vtkSpherePuzzle;
00036 
00037 class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
00038 {
00039 public:
00040   vtkTypeMacro(vtkSpherePuzzleArrows,vtkPolyDataAlgorithm);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00043   static vtkSpherePuzzleArrows *New();
00044 
00046 
00050   vtkSetVectorMacro(Permutation,int,32);
00051   vtkGetVectorMacro(Permutation,int,32);
00052   void SetPermutationComponent(int comp, int val);
00053   void SetPermutation(vtkSpherePuzzle *puz);
00055 
00056 protected:
00057   vtkSpherePuzzleArrows();
00058   ~vtkSpherePuzzleArrows();
00059 
00060   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00061   void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys);
00062 
00063   int Permutation[32];
00064 
00065   double Radius;
00066 
00067 private:
00068   vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&); // Not implemented
00069   void operator=(const vtkSpherePuzzleArrows&); // Not implemented
00070 };
00071 
00072 #endif