VTK
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 =========================================================================*/
31 #ifndef vtkTensorProbeWidget_h
32 #define vtkTensorProbeWidget_h
33 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
35 #include "vtkAbstractWidget.h"
36 
38 class vtkPolyData;
39 
40 class VTKINTERACTIONWIDGETS_EXPORT vtkTensorProbeWidget : public vtkAbstractWidget
41 {
42 public:
46  static vtkTensorProbeWidget *New();
47 
49 
53  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55 
62  {
63  this->Superclass::SetWidgetRepresentation(
64  reinterpret_cast<vtkWidgetRepresentation*>(r));
65  }
66 
71  {return reinterpret_cast<vtkTensorProbeRepresentation*>(this->WidgetRep);}
72 
76  void CreateDefaultRepresentation() VTK_OVERRIDE;
77 
78 protected:
80  ~vtkTensorProbeWidget() VTK_OVERRIDE;
81 
82  // 1 when the probe has been selected, for instance when dragging it around
83  int Selected;
84 
85  int LastEventPosition[2];
86 
87  // Callback interface to capture events and respond
88  static void SelectAction (vtkAbstractWidget*);
89  static void MoveAction (vtkAbstractWidget*);
90  static void EndSelectAction (vtkAbstractWidget*);
91 
92 private:
93  vtkTensorProbeWidget(
94  const vtkTensorProbeWidget&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkTensorProbeWidget&) VTK_DELETE_FUNCTION;
96 
97 };
98 
99 #endif
100 
Abstract class that serves as a representation for vtkTensorProbeWidget.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
a widget to probe tensors on a polyline
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:33
define the API for widget / widget representation
vtkTensorProbeRepresentation * GetTensorProbeRepresentation()
Return the representation as a vtkTensorProbeRepresentation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetRepresentation(vtkTensorProbeRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...