VTK
vtkFixedSizeHandleRepresentation3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFixedSizeHandleRepresentation.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 =========================================================================*/
35 #ifndef vtkFixedSizeHandleRepresentation3D_h
36 #define vtkFixedSizeHandleRepresentation3D_h
37 
38 #include "vtkInteractionWidgetsModule.h" // For export macro
40 
41 class vtkSphereSource;
42 
44 {
45 public:
46 
49 
51 
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  vtkGetObjectMacro( SphereSource, vtkSphereSource );
61 
63 
65  vtkSetMacro( HandleSizeInPixels, double );
66  vtkGetMacro( HandleSizeInPixels, double );
68 
70 
75  vtkSetMacro( HandleSizeToleranceInPixels, double );
76  vtkGetMacro( HandleSizeToleranceInPixels, double );
78 
79 protected:
82 
84  virtual void BuildRepresentation();
85 
87  void WorldToDisplay( double w[4], double d[4] );
88 
90  void DisplayToWorld( double d[4], double w[4] );
91 
95 
96 private:
98  void operator=(const vtkFixedSizeHandleRepresentation3D&); //Not implemented
99 };
100 
101 #endif
#define VTKINTERACTIONWIDGETS_EXPORT
create a polygonal sphere centered at the origin
static vtkPolygonalHandleRepresentation3D * New()
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
represent a user defined handle geometry in 3D space