VTK
vtkPointPlacer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointPlacer.h,v
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 =========================================================================*/
40 #ifndef __vtkPointPlacer_h
41 #define __vtkPointPlacer_h
42 
43 #include "vtkObject.h"
44 
45 class vtkRenderer;
46 
48 {
49 public:
51  static vtkPointPlacer *New();
52 
54 
55  vtkTypeMacro(vtkPointPlacer,vtkObject);
56  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
65  virtual int ComputeWorldPosition( vtkRenderer *ren,
66  double displayPos[2],
67  double worldPos[3],
68  double worldOrient[9] );
70 
72 
76  virtual int ComputeWorldPosition( vtkRenderer *ren,
77  double displayPos[2],
78  double refWorldPos[3],
79  double worldPos[3],
80  double worldOrient[9] );
82 
85  virtual int ValidateWorldPosition( double worldPos[3] );
86 
88  virtual int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] );
89 
91 
93  virtual int ValidateWorldPosition( double worldPos[3],
94  double worldOrient[9] );
96 
98 
105  virtual int UpdateWorldPosition( vtkRenderer *ren,
106  double worldPos[3],
107  double worldOrient[9] );
109 
110 
113  virtual int UpdateInternalState() {return 0;}
114 
116 
118  vtkSetClampMacro(PixelTolerance,int,1,100);
119  vtkGetMacro(PixelTolerance,int);
121 
123 
125  vtkSetClampMacro(WorldTolerance, double, 0.0, VTK_DOUBLE_MAX);
126  vtkGetMacro(WorldTolerance, double);
128 
129 protected:
130  vtkPointPlacer();
131  ~vtkPointPlacer();
132 
135 
136 private:
137  vtkPointPlacer(const vtkPointPlacer&); //Not implemented
138  void operator=(const vtkPointPlacer&); //Not implemented
139 };
140 
141 #endif
142 
143 
144 
145 
146