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 
111 
116  virtual int UpdateNodeWorldPosition(
117  double worldPos[3], vtkIdType nodePointId);
119 
122  virtual int UpdateInternalState() {return 0;}
123 
125 
127  vtkSetClampMacro(PixelTolerance,int,1,100);
128  vtkGetMacro(PixelTolerance,int);
130 
132 
134  vtkSetClampMacro(WorldTolerance, double, 0.0, VTK_DOUBLE_MAX);
135  vtkGetMacro(WorldTolerance, double);
137 
138 protected:
139  vtkPointPlacer();
140  ~vtkPointPlacer();
141 
144 
145 private:
146  vtkPointPlacer(const vtkPointPlacer&); //Not implemented
147  void operator=(const vtkPointPlacer&); //Not implemented
148 };
149 
150 #endif
151 
152 
153 
154 
155