VTK: Filters/Modeling/vtkSpherePuzzleArrows.h Source File

| 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:
27 vtkTypeMacro(vtkSpherePuzzleArrows, vtkPolyDataAlgorithm);
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:
46 vtkSpherePuzzleArrows();
47 ~vtkSpherePuzzleArrows() override;
48
49 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
50 void AppendArrow(int id1, int id2, vtkPoints* pts, vtkCellArray* polys);
51
52 int Permutation[32];
53
54 double Radius;
55
56 private:
57 vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&) = delete;
58 void operator=(const vtkSpherePuzzleArrows&) = delete;
59 };
60
61 VTK_ABI_NAMESPACE_END
62 #endif
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:185
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkSpherePuzzleArrows
Visualize permutation of the sphere puzzle.
Definition: vtkSpherePuzzleArrows.h:25
vtkSpherePuzzleArrows::vtkSpherePuzzleArrows
vtkSpherePuzzleArrows()
vtkSpherePuzzleArrows::SetPermutationComponent
void SetPermutationComponent(int comp, int val)
Permutation is an array of puzzle piece ids.
vtkSpherePuzzleArrows::Radius
double Radius
Definition: vtkSpherePuzzleArrows.h:54
vtkSpherePuzzleArrows::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSpherePuzzleArrows::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSpherePuzzleArrows::SetPermutation
void SetPermutation(vtkSpherePuzzle *puz)
Permutation is an array of puzzle piece ids.
vtkSpherePuzzleArrows::AppendArrow
void AppendArrow(int id1, int id2, vtkPoints *pts, vtkCellArray *polys)
vtkSpherePuzzleArrows::~vtkSpherePuzzleArrows
~vtkSpherePuzzleArrows() override
vtkSpherePuzzleArrows::New
static vtkSpherePuzzleArrows * New()
vtkSpherePuzzle
create a polygonal sphere centered at the origin
Definition: vtkSpherePuzzle.h:25
vtkPolyDataAlgorithm.h