VTK  9.3.1
vtkSpherePuzzleArrows.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSpherePuzzleArrows_h
14 #define vtkSpherePuzzleArrows_h
15 
16 #include "vtkFiltersModelingModule.h" // For export macro
17 #include "vtkPolyDataAlgorithm.h"
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkCellArray;
21 class vtkPoints;
22 class vtkSpherePuzzle;
23 
24 class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
25 {
26 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
30  static vtkSpherePuzzleArrows* New();
31 
33 
39  vtkSetVectorMacro(Permutation, int, 32);
40  vtkGetVectorMacro(Permutation, int, 32);
41  void SetPermutationComponent(int comp, int val);
42  void SetPermutation(vtkSpherePuzzle* puz);
44 
45 protected:
47  ~vtkSpherePuzzleArrows() override;
48 
50  void AppendArrow(int id1, int id2, vtkPoints* pts, vtkCellArray* polys);
51 
52  int Permutation[32];
53 
54  double Radius;
55 
56 private:
58  void operator=(const vtkSpherePuzzleArrows&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #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:28
object to represent cell connectivity
Definition: vtkCellArray.h:175
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.