VTK  9.3.0
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
18
19VTK_ABI_NAMESPACE_BEGIN
20class vtkCellArray;
21class vtkPoints;
22class vtkSpherePuzzle;
23
24class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
25{
26public:
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
45protected:
48
50 void AppendArrow(int id1, int id2, vtkPoints* pts, vtkCellArray* polys);
51
52 int Permutation[32];
53
54 double Radius;
55
56private:
58 void operator=(const vtkSpherePuzzleArrows&) = delete;
59};
60
61VTK_ABI_NAMESPACE_END
62#endif
object to represent cell connectivity
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:29
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.
static vtkSpherePuzzleArrows * New()
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
create a polygonal sphere centered at the origin