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 
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 
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:
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 
vtkPointPlacer::WorldTolerance
double WorldTolerance
Definition: vtkPointPlacer.h:144
vtkPointPlacer
Abstract interface to translate 2D display positions to world coordinates.
Definition: vtkPointPlacer.h:49
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkPointPlacer::ValidateDisplayPosition
virtual int ValidateDisplayPosition(vtkRenderer *, double displayPos[2])
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkInteractionWidgetsModule.h
vtkPointPlacer::vtkPointPlacer
vtkPointPlacer()
vtkPointPlacer::ValidateWorldPosition
virtual int ValidateWorldPosition(double worldPos[3], double worldOrient[9])
vtkPointPlacer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPointPlacer::New
static vtkPointPlacer * New()
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkPointPlacer::UpdateInternalState
virtual int UpdateInternalState()
Definition: vtkPointPlacer.h:123
vtkPointPlacer::~vtkPointPlacer
~vtkPointPlacer()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkObject.h
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPointPlacer::ComputeWorldPosition
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9])
vtkPointPlacer::PixelTolerance
int PixelTolerance
Definition: vtkPointPlacer.h:143
vtkPointPlacer::ComputeWorldPosition
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
vtkPointPlacer::UpdateNodeWorldPosition
virtual int UpdateNodeWorldPosition(double worldPos[3], vtkIdType nodePointId)
vtkPointPlacer::ValidateWorldPosition
virtual int ValidateWorldPosition(double worldPos[3])
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkPointPlacer::UpdateWorldPosition
virtual int UpdateWorldPosition(vtkRenderer *ren, double worldPos[3], double worldOrient[9])