KWWidgets
Main Page
Classes
Files
File List
File Members
debian
tmp
usr
include
KWWidgets
debian/tmp/usr/include/KWWidgets/vtkKWRadioButtonSet.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: $RCSfile: vtkKWRadioButtonSet.h,v $
4
5
Copyright (c) Kitware, Inc.
6
All rights reserved.
7
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
// .NAME vtkKWRadioButtonSet - a concrete set of vtkKWRadioButton
15
// .SECTION Description
16
// A composite widget to conveniently store, allocate, create and pack a
17
// set of vtkKWRadioButton.
18
// Each vtkKWRadioButton is created, removed or queried based
19
// on a unique ID provided by the user (ids are *not* handled by the class
20
// since it is likely that they will be defined as enum's or #define by
21
// the user for easier retrieval).
22
// As a subclass of vtkKWWidgetSet, it inherits methods to set the widgets
23
// visibility individually, set the layout parameters, and query each widget.
24
// Widgets are packed (gridded) in the order they were added.
25
// .SECTION See Also
26
// vtkKWWidgetSet
27
28
#ifndef __vtkKWRadioButtonSet_h
29
#define __vtkKWRadioButtonSet_h
30
31
#include "
vtkKWWidgetSet.h
"
32
33
class
vtkKWRadioButton
;
34
35
class
KWWidgets_EXPORT
vtkKWRadioButtonSet
:
public
vtkKWWidgetSet
36
{
37
public
:
38
static
vtkKWRadioButtonSet
*
New
();
39
vtkTypeRevisionMacro(
vtkKWRadioButtonSet
,
vtkKWWidgetSet
);
40
void
PrintSelf
(ostream& os, vtkIndent indent);
41
42
// Description:
43
// Add a vtkKWRadioButton to the set.
44
// The id has to be unique among the set.
45
// Return a pointer to the vtkKWRadioButton, or NULL on error.
46
virtual
vtkKWRadioButton
* AddWidget(
int
id
);
47
48
// Description:
49
// Insert a vtkKWRadioButton at a specific position in the set.
50
// The id has to be unique among the set.
51
// Return a pointer to the vtkKWRadioButton, or NULL on error.
52
virtual
vtkKWRadioButton
* InsertWidget(
int
id
,
int
pos);
53
54
// Description:
55
// Get a vtkKWRadioButton from the set, given its unique id.
56
// Return a pointer to the vtkKWRadioButton, or NULL on error.
57
virtual
vtkKWRadioButton
* GetWidget(
int
id
);
58
59
protected
:
60
vtkKWRadioButtonSet
() {};
61
~vtkKWRadioButtonSet
() {};
62
63
// Helper methods
64
65
virtual
vtkKWWidget
*
AllocateAndCreateWidget
();
66
virtual
vtkKWWidget
*
InsertWidgetInternal
(
int
id
,
int
pos);
67
68
private
:
69
vtkKWRadioButtonSet
(
const
vtkKWRadioButtonSet
&);
// Not implemented
70
void
operator=(
const
vtkKWRadioButtonSet
&);
// Not implemented
71
};
72
73
#endif
Generated on Sun Apr 28 2013 21:04:57 for KWWidgets by
1.8.3.1