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 "vtkInteractionWidgetsModule.h" // For export macro
44 #include "vtkObject.h"
45 
46 class vtkRenderer;
47 
49 {
50 public:
52  static vtkPointPlacer *New();
53 
55 
56  vtkTypeMacro(vtkPointPlacer,vtkObject);
57  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
66  virtual int ComputeWorldPosition( vtkRenderer *ren,
67  double displayPos[2],
68  double worldPos[3],
69  double worldOrient[9] );
71 
73 
77  virtual int ComputeWorldPosition( vtkRenderer *ren,
78  double displayPos[2],
79  double refWorldPos[3],
80  double worldPos[3],
81  double worldOrient[9] );
83 
86  virtual int ValidateWorldPosition( double worldPos[3] );
87 
89  virtual int ValidateDisplayPosition( vtkRenderer *, double displayPos[2] );
90 
92 
94  virtual int ValidateWorldPosition( double worldPos[3],
95  double worldOrient[9] );
97 
99 
106  virtual int UpdateWorldPosition( vtkRenderer *ren,
107  double worldPos[3],
108  double worldOrient[9] );
110 
112 
117  virtual int UpdateNodeWorldPosition(
118  double worldPos[3], vtkIdType nodePointId);
120 
123  virtual int UpdateInternalState() {return 0;}
124 
126 
128  vtkSetClampMacro(PixelTolerance,int,1,100);
129  vtkGetMacro(PixelTolerance,int);
131 
133 
135  vtkSetClampMacro(WorldTolerance, double, 0.0, VTK_DOUBLE_MAX);
136  vtkGetMacro(WorldTolerance, double);
138 
139 protected:
140  vtkPointPlacer();
141  ~vtkPointPlacer();
142 
145 
146 private:
147  vtkPointPlacer(const vtkPointPlacer&); //Not implemented
148  void operator=(const vtkPointPlacer&); //Not implemented
149 };
150 
151 #endif
152 
153 
154 
155 
156 
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTK_DOUBLE_MAX
Definition: vtkType.h:140
abstract specification for renderers
Definition: vtkRenderer.h:62
int vtkIdType
Definition: vtkType.h:247
#define VTKINTERACTIONWIDGETS_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Abstract interface to translate 2D display positions to world coordinates.
virtual int UpdateInternalState()
static vtkObject * New()