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 =========================================================================*/
31 #ifndef vtkTensorProbeRepresentation_h
32 #define vtkTensorProbeRepresentation_h
33 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
36 
37 class vtkActor;
38 class vtkPolyData;
39 class vtkPolyDataMapper;
40 class vtkGenericCell;
41 
42 class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeRepresentation :
44 {
45 public:
47 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
58  void BuildRepresentation() override;
59  int RenderOpaqueGeometry(vtkViewport *) override;
61 
63 
66  vtkSetVector3Macro( ProbePosition, double );
67  vtkGetVector3Macro( ProbePosition, double );
68  vtkSetMacro( ProbeCellId, vtkIdType );
69  vtkGetMacro( ProbeCellId, vtkIdType );
71 
75  virtual void SetTrajectory( vtkPolyData * );
76 
80  void Initialize();
81 
86  virtual int SelectProbe( int pos[2] ) = 0;
87 
93  virtual int Move( double motionVector[2] );
94 
96 
99  void GetActors(vtkPropCollection *) override;
100  void ReleaseGraphicsResources(vtkWindow *) override;
102 
103 protected:
105  ~vtkTensorProbeRepresentation() override;
106 
107  void FindClosestPointOnPolyline(
108  double displayPos[2], double closestWorldPos[3], vtkIdType &cellId,
109  int maxSpeed = 10 );
110 
114  double ProbePosition[3];
116 
117 private:
119  const vtkTensorProbeRepresentation&) = delete;
120  void operator=(const vtkTensorProbeRepresentation&) = delete;
121 
122 };
123 
124 #endif
125 
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkWidgetRepresentation.h
vtkWidgetRepresentation::GetActors
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
Definition: vtkWidgetRepresentation.h:217
vtkTensorProbeRepresentation
Abstract class that serves as a representation for vtkTensorProbeWidget.
Definition: vtkTensorProbeRepresentation.h:42
vtkTensorProbeRepresentation::TrajectoryMapper
vtkPolyDataMapper * TrajectoryMapper
Definition: vtkTensorProbeRepresentation.h:112
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkTensorProbeRepresentation::TrajectoryActor
vtkActor * TrajectoryActor
Definition: vtkTensorProbeRepresentation.h:111
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:60
vtkWidgetRepresentation::BuildRepresentation
virtual void BuildRepresentation()=0
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkWidgetRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkWidgetRepresentation.h:220
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:113
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkWidgetRepresentation::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport)) override
Definition: vtkWidgetRepresentation.h:222
vtkTensorProbeRepresentation::ProbeCellId
vtkIdType ProbeCellId
Definition: vtkTensorProbeRepresentation.h:115
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkGenericCell
provides thread-safe access to cells
Definition: vtkGenericCell.h:39
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:41
vtkWidgetRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.