VTK
vtkCaptionWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCaptionWidget.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 =========================================================================*/
43 #ifndef vtkCaptionWidget_h
44 #define vtkCaptionWidget_h
45 
46 #include "vtkInteractionWidgetsModule.h" // For export macro
47 #include "vtkBorderWidget.h"
48 
50 class vtkCaptionActor2D;
51 class vtkHandleWidget;
53 class vtkCaptionAnchorCallback;
54 
55 
57 {
58 public:
60  static vtkCaptionWidget *New();
61 
63 
65  void PrintSelf(ostream& os, vtkIndent indent);
67 
70  virtual void SetEnabled(int enabling);
71 
73 
79 
81 
88 
91 
92 protected:
95 
96  // Handles callbacks from the anchor point
97  vtkCaptionAnchorCallback *AnchorCallback;
98 
99  // Widget for the anchor point
101 
102  // Special callbacks for the anchor interaction
106 
107 //BTX
108  friend class vtkCaptionAnchorCallback;
109 //ETX
110 
111 private:
112  vtkCaptionWidget(const vtkCaptionWidget&); //Not implemented
113  void operator=(const vtkCaptionWidget&); //Not implemented
114 };
115 
116 #endif
vtkCaptionWidget::AnchorCallback
vtkCaptionAnchorCallback * AnchorCallback
Definition: vtkCaptionWidget.h:97
vtkCaptionWidget::EndAnchorInteraction
void EndAnchorInteraction()
vtkCaptionWidget::~vtkCaptionWidget
~vtkCaptionWidget()
vtkCaptionWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:79
vtkBorderWidget
place a border around a 2D rectangular region
Definition: vtkBorderWidget.h:88
vtkPointHandleRepresentation3D
represent the position of a point in 3D space
Definition: vtkPointHandleRepresentation3D.h:43
vtkCaptionRepresentation
represents vtkCaptionWidget in the scene
Definition: vtkCaptionRepresentation.h:51
vtkCaptionWidget
widget for placing a caption (text plus leader)
Definition: vtkCaptionWidget.h:57
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:54
vtkInteractionWidgetsModule.h
vtkCaptionWidget::GetCaptionActor2D
vtkCaptionActor2D * GetCaptionActor2D()
vtkBorderWidget.h
vtkCaptionWidget::New
static vtkCaptionWidget * New()
vtkCaptionWidget::AnchorInteraction
void AnchorInteraction()
vtkCaptionWidget::SetCaptionActor2D
void SetCaptionActor2D(vtkCaptionActor2D *capActor)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCaptionWidget::SetRepresentation
void SetRepresentation(vtkCaptionRepresentation *r)
Definition: vtkCaptionWidget.h:76
vtkCaptionWidget::HandleWidget
vtkHandleWidget * HandleWidget
Definition: vtkCaptionWidget.h:100
vtkCaptionActor2D
draw text label associated with a point
Definition: vtkCaptionActor2D.h:77
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkCaptionWidget::vtkCaptionWidget
vtkCaptionWidget()
vtkCaptionWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation()
vtkCaptionWidget::StartAnchorInteraction
void StartAnchorInteraction()
vtkCaptionWidget::SetEnabled
virtual void SetEnabled(int enabling)
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)