KWWidgets
Main Page
Classes
Files
File List
File Members
Examples
Cxx
Tutorial1
Step4
Examples/Cxx/Tutorial1/Step4/vtkKWMyWidget.h
Go to the documentation of this file.
1
#ifndef __vtkKWMyWidget_h
2
#define __vtkKWMyWidget_h
3
4
#include "vtkKWCompositeWidget.h"
5
6
class
vtkKWLabel
;
7
class
vtkKWCheckButton
;
8
9
class
vtkKWMyWidget
:
public
vtkKWCompositeWidget
10
{
11
public
:
12
static
vtkKWMyWidget
*
New
();
13
vtkTypeRevisionMacro(
vtkKWMyWidget
,
vtkKWCompositeWidget
);
14
void
PrintSelf
(ostream& os, vtkIndent indent);
15
16
// Description:
17
// Get the internal widgets.
18
vtkGetObjectMacro(
Label
,
vtkKWLabel
);
19
vtkGetObjectMacro(
CheckButton
,
vtkKWCheckButton
);
20
21
// Description:
22
// Set/Get the background color of the label when the checkbutton is selected
23
vtkGetVector3Macro(
SelectedBackgroundColor
,
double
);
24
virtual
void
SetSelectedBackgroundColor
(
double
r,
double
g,
double
b);
25
virtual
void
SetSelectedBackgroundColor
(
double
rgb[3])
26
{ this->
SetSelectedBackgroundColor
(rgb[0], rgb[1], rgb[2]); };
27
28
// Description:
29
// Update the "enable" state of the object and its internal parts.
30
// Depending on different Ivars (this->Enabled, the application's
31
// Limited Edition Mode, etc.), the "enable" state of the object is updated
32
// and propagated to its internal parts/subwidgets.
33
virtual
void
UpdateEnableState
();
34
35
protected
:
36
vtkKWMyWidget
();
37
~vtkKWMyWidget
();
38
39
vtkKWLabel
*
Label
;
40
vtkKWCheckButton
*
CheckButton
;
41
42
double
SelectedBackgroundColor
[3];
43
44
// Description:
45
// Create the widget.
46
virtual
void
CreateWidget
();
47
48
// Description:
49
// Update the label's aspect according to the checkbutton's state.
50
virtual
void
UpdateLabel
();
51
52
// Description:
53
// Processes the events that are passed through CallbackCommand (or others).
54
virtual
void
ProcessCallbackCommandEvents
(
55
vtkObject *caller,
unsigned
long
event,
void
*calldata);
56
57
private
:
58
vtkKWMyWidget
(
const
vtkKWMyWidget
&);
// Not implemented.
59
void
operator=(
const
vtkKWMyWidget
&);
// Not implemented.
60
};
61
62
#endif
Generated on Thu Apr 18 2013 08:50:50 for KWWidgets by
1.8.1.2