VTK  9.2.5
vtkTensorProbeWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTensorProbeWidget.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
34 #ifndef vtkTensorProbeWidget_h
35 #define vtkTensorProbeWidget_h
36 
37 #include "vtkAbstractWidget.h"
38 #include "vtkInteractionWidgetsModule.h" // For export macro
39 
41 class vtkPolyData;
42 
43 class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeWidget : public vtkAbstractWidget
44 {
45 public:
50 
52 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
65  {
66  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
67  }
68 
73  {
74  return reinterpret_cast<vtkTensorProbeRepresentation*>(this->WidgetRep);
75  }
76 
80  void CreateDefaultRepresentation() override;
81 
82 protected:
85 
86  // 1 when the probe has been selected, for instance when dragging it around
87  int Selected;
88 
89  int LastEventPosition[2];
90 
91  // Callback interface to capture events and respond
95 
96 private:
98  void operator=(const vtkTensorProbeWidget&) = delete;
99 };
100 
101 #endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:119
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
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