KWWidgets
Main Page
Classes
Files
File List
File Members
vtkKWColorPickerDialog.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: $RCSfile: vtkKWColorPickerDialog.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 vtkKWColorPickerDialog - a color picker dialog.
15
// .SECTION Description
16
// A widget that can be used to pick a color.
17
// This dialog is just a small standalone toplevel that embeds a
18
// vtkKWColorPickerWidget.
19
// .SECTION Thanks
20
// This work is part of the National Alliance for Medical Image
21
// Computing (NAMIC), funded by the National Institutes of Health
22
// through the NIH Roadmap for Medical Research, Grant U54 EB005149.
23
// Information on the National Centers for Biomedical Computing
24
// can be obtained from http://nihroadmap.nih.gov/bioinformatics.
25
// .SECTION See Also
26
// vtkKWColorPickerWidget
27
28
#ifndef __vtkKWColorPickerDialog_h
29
#define __vtkKWColorPickerDialog_h
30
31
#include "
vtkKWDialog.h
"
32
33
class
vtkKWApplication
;
34
class
vtkKWColorPickerWidget
;
35
class
vtkKWPushButton
;
36
37
class
KWWidgets_EXPORT
vtkKWColorPickerDialog
:
public
vtkKWDialog
38
{
39
public
:
40
static
vtkKWColorPickerDialog
*
New
();
41
vtkTypeRevisionMacro(
vtkKWColorPickerDialog
,
vtkKWDialog
);
42
void
PrintSelf
(ostream& os, vtkIndent indent);
43
44
// Description:
45
// Get the internal color picker widget
46
vtkGetObjectMacro(ColorPickerWidget,
vtkKWColorPickerWidget
);
47
48
// Description:
49
// Callback. Confirm the action and close this dialog
50
virtual
void
OK
();
51
52
// Description:
53
// Display the dialog.
54
virtual
void
Display
();
55
56
// Description:
57
// Update the "enable" state of the object and its internal parts.
58
virtual
void
UpdateEnableState
();
59
60
protected
:
61
vtkKWColorPickerDialog
();
62
~
vtkKWColorPickerDialog
();
63
64
// Description:
65
// Create the widget.
66
virtual
void
CreateWidget
();
67
68
// Description:
69
// Member variables
70
vtkKWColorPickerWidget
* ColorPickerWidget;
71
vtkKWPushButton
* OKButton;
72
vtkKWPushButton
* CancelButton;
73
74
// Description:
75
// Processes the events that are passed through CallbackCommand (or others).
76
// Subclasses can oberride this method to process their own events, but
77
// should call the superclass too.
78
virtual
void
ProcessCallbackCommandEvents
(
79
vtkObject *caller,
unsigned
long
event,
void
*calldata);
80
81
// Description:
82
// Update Size
83
virtual
void
UpdateSize();
84
85
private
:
86
vtkKWColorPickerDialog
(
const
vtkKWColorPickerDialog
&);
// Not implemented
87
void
operator=(
const
vtkKWColorPickerDialog
&);
// Not implemented
88
};
89
90
#endif
Generated on Sun Apr 28 2013 21:04:55 for KWWidgets by
1.8.3.1