VTK
vtkTensorProbeRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTensorProbeRepresentation.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 =========================================================================*/
30 #ifndef vtkTensorProbeRepresentation_h
31 #define vtkTensorProbeRepresentation_h
32 
33 #include "vtkInteractionWidgetsModule.h" // For export macro
35 
36 class vtkActor;
37 class vtkPolyData;
38 class vtkPolyDataMapper;
39 class vtkGenericCell;
40 
43 {
44 public:
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  virtual void BuildRepresentation();
54  virtual int RenderOpaqueGeometry(vtkViewport *);
56 
58 
59  vtkSetVector3Macro( ProbePosition, double );
60  vtkGetVector3Macro( ProbePosition, double );
61  vtkSetMacro( ProbeCellId, vtkIdType );
62  vtkGetMacro( ProbeCellId, vtkIdType );
64 
66  virtual void SetTrajectory( vtkPolyData * );
67 
69  void Initialize();
70 
73  virtual int SelectProbe( int pos[2] ) = 0;
74 
78  virtual int Move( double motionVector[2] );
79 
81 
82  virtual void GetActors(vtkPropCollection *);
83  virtual void ReleaseGraphicsResources(vtkWindow *);
85 
86 protected:
89 
90  void FindClosestPointOnPolyline(
91  double displayPos[2], double closestWorldPos[3], vtkIdType &cellId,
92  int maxSpeed = 10 );
93 
97  double ProbePosition[3];
99 
100 private:
102  const vtkTensorProbeRepresentation&); //Not implemented
103  void operator=(const vtkTensorProbeRepresentation&); //Not implemented
104 
105 };
106 
107 #endif
108 
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
Abstract class that serves as a representation for vtkTensorProbeWidget.
abstract specification for Viewports
Definition: vtkViewport.h:46
int vtkIdType
Definition: vtkType.h:247
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract class defines interface between the widget and widget representation classes ...
virtual void BuildRepresentation()=0
provides thread-safe access to cells
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void GetActors(vtkPropCollection *)
map vtkPolyData to graphics primitives
virtual int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport))
void PrintSelf(ostream &os, vtkIndent indent)