VTK  9.3.20240420
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
26VTK_ABI_NAMESPACE_BEGIN
27class vtkActor;
28class vtkPolyData;
30class vtkGenericCell;
31
32class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkTensorProbeRepresentation
34{
35public:
37
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 void BuildRepresentation() 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
92
93protected:
96
98 double displayPos[2], double closestWorldPos[3], vtkIdType& cellId, int maxSpeed = 10);
99
103 double ProbePosition[3];
105
106private:
108 void operator=(const vtkTensorProbeRepresentation&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
provides thread-safe access to cells
a simple class to control print indentation
Definition vtkIndent.h:108
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
an ordered list of Props
Abstract class that serves as a representation for vtkTensorProbeWidget.
void FindClosestPointOnPolyline(double displayPos[2], double closestWorldPos[3], vtkIdType &cellId, int maxSpeed=10)
~vtkTensorProbeRepresentation() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void BuildRepresentation() override
See vtkWidgetRepresentation for details.
virtual void SetTrajectory(vtkPolyData *)
Set the trajectory that we are trying to probe tensors on.
virtual int Move(double motionVector[2])
INTERNAL - Do not use This method is invoked by the widget during user interaction.
void ReleaseGraphicsResources(vtkWindow *) override
See vtkProp for details.
void GetActors(vtkPropCollection *) override
See vtkProp for details.
int RenderOpaqueGeometry(vtkViewport *) override
See vtkWidgetRepresentation for details.
virtual int SelectProbe(int pos[2])=0
This method is invoked by the widget during user interaction.
void Initialize()
Set the probe position to a reasonable location on the trajectory.
abstract specification for Viewports
Definition vtkViewport.h:65
abstract class defines interface between the widget and widget representation classes
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkIdType
Definition vtkType.h:315
#define VTK_MARSHALAUTO