VTK  9.3.20240328
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 
31 
33 
39  vtkSetVectorMacro(Permutation, int, 32);
40  vtkGetVectorMacro(Permutation, int, 32);
41  void SetPermutationComponent(int comp, int val);
44 
45 protected:
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
object to represent cell connectivity
Definition: vtkCellArray.h:285
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:138
Superclass for algorithms that produce only polydata as output.
Visualize permutation of the sphere puzzle.
void SetPermutationComponent(int comp, int val)
Permutation is an array of puzzle piece ids.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPermutation(vtkSpherePuzzle *puz)
Permutation is an array of puzzle piece ids.
void AppendArrow(int id1, int id2, vtkPoints *pts, vtkCellArray *polys)
~vtkSpherePuzzleArrows() override
static vtkSpherePuzzleArrows * New()
create a polygonal sphere centered at the origin