VTK  9.7.1
vtkTensorProbeRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkTensorProbeRepresentation_h
20 #define vtkTensorProbeRepresentation_h
21 
22 #include "vtkInteractionWidgetsModule.h" // For export macro
24 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkActor;
28 class vtkPolyData;
29 class vtkPolyDataMapper;
30 class vtkGenericCell;
31 
32 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkTensorProbeRepresentation
34 {
35 public:
37 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  void BuildRepresentation() override;
49  int RenderOpaqueGeometry(vtkViewport*) override;
51 
53 
56  vtkSetVector3Macro(ProbePosition, double);
57  vtkGetVector3Macro(ProbePosition, double);
58  vtkSetMacro(ProbeCellId, vtkIdType);
59  vtkGetMacro(ProbeCellId, vtkIdType);
61 
65  virtual void SetTrajectory(vtkPolyData*);
66 
70  void Initialize();
71 
76  virtual int SelectProbe(int pos[2]) = 0;
77 
83  virtual int Move(double motionVector[2]);
84 
86 
89  void GetActors(vtkPropCollection*) override;
90  void ReleaseGraphicsResources(vtkWindow*) override;
92 
93 protected:
95  ~vtkTensorProbeRepresentation() override;
96 
97  void FindClosestPointOnPolyline(
98  double displayPos[2], double closestWorldPos[3], vtkIdType& cellId, int maxSpeed = 10);
99 
103  double ProbePosition[3];
105 
106 private:
108  void operator=(const vtkTensorProbeRepresentation&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #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:41
Abstract class that serves as a representation for vtkTensorProbeWidget.
abstract specification for Viewports
Definition: vtkViewport.h:46
int vtkIdType
Definition: vtkType.h:363
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
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:41
a simple class to control print indentation
Definition: vtkIndent.h:28
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
map vtkPolyData to graphics primitives
#define VTK_MARSHALAUTO
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes...