VTK
vtkPointHandleRepresentation2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointHandleRepresentation2D.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 =========================================================================*/
32 #ifndef vtkPointHandleRepresentation2D_h
33 #define vtkPointHandleRepresentation2D_h
34 
35 #include "vtkInteractionWidgetsModule.h" // For export macro
37 
38 class vtkProperty2D;
39 class vtkActor2D;
41 class vtkPolyData;
42 class vtkGlyph2D;
43 class vtkPoints;
45 class vtkPointPlacer;
46 
48 {
49 public:
52 
54 
56  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
63  void SetCursorShape(vtkPolyData *cursorShape);
66 
70  virtual void SetDisplayPosition(double xyz[3]);
71 
73 
77  vtkGetObjectMacro(SelectedProperty,vtkProperty2D);
79 
81 
84  virtual double *GetBounds();
85  virtual void BuildRepresentation();
86  virtual void StartWidgetInteraction(double eventPos[2]);
87  virtual void WidgetInteraction(double eventPos[2]);
88  virtual int ComputeInteractionState(int X, int Y, int modify=0);
90 
92 
93  virtual void ShallowCopy(vtkProp *prop);
94  virtual void DeepCopy(vtkProp *prop);
95  virtual void GetActors2D(vtkPropCollection *);
97  virtual int RenderOverlay(vtkViewport *viewport);
99 
100  void Highlight(int highlight);
101 
106  virtual void SetPointPlacer ( vtkPointPlacer * );
107 
108 protected:
111 
112  // Render the cursor
119 
120  // Support picking
121  double LastPickPosition[3];
122  double LastEventPosition[2];
123 
124  // Methods to manipulate the cursor
126  void Translate(double eventPos[2]);
127  void Scale(double eventPos[2]);
128 
129 
130 
131 
132  // Properties used to control the appearance of selected objects and
133  // the manipulator in general.
137 
138  // The size of the hot spot.
139  int DetermineConstraintAxis(int constraint, double eventPos[2]);
142 
143 private:
145  void operator=(const vtkPointHandleRepresentation2D&); //Not implemented
146 };
147 
148 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkPointHandleRepresentation2D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkPointHandleRepresentation2D::Mapper
vtkPolyDataMapper2D * Mapper
Definition: vtkPointHandleRepresentation2D.h:114
vtkPointHandleRepresentation2D::SetSelectedProperty
void SetSelectedProperty(vtkProperty2D *)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPointHandleRepresentation2D::GetActors2D
virtual void GetActors2D(vtkPropCollection *)
vtkPointHandleRepresentation2D::Actor
vtkActor2D * Actor
Definition: vtkPointHandleRepresentation2D.h:113
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:51
vtkPointPlacer
Abstract interface to translate 2D display positions to world coordinates.
Definition: vtkPointPlacer.h:49
vtkPointHandleRepresentation2D::Highlight
void Highlight(int highlight)
vtkPointHandleRepresentation2D::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
vtkPointHandleRepresentation2D::CreateDefaultProperties
void CreateDefaultProperties()
vtkPointHandleRepresentation2D::SetPointPlacer
virtual void SetPointPlacer(vtkPointPlacer *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPointHandleRepresentation2D::GetBounds
virtual double * GetBounds()
vtkHandleRepresentation
abstract class for representing widget handles
Definition: vtkHandleRepresentation.h:58
vtkGlyph2D
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:39
vtkInteractionWidgetsModule.h
vtkPointHandleRepresentation2D::SelectedProperty
vtkProperty2D * SelectedProperty
Definition: vtkPointHandleRepresentation2D.h:135
vtkHandleRepresentation.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkPointHandleRepresentation2D::GetCursorShape
vtkPolyData * GetCursorShape()
vtkPointHandleRepresentation2D::Property
vtkProperty2D * Property
Definition: vtkPointHandleRepresentation2D.h:134
vtkPointHandleRepresentation2D::Scale
void Scale(double eventPos[2])
vtkPointHandleRepresentation2D::StartWidgetInteraction
virtual void StartWidgetInteraction(double eventPos[2])
vtkPointHandleRepresentation2D::Translate
void Translate(double eventPos[2])
vtkPointHandleRepresentation2D::WidgetInteraction
virtual void WidgetInteraction(double eventPos[2])
vtkPointHandleRepresentation2D::DeepCopy
virtual void DeepCopy(vtkProp *prop)
vtkPointHandleRepresentation2D::FocalPoint
vtkPoints * FocalPoint
Definition: vtkPointHandleRepresentation2D.h:118
vtkPointHandleRepresentation2D::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPointHandleRepresentation2D::WaitCount
int WaitCount
Definition: vtkPointHandleRepresentation2D.h:141
vtkPointHandleRepresentation2D::ConstraintAxis
int ConstraintAxis
Definition: vtkPointHandleRepresentation2D.h:125
vtkPointHandleRepresentation2D
represent the position of a point in display coordinates
Definition: vtkPointHandleRepresentation2D.h:48
vtkPointHandleRepresentation2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPointHandleRepresentation2D::SetCursorShape
void SetCursorShape(vtkPolyData *cursorShape)
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkPointHandleRepresentation2D::SetProperty
void SetProperty(vtkProperty2D *)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkPointHandleRepresentation2D::BuildRepresentation
virtual void BuildRepresentation()
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
vtkPointHandleRepresentation2D::Glypher
vtkGlyph2D * Glypher
Definition: vtkPointHandleRepresentation2D.h:115
vtkPointHandleRepresentation2D::vtkPointHandleRepresentation2D
vtkPointHandleRepresentation2D()
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:45
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkPointHandleRepresentation2D::CursorShape
vtkPolyData * CursorShape
Definition: vtkPointHandleRepresentation2D.h:116
vtkPointHandleRepresentation2D::New
static vtkPointHandleRepresentation2D * New()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkPointHandleRepresentation2D::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkPointHandleRepresentation2D::~vtkPointHandleRepresentation2D
~vtkPointHandleRepresentation2D()
vtkPointHandleRepresentation2D::SetDisplayPosition
virtual void SetDisplayPosition(double xyz[3])
vtkPointHandleRepresentation2D::FocalData
vtkPolyData * FocalData
Definition: vtkPointHandleRepresentation2D.h:117
vtkPointHandleRepresentation2D::DetermineConstraintAxis
int DetermineConstraintAxis(int constraint, double eventPos[2])
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkPointHandleRepresentation2D::WaitingForMotion
int WaitingForMotion
Definition: vtkPointHandleRepresentation2D.h:140
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44