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 =========================================================================*/
36 #ifndef vtkFixedSizeHandleRepresentation3D_h
37 #define vtkFixedSizeHandleRepresentation3D_h
38 
39 #include "vtkInteractionWidgetsModule.h" // For export macro
41 
42 class vtkSphereSource;
43 
45 {
46 public:
47 
52 
54 
59  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
66  vtkGetObjectMacro( SphereSource, vtkSphereSource );
68 
70 
74  vtkSetMacro( HandleSizeInPixels, double );
75  vtkGetMacro( HandleSizeInPixels, double );
77 
79 
86  vtkSetMacro( HandleSizeToleranceInPixels, double );
87  vtkGetMacro( HandleSizeToleranceInPixels, double );
89 
90 protected:
93 
97  virtual void BuildRepresentation();
98 
102  void WorldToDisplay( double w[4], double d[4] );
103 
107  void DisplayToWorld( double d[4], double w[4] );
108 
112 
113 private:
115  void operator=(const vtkFixedSizeHandleRepresentation3D&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
void WorldToDisplay(double w[4], double d[4])
Convenience method to convert from world to display.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void DisplayToWorld(double d[4], double w[4])
Convenience method to convert from display to world.
static vtkFixedSizeHandleRepresentation3D * New()
Instantiate this class.
virtual void BuildRepresentation()
Recomputes the handle world size based on the set display size.
a simple class to control print indentation
Definition: vtkIndent.h:40
represent a user defined handle geometry in 3D space
create a polygonal sphere centered at the origin
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.