VTK  9.3.20240423
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
29VTK_ABI_NAMESPACE_BEGIN
31class vtkPolyData;
32
33class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkTensorProbeWidget : public vtkAbstractWidget
34{
35public:
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
71
72protected:
75
76 // 1 when the probe has been selected, for instance when dragging it around
78
79 int LastEventPosition[2];
80
81 // Callback interface to capture events and respond
85
86private:
88 void operator=(const vtkTensorProbeWidget&) = delete;
89};
90
91VTK_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
Abstract class that serves as a representation for vtkTensorProbeWidget.
a widget to probe tensors on a polyline
void CreateDefaultRepresentation() override
See vtkWidgetRepresentation for details.
vtkTensorProbeRepresentation * GetTensorProbeRepresentation()
Return the representation as a vtkTensorProbeRepresentation.
~vtkTensorProbeWidget() override
static void MoveAction(vtkAbstractWidget *)
static vtkTensorProbeWidget * New()
Instantiate this class.
static void EndSelectAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class macros.
static void SelectAction(vtkAbstractWidget *)
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