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 =========================================================================*/
28 #ifndef vtkSpherePuzzleArrows_h
29 #define vtkSpherePuzzleArrows_h
30 
31 #include "vtkFiltersModelingModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class vtkCellArray;
35 class vtkPoints;
36 class vtkSpherePuzzle;
37 
38 class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
44  static vtkSpherePuzzleArrows *New();
45 
47 
53  vtkSetVectorMacro(Permutation,int,32);
54  vtkGetVectorMacro(Permutation,int,32);
55  void SetPermutationComponent(int comp, int val);
56  void SetPermutation(vtkSpherePuzzle *puz);
58 
59 protected:
61  ~vtkSpherePuzzleArrows() override;
62 
64  void AppendArrow(int id1, int id2, vtkPoints *pts, vtkCellArray *polys);
65 
66  int Permutation[32];
67 
68  double Radius;
69 
70 private:
72  void operator=(const vtkSpherePuzzleArrows&) = delete;
73 };
74 
75 #endif
Visualize permutation of the sphere puzzle.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
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:39
object to represent cell connectivity
Definition: vtkCellArray.h:50
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.