VTK
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=========================================================================*/
28#ifndef vtkSpherePuzzleArrows_h
29#define vtkSpherePuzzleArrows_h
30
31#include "vtkFiltersModelingModule.h" // For export macro
33
34class vtkCellArray;
35class vtkPoints;
36class vtkSpherePuzzle;
37
38class VTKFILTERSMODELING_EXPORT vtkSpherePuzzleArrows : public vtkPolyDataAlgorithm
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent);
43
45
47
53 vtkSetVectorMacro(Permutation,int,32);
54 vtkGetVectorMacro(Permutation,int,32);
55 void SetPermutationComponent(int comp, int val);
58
59protected:
62
64 void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys);
65
66 int Permutation[32];
67
68 double Radius;
69
70private:
71 vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&) VTK_DELETE_FUNCTION;
72 void operator=(const vtkSpherePuzzleArrows&) VTK_DELETE_FUNCTION;
73};
74
75#endif
object to represent cell connectivity
Definition: vtkCellArray.h:51
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only polydata as output.
Visualize permutation of the sphere puzzle.
void SetPermutationComponent(int comp, int val)
static vtkSpherePuzzleArrows * New()
void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetPermutation(vtkSpherePuzzle *puz)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
create a polygonal sphere centered at the origin