VTK  9.1.0
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=========================================================================*/
22#ifndef vtkSpherePuzzleArrows_h
23#define vtkSpherePuzzleArrows_h
24
25#include "vtkFiltersModelingModule.h" // For export macro
27
28class vtkCellArray;
29class vtkPoints;
30class vtkSpherePuzzle;
31
32class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
41
47 vtkSetVectorMacro(Permutation, int, 32);
48 vtkGetVectorMacro(Permutation, int, 32);
49 void SetPermutationComponent(int comp, int val);
52
53protected:
56
58 void AppendArrow(int id1, int id2, vtkPoints* pts, vtkCellArray* polys);
59
60 int Permutation[32];
61
62 double Radius;
63
64private:
66 void operator=(const vtkSpherePuzzleArrows&) = delete;
67};
68
69#endif
object to represent cell connectivity
Definition: vtkCellArray.h:290
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:143
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