VTK  9.2.6
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 =========================================================================*/
25 #ifndef vtkSpherePuzzleArrows_h
26 #define vtkSpherePuzzleArrows_h
27 
28 #include "vtkFiltersModelingModule.h" // For export macro
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class vtkCellArray;
32 class vtkPoints;
33 class vtkSpherePuzzle;
34 
35 class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  static vtkSpherePuzzleArrows* New();
42 
44 
50  vtkSetVectorMacro(Permutation, int, 32);
51  vtkGetVectorMacro(Permutation, int, 32);
52  void SetPermutationComponent(int comp, int val);
53  void SetPermutation(vtkSpherePuzzle* puz);
55 
56 protected:
58  ~vtkSpherePuzzleArrows() override;
59 
61  void AppendArrow(int id1, int id2, vtkPoints* pts, vtkCellArray* polys);
62 
63  int Permutation[32];
64 
65  double Radius;
66 
67 private:
69  void operator=(const vtkSpherePuzzleArrows&) = delete;
70 };
71 
72 #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:186
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.