VTK
vtkSpherePuzzleArrows.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSpherePuzzleArrows.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef __vtkSpherePuzzleArrows_h
28 #define __vtkSpherePuzzleArrows_h
29 
30 #include "vtkPolyDataAlgorithm.h"
31 
32 class vtkCellArray;
33 class vtkPoints;
34 class vtkSpherePuzzle;
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
42  static vtkSpherePuzzleArrows *New();
43 
45 
49  vtkSetVectorMacro(Permutation,int,32);
50  vtkGetVectorMacro(Permutation,int,32);
51  void SetPermutationComponent(int comp, int val);
52  void SetPermutation(vtkSpherePuzzle *puz);
54 
55 protected:
58 
60  void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys);
61 
62  int Permutation[32];
63 
64  double Radius;
65 
66 private:
67  vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&); // Not implemented
68  void operator=(const vtkSpherePuzzleArrows&); // Not implemented
69 };
70 
71 #endif
Visualize permutation of the sphere puzzle.
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
create a polygonal sphere centered at the origin
a simple class to control print indentation
Definition: vtkIndent.h:37
object to represent cell connectivity
Definition: vtkCellArray.h:48
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38