VTK
vtkDistanceRepresentation2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDistanceRepresentation2D.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 =========================================================================*/
36 #ifndef vtkDistanceRepresentation2D_h
37 #define vtkDistanceRepresentation2D_h
38 
39 #include "vtkInteractionWidgetsModule.h" // For export macro
41 
42 class vtkAxisActor2D;
43 class vtkProperty2D;
44 
45 
47 {
48 public:
51 
53 
55  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  virtual double GetDistance()
61  {return this->Distance;}
63 
65 
68  double* GetPoint1WorldPosition();
69  double* GetPoint2WorldPosition();
70  void GetPoint1WorldPosition(double pos[3]);
71  void GetPoint2WorldPosition(double pos[3]);
72  void SetPoint1WorldPosition(double pos[3]);
73  void SetPoint2WorldPosition(double pos[3]);
75 
76  void SetPoint1DisplayPosition(double pos[3]);
77  void SetPoint2DisplayPosition(double pos[3]);
78  void GetPoint1DisplayPosition(double pos[3]);
79  void GetPoint2DisplayPosition(double pos[3]);
80 
82 
85  vtkAxisActor2D *GetAxis();
86  vtkProperty2D *GetAxisProperty();
88 
90  virtual void BuildRepresentation();
91 
93 
94  virtual void ReleaseGraphicsResources(vtkWindow *w);
95  virtual int RenderOverlay(vtkViewport *viewport);
96  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
98 
99 protected:
102 
103  // Add a line to the mix
106 
107  // The distance between the two points
108  double Distance;
109 
110 private:
112  void operator=(const vtkDistanceRepresentation2D&); //Not implemented
113 };
114 
115 #endif
virtual int RenderOverlay(vtkViewport *vtkNotUsed(viewport))
virtual void SetPoint1WorldPosition(double pos[3])=0
virtual void SetPoint1DisplayPosition(double pos[3])=0
abstract specification for Viewports
Definition: vtkViewport.h:46
represent the vtkDistanceWidget
Create an axis with tick marks and labels.
virtual void GetPoint1DisplayPosition(double pos[3])=0
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual void GetPoint2DisplayPosition(double pos[3])=0
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
virtual double * GetPoint1WorldPosition()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void BuildRepresentation()
virtual void SetPoint2DisplayPosition(double pos[3])=0
virtual double * GetPoint2WorldPosition()=0
virtual int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport))
represent surface properties of a 2D image
Definition: vtkProperty2D.h:39
static vtkObject * New()
represent the vtkDistanceWidget
virtual void SetPoint2WorldPosition(double pos[3])=0