VTK  9.2.6
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 : public vtkWidgetRepresentation
43 {
44 public:
46 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  void BuildRepresentation() override;
58  int RenderOpaqueGeometry(vtkViewport*) override;
60 
62 
65  vtkSetVector3Macro(ProbePosition, double);
66  vtkGetVector3Macro(ProbePosition, double);
67  vtkSetMacro(ProbeCellId, vtkIdType);
68  vtkGetMacro(ProbeCellId, vtkIdType);
70 
74  virtual void SetTrajectory(vtkPolyData*);
75 
79  void Initialize();
80 
85  virtual int SelectProbe(int pos[2]) = 0;
86 
92  virtual int Move(double motionVector[2]);
93 
95 
98  void GetActors(vtkPropCollection*) override;
99  void ReleaseGraphicsResources(vtkWindow*) override;
101 
102 protected:
104  ~vtkTensorProbeRepresentation() override;
105 
106  void FindClosestPointOnPolyline(
107  double displayPos[2], double closestWorldPos[3], vtkIdType& cellId, int maxSpeed = 10);
108 
112  double ProbePosition[3];
114 
115 private:
117  void operator=(const vtkTensorProbeRepresentation&) = delete;
118 };
119 
120 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Abstract class that serves as a representation for vtkTensorProbeWidget.
abstract specification for Viewports
Definition: vtkViewport.h:55
int vtkIdType
Definition: vtkType.h:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
abstract class defines interface between the widget and widget representation classes ...
virtual void BuildRepresentation()=0
Subclasses of vtkWidgetRepresentation must implement these methods.
provides thread-safe access to cells
an ordered list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
a simple class to control print indentation
Definition: vtkIndent.h:39
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport)) override
map vtkPolyData to graphics primitives
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes...