VTK  9.3.0
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
28VTK_ABI_NAMESPACE_BEGIN
30class vtkPolyData;
31
32class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeWidget : public vtkAbstractWidget
33{
34public:
39
41
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
54 {
55 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
56 }
57
62 {
63 return reinterpret_cast<vtkTensorProbeRepresentation*>(this->WidgetRep);
64 }
65
70
71protected:
74
75 // 1 when the probe has been selected, for instance when dragging it around
77
78 int LastEventPosition[2];
79
80 // Callback interface to capture events and respond
84
85private:
87 void operator=(const vtkTensorProbeWidget&) = delete;
88};
89
90VTK_ABI_NAMESPACE_END
91#endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition vtkIndent.h:29
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
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