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();
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 *);
85 
86 protected:
89 
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 
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkWidgetRepresentation.h
vtkTensorProbeRepresentation::vtkTensorProbeRepresentation
vtkTensorProbeRepresentation()
vtkTensorProbeRepresentation::Initialize
void Initialize()
vtkTensorProbeRepresentation
Abstract class that serves as a representation for vtkTensorProbeWidget.
Definition: vtkTensorProbeRepresentation.h:43
vtkTensorProbeRepresentation::TrajectoryMapper
vtkPolyDataMapper * TrajectoryMapper
Definition: vtkTensorProbeRepresentation.h:95
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkTensorProbeRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkTensorProbeRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
vtkTensorProbeRepresentation::TrajectoryActor
vtkActor * TrajectoryActor
Definition: vtkTensorProbeRepresentation.h:94
vtkTensorProbeRepresentation::SelectProbe
virtual int SelectProbe(int pos[2])=0
vtkTensorProbeRepresentation::FindClosestPointOnPolyline
void FindClosestPointOnPolyline(double displayPos[2], double closestWorldPos[3], vtkIdType &cellId, int maxSpeed=10)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:54
vtkInteractionWidgetsModule.h
vtkTensorProbeRepresentation::SetTrajectory
virtual void SetTrajectory(vtkPolyData *)
vtkTensorProbeRepresentation::Move
virtual int Move(double motionVector[2])
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkTensorProbeRepresentation::GetActors
virtual void GetActors(vtkPropCollection *)
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTensorProbeRepresentation::Trajectory
vtkPolyData * Trajectory
Definition: vtkTensorProbeRepresentation.h:96
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkTensorProbeRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkTensorProbeRepresentation::ProbeCellId
vtkIdType ProbeCellId
Definition: vtkTensorProbeRepresentation.h:98
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkGenericCell
provides thread-safe access to cells
Definition: vtkGenericCell.h:42
vtkTensorProbeRepresentation::~vtkTensorProbeRepresentation
~vtkTensorProbeRepresentation()
vtkTensorProbeRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38