VTK  9.3.20240419
vtkTensorProbeWidget.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
22 #ifndef vtkTensorProbeWidget_h
23 #define vtkTensorProbeWidget_h
24 
25 #include "vtkAbstractWidget.h"
26 #include "vtkInteractionWidgetsModule.h" // For export macro
27 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 class vtkPolyData;
32 
33 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkTensorProbeWidget : public vtkAbstractWidget
34 {
35 public:
40 
42 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
55  {
56  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
57  }
58 
63  {
64  return reinterpret_cast<vtkTensorProbeRepresentation*>(this->WidgetRep);
65  }
66 
70  void CreateDefaultRepresentation() override;
71 
72 protected:
75 
76  // 1 when the probe has been selected, for instance when dragging it around
77  int Selected;
78 
79  int LastEventPosition[2];
80 
81  // Callback interface to capture events and respond
85 
86 private:
88  void operator=(const vtkTensorProbeWidget&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:108
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:181
Abstract class that serves as a representation for vtkTensorProbeWidget.
a widget to probe tensors on a polyline
vtkTensorProbeRepresentation * GetTensorProbeRepresentation()
Return the representation as a vtkTensorProbeRepresentation.
void CreateDefaultRepresentation() override
See vtkWidgetRepresentation for details.
~vtkTensorProbeWidget() override
static void MoveAction(vtkAbstractWidget *)
static void EndSelectAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class macros.
static void SelectAction(vtkAbstractWidget *)
static vtkTensorProbeWidget * New()
Instantiate this class.
void SetRepresentation(vtkTensorProbeRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
abstract class defines interface between the widget and widget representation classes
#define VTK_MARSHALAUTO