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 =========================================================================*/
33 #ifndef vtkTensorProbeWidget_h
34 #define vtkTensorProbeWidget_h
35 
36 #include "vtkInteractionWidgetsModule.h" // For export macro
37 #include "vtkAbstractWidget.h"
38 
40 class vtkPolyData;
41 
43 {
44 public:
46  static vtkTensorProbeWidget *New();
47 
49 
51  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
59  {
60  this->Superclass::SetWidgetRepresentation(
61  reinterpret_cast<vtkWidgetRepresentation*>(r));
62  }
64 
66 
68  {return reinterpret_cast<vtkTensorProbeRepresentation*>(this->WidgetRep);}
70 
72  virtual void CreateDefaultRepresentation();
73 
74 protected:
77 
78  // 1 when the probe has been selected, for instance when dragging it around
79  int Selected;
80 
81  int LastEventPosition[2];
82 
83  // Callback interface to capture events and respond
84  static void SelectAction (vtkAbstractWidget*);
85  static void MoveAction (vtkAbstractWidget*);
86  static void EndSelectAction (vtkAbstractWidget*);
87 
88 private:
90  const vtkTensorProbeWidget&); //Not implemented
91  void operator=(const vtkTensorProbeWidget&); //Not implemented
92 
93 };
94 
95 #endif
96 
void PrintSelf(ostream &os, vtkIndent indent)
Abstract class that serves as a representation for vtkTensorProbeWidget.
a widget to probe tensors on a polyline
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual void CreateDefaultRepresentation()=0
vtkWidgetRepresentation * WidgetRep
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
define the API for widget / widget representation
vtkTensorProbeRepresentation * GetTensorProbeRepresentation()
static vtkObject * New()
void SetRepresentation(vtkTensorProbeRepresentation *r)