VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
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 "
vtkBorderWidget.h
"
47
48
class
vtkCaptionRepresentation
;
49
class
vtkCaptionActor2D
;
50
class
vtkHandleWidget
;
51
class
vtkPointHandleRepresentation3D
;
52
class
vtkCaptionAnchorCallback;
53
54
55
class
VTK_WIDGETS_EXPORT
vtkCaptionWidget
:
public
vtkBorderWidget
56
{
57
public
:
59
static
vtkCaptionWidget
*
New
();
60
62
63
vtkTypeMacro(
vtkCaptionWidget
,
vtkBorderWidget
);
64
void
PrintSelf
(ostream& os,
vtkIndent
indent);
66
69
virtual
void
SetEnabled
(
int
enabling);
70
72
75
void
SetRepresentation
(
vtkCaptionRepresentation
*r)
76
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
78
80
84
void
SetCaptionActor2D(
vtkCaptionActor2D
*capActor);
85
vtkCaptionActor2D
*GetCaptionActor2D();
87
89
void
CreateDefaultRepresentation
();
90
91
protected
:
92
vtkCaptionWidget
();
93
~
vtkCaptionWidget
();
94
95
// Handles callbacks from the anchor point
96
vtkCaptionAnchorCallback *
AnchorCallback
;
97
98
// Widget for the anchor point
99
vtkHandleWidget
*
HandleWidget
;
100
101
// Special callbacks for the anchor interaction
102
void
StartAnchorInteraction();
103
void
AnchorInteraction();
104
void
EndAnchorInteraction();
105
106
//BTX
107
friend
class
vtkCaptionAnchorCallback;
108
//ETX
109
110
private
:
111
vtkCaptionWidget
(
const
vtkCaptionWidget
&);
//Not implemented
112
void
operator=(
const
vtkCaptionWidget
&);
//Not implemented
113
};
114
115
#endif
Generated on Sun Sep 9 2012 13:03:49 for VTK by
1.8.1.2