KWWidgets
Main Page
Classes
Files
File List
File Members
DEB_build_shared
AutoGeneratedClasses
DEB_build_shared/AutoGeneratedClasses/vtkKWLabelSet.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: $RCSfile: vtkKWWidgetSetSubclass.h.in,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 vtkKWLabelSet - a concrete set of vtkKWLabel
15
// .SECTION Description
16
// A composite widget to conveniently store, allocate, create and pack a
17
// set of vtkKWLabel.
18
// Each vtkKWLabel 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
// @ingroup kwwidgets_autogenerated_widget_set_group
26
// .SECTION Note
27
// This class and the corresponding code were
28
// \subpage kwwidgets_autogenerated_page "generated automatically" by
29
// instantiating the <tt>Templates/vtkKWWidgetSetSubclass.h.in</tt>
30
// and <tt>Templates/vtkKWWidgetSetSubclass.cxx.in</tt> files for
31
// the type vtkKWLabel. Classes related to the same template can be found
32
// in the \ref kwwidgets_autogenerated_widget_set_group section.
33
// .SECTION See Also
34
// vtkKWWidgetSet vtkKWLabel
35
36
#ifndef __vtkKWLabelSet_h
37
#define __vtkKWLabelSet_h
38
39
#include "vtkKWWidgetSet.h"
40
41
class
vtkKWLabel
;
42
43
class
KWWidgets_EXPORT
vtkKWLabelSet
:
public
vtkKWWidgetSet
44
{
45
public
:
46
static
vtkKWLabelSet
*
New
();
47
vtkTypeRevisionMacro(
vtkKWLabelSet
,
vtkKWWidgetSet
);
48
void
PrintSelf
(ostream& os, vtkIndent indent);
49
50
// Description:
51
// Add a vtkKWLabel to the end of the set.
52
// The id has to be unique among the set.
53
// Return a pointer to the vtkKWLabel, or NULL on error.
54
virtual
vtkKWLabel
* AddWidget(
int
id
);
55
56
// Description:
57
// Insert a vtkKWLabel at a specific position in the set.
58
// The id has to be unique among the set.
59
// Return a pointer to the vtkKWLabel, or NULL on error.
60
virtual
vtkKWLabel
* InsertWidget(
int
id
,
int
pos);
61
62
// Description:
63
// Get a vtkKWLabel from the set, given its unique id.
64
// Return a pointer to the vtkKWLabel, or NULL on error.
65
virtual
vtkKWLabel
* GetWidget(
int
id
);
66
67
protected
:
68
vtkKWLabelSet
() {};
69
~vtkKWLabelSet
() {};
70
71
// Helper methods
72
73
virtual
vtkKWWidget
*
AllocateAndCreateWidget
();
74
75
private
:
76
vtkKWLabelSet
(
const
vtkKWLabelSet
&);
// Not implemented
77
void
operator=(
const
vtkKWLabelSet
&);
// Not implemented
78
};
79
80
#endif
Generated on Mon Mar 24 2014 05:21:24 for KWWidgets by
1.8.1.2