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

Graphics/vtkSpherePuzzleArrows.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSpherePuzzleArrows.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00043 #ifndef __vtkSpherePuzzleArrows_h
00044 #define __vtkSpherePuzzleArrows_h
00045 
00046 #include "vtkPolyDataSource.h"
00047 
00048 class vtkCellArray;
00049 class vtkPoints;
00050 class vtkSpherePuzzle;
00051 
00052 class VTK_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataSource 
00053 {
00054 public:
00055   vtkTypeRevisionMacro(vtkSpherePuzzleArrows,vtkPolyDataSource);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00058   static vtkSpherePuzzleArrows *New();
00059 
00061   vtkSetVectorMacro(Permutation,int,32);
00062   vtkGetVectorMacro(Permutation,int,32);
00063   void SetPermutationComponent(int comp, int val);
00064   void SetPermutation(vtkSpherePuzzle *puz);
00066 
00067 protected:
00068   vtkSpherePuzzleArrows();
00069   ~vtkSpherePuzzleArrows();
00070 
00071   void Execute();
00072   void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys);
00073   
00074   int Permutation[32];
00075 
00076   float Radius;
00077 
00078 private:
00079   vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&); // Not implemented
00080   void operator=(const vtkSpherePuzzleArrows&); // Not implemented
00081 };
00082 
00083 #endif
00084 
00085