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 "vtkAbstractWidget.h"
37 
39 class vtkPolyData;
40 
42 {
43 public:
45  static vtkTensorProbeWidget *New();
46 
48 
50  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
58  {
59  this->Superclass::SetWidgetRepresentation(
60  reinterpret_cast<vtkWidgetRepresentation*>(r));
61  }
63 
65 
67  {return reinterpret_cast<vtkTensorProbeRepresentation*>(this->WidgetRep);}
69 
71  virtual void CreateDefaultRepresentation();
72 
73 protected:
76 
77  // 1 when the probe has been selected, for instance when dragging it around
78  int Selected;
79 
80  int LastEventPosition[2];
81 
82  // Callback interface to capture events and respond
83  static void SelectAction (vtkAbstractWidget*);
84  static void MoveAction (vtkAbstractWidget*);
85  static void EndSelectAction (vtkAbstractWidget*);
86 
87 private:
89  const vtkTensorProbeWidget&); //Not implemented
90  void operator=(const vtkTensorProbeWidget&); //Not implemented
91 
92 };
93 
94 #endif
95 
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:81
virtual void CreateDefaultRepresentation()=0
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_WIDGETS_EXPORT
define the API for widget / widget representation
vtkTensorProbeRepresentation * GetTensorProbeRepresentation()
static vtkObject * New()
void SetRepresentation(vtkTensorProbeRepresentation *r)