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 =========================================================================*/
33 #ifndef vtkPointHandleRepresentation2D_h
34 #define vtkPointHandleRepresentation2D_h
35 
36 #include "vtkInteractionWidgetsModule.h" // For export macro
38 
39 class vtkProperty2D;
40 class vtkActor2D;
41 class vtkCoordinate;
43 class vtkPolyData;
44 class vtkGlyph2D;
45 class vtkPoints;
47 class vtkPointPlacer;
48 
49 class VTKINTERACTIONWIDGETS_EXPORT vtkPointHandleRepresentation2D : public vtkHandleRepresentation
50 {
51 public:
56 
58 
62  void PrintSelf(ostream& os, vtkIndent indent);
64 
66 
71  void SetCursorShape(vtkPolyData *cursorShape);
74 
80  virtual void SetDisplayPosition(double xyz[3]);
81 
83 
88  vtkGetObjectMacro(Property,vtkProperty2D);
89  vtkGetObjectMacro(SelectedProperty,vtkProperty2D);
91 
93 
98  virtual double *GetBounds();
99  virtual void BuildRepresentation();
100  virtual void StartWidgetInteraction(double eventPos[2]);
101  virtual void WidgetInteraction(double eventPos[2]);
102  virtual int ComputeInteractionState(int X, int Y, int modify=0);
104 
106 
109  virtual void ShallowCopy(vtkProp *prop);
110  virtual void DeepCopy(vtkProp *prop);
113  virtual int RenderOverlay(vtkViewport *viewport);
115 
116  void Highlight(int highlight);
117 
124  virtual void SetPointPlacer ( vtkPointPlacer * );
125 
126 protected:
129 
130  // Render the cursor
138 
139  // Support picking
140  double LastPickPosition[3];
141  double LastEventPosition[2];
142 
143  // Methods to manipulate the cursor
145  void Translate(double eventPos[2]);
146  void Scale(double eventPos[2]);
147 
148  // Properties used to control the appearance of selected objects and
149  // the manipulator in general.
153 
154  // The size of the hot spot.
155  int DetermineConstraintAxis(int constraint, double eventPos[2]);
158 
159 private:
161  void operator=(const vtkPointHandleRepresentation2D&) VTK_DELETE_FUNCTION;
162 };
163 
164 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkPointHandleRepresentation2D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkPointHandleRepresentation2D::Mapper
vtkPolyDataMapper2D * Mapper
Definition: vtkPointHandleRepresentation2D.h:133
vtkPointHandleRepresentation2D::SetSelectedProperty
void SetSelectedProperty(vtkProperty2D *)
vtkPointHandleRepresentation2D::GetActors2D
virtual void GetActors2D(vtkPropCollection *)
vtkPointHandleRepresentation2D::Actor
vtkActor2D * Actor
Definition: vtkPointHandleRepresentation2D.h:131
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:52
vtkPointPlacer
Abstract interface to translate 2D display positions to world coordinates.
Definition: vtkPointPlacer.h:50
vtkPointHandleRepresentation2D::Highlight
void Highlight(int highlight)
vtkPointHandleRepresentation2D::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
Methods to make this class behave as a vtkProp.
vtkPointHandleRepresentation2D::CreateDefaultProperties
void CreateDefaultProperties()
vtkPointHandleRepresentation2D::SetPointPlacer
virtual void SetPointPlacer(vtkPointPlacer *)
Override the superclass implementation.
vtkPointHandleRepresentation2D::GetBounds
virtual double * GetBounds()
Subclasses of vtkPointHandleRepresentation2D must implement these methods.
vtkHandleRepresentation
abstract class for representing widget handles
Definition: vtkHandleRepresentation.h:59
vtkGlyph2D
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:40
vtkPointHandleRepresentation2D::SelectedProperty
vtkProperty2D * SelectedProperty
Definition: vtkPointHandleRepresentation2D.h:151
vtkHandleRepresentation.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkPointHandleRepresentation2D::GetCursorShape
vtkPolyData * GetCursorShape()
vtkPointHandleRepresentation2D::Property
vtkProperty2D * Property
Definition: vtkPointHandleRepresentation2D.h:150
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:137
vtkPointHandleRepresentation2D::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPointHandleRepresentation2D::WaitCount
int WaitCount
Definition: vtkPointHandleRepresentation2D.h:157
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:71
vtkPointHandleRepresentation2D::ConstraintAxis
int ConstraintAxis
Definition: vtkPointHandleRepresentation2D.h:144
vtkPointHandleRepresentation2D
represent the position of a point in display coordinates
Definition: vtkPointHandleRepresentation2D.h:50
vtkPointHandleRepresentation2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPointHandleRepresentation2D::SetCursorShape
void SetCursorShape(vtkPolyData *cursorShape)
Specify the cursor shape with an instance of vtkPolyData.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkPointHandleRepresentation2D::MapperCoordinate
vtkCoordinate * MapperCoordinate
Definition: vtkPointHandleRepresentation2D.h:132
vtkPointHandleRepresentation2D::SetProperty
void SetProperty(vtkProperty2D *)
Set/Get the handle properties when unselected and selected.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkPointHandleRepresentation2D::BuildRepresentation
virtual void BuildRepresentation()
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkPointHandleRepresentation2D::Glypher
vtkGlyph2D * Glypher
Definition: vtkPointHandleRepresentation2D.h:134
vtkPointHandleRepresentation2D::vtkPointHandleRepresentation2D
vtkPointHandleRepresentation2D()
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:46
vtkPointHandleRepresentation2D::CursorShape
vtkPolyData * CursorShape
Definition: vtkPointHandleRepresentation2D.h:135
vtkPointHandleRepresentation2D::New
static vtkPointHandleRepresentation2D * New()
Instantiate this class.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkPointHandleRepresentation2D::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkPointHandleRepresentation2D::~vtkPointHandleRepresentation2D
~vtkPointHandleRepresentation2D()
vtkPointHandleRepresentation2D::SetDisplayPosition
virtual void SetDisplayPosition(double xyz[3])
Set/Get the position of the point in display coordinates.
vtkPointHandleRepresentation2D::FocalData
vtkPolyData * FocalData
Definition: vtkPointHandleRepresentation2D.h:136
vtkPointHandleRepresentation2D::DetermineConstraintAxis
int DetermineConstraintAxis(int constraint, double eventPos[2])
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:39
vtkPointHandleRepresentation2D::WaitingForMotion
int WaitingForMotion
Definition: vtkPointHandleRepresentation2D.h:156
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45