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

vtkSpherePuzzleArrows.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSpherePuzzleArrows.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 =========================================================================*/
00039 #ifndef __vtkSpherePuzzleArrows_h
00040 #define __vtkSpherePuzzleArrows_h
00041 
00042 #include "vtkPolyDataSource.h"
00043 
00044 class vtkCellArray;
00045 class vtkPoints;
00046 class vtkSpherePuzzle;
00047 
00048 class VTK_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataSource 
00049 {
00050 public:
00051   vtkTypeRevisionMacro(vtkSpherePuzzleArrows,vtkPolyDataSource);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00054   static vtkSpherePuzzleArrows *New();
00055 
00057   vtkSetVectorMacro(Permutation,int,32);
00058   vtkGetVectorMacro(Permutation,int,32);
00059   void SetPermutationComponent(int comp, int val);
00060   void SetPermutation(vtkSpherePuzzle *puz);
00062 
00063 protected:
00064   vtkSpherePuzzleArrows();
00065   ~vtkSpherePuzzleArrows();
00066 
00067   void Execute();
00068   void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys);
00069   
00070   int Permutation[32];
00071 
00072   double Radius;
00073 
00074 private:
00075   vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&); // Not implemented
00076   void operator=(const vtkSpherePuzzleArrows&); // Not implemented
00077 };
00078 
00079 #endif
00080 
00081