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 =========================================================================*/
27 #ifndef vtkSpherePuzzleArrows_h
28 #define vtkSpherePuzzleArrows_h
29 
30 #include "vtkFiltersModelingModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 
33 class vtkCellArray;
34 class vtkPoints;
35 class vtkSpherePuzzle;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46 
50  vtkSetVectorMacro(Permutation,int,32);
51  vtkGetVectorMacro(Permutation,int,32);
52  void SetPermutationComponent(int comp, int val);
55 
56 protected:
59 
61  void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys);
62 
63  int Permutation[32];
64 
65  double Radius;
66 
67 private:
68  vtkSpherePuzzleArrows(const vtkSpherePuzzleArrows&); // Not implemented
69  void operator=(const vtkSpherePuzzleArrows&); // Not implemented
70 };
71 
72 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkSpherePuzzleArrows::~vtkSpherePuzzleArrows
~vtkSpherePuzzleArrows()
vtkSpherePuzzleArrows
Visualize permutation of the sphere puzzle.
Definition: vtkSpherePuzzleArrows.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSpherePuzzleArrows::vtkSpherePuzzleArrows
vtkSpherePuzzleArrows()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersModelingModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkSpherePuzzleArrows::Radius
double Radius
Definition: vtkSpherePuzzleArrows.h:65
vtkPolyDataAlgorithm.h
vtkgl::val
GLuint GLfloat * val
Definition: vtkgl.h:13789
vtkSpherePuzzleArrows::New
static vtkSpherePuzzleArrows * New()
vtkSpherePuzzleArrows::SetPermutation
void SetPermutation(vtkSpherePuzzle *puz)
vtkSpherePuzzle
create a polygonal sphere centered at the origin
Definition: vtkSpherePuzzle.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkSpherePuzzleArrows::SetPermutationComponent
void SetPermutationComponent(int comp, int val)
vtkSpherePuzzleArrows::AppendArrow
void AppendArrow(int id0, int id1, vtkPoints *pts, vtkCellArray *polys)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetVectorMacro
#define vtkSetVectorMacro(name, type, count)
Definition: vtkSetGet.h:406
VTKFILTERSMODELING_EXPORT
#define VTKFILTERSMODELING_EXPORT
Definition: vtkFiltersModelingModule.h:15
vtkSpherePuzzleArrows::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSpherePuzzleArrows::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44