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 
39 
40 class vtkSphereSource;
41 
43 {
44 public:
45 
48 
50 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
58  vtkGetObjectMacro( SphereSource, vtkSphereSource );
60 
62 
64  vtkSetMacro( HandleSizeInPixels, double );
65  vtkGetMacro( HandleSizeInPixels, double );
67 
69 
74  vtkSetMacro( HandleSizeToleranceInPixels, double );
75  vtkGetMacro( HandleSizeToleranceInPixels, double );
77 
78 protected:
81 
83  virtual void BuildRepresentation();
84 
86  void WorldToDisplay( double w[4], double d[4] );
87 
89  void DisplayToWorld( double d[4], double w[4] );
90 
94 
95 private:
97  void operator=(const vtkFixedSizeHandleRepresentation3D&); //Not implemented
98 };
99 
100 #endif