-
Notifications
You must be signed in to change notification settings - Fork 3
/
vtkKWColorPickerDialog.h
90 lines (71 loc) · 2.76 KB
/
vtkKWColorPickerDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*=========================================================================
Module: $RCSfile: vtkKWColorPickerDialog.h,v $
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkKWColorPickerDialog - a color picker dialog.
// .SECTION Description
// A widget that can be used to pick a color.
// This dialog is just a small standalone toplevel that embeds a
// vtkKWColorPickerWidget.
// .SECTION Thanks
// This work is part of the National Alliance for Medical Image
// Computing (NAMIC), funded by the National Institutes of Health
// through the NIH Roadmap for Medical Research, Grant U54 EB005149.
// Information on the National Centers for Biomedical Computing
// can be obtained from http://nihroadmap.nih.gov/bioinformatics.
// .SECTION See Also
// vtkKWColorPickerWidget
#ifndef __vtkKWColorPickerDialog_h
#define __vtkKWColorPickerDialog_h
#include "vtkKWDialog.h"
class vtkKWApplication;
class vtkKWColorPickerWidget;
class vtkKWPushButton;
class KWWidgets_EXPORT vtkKWColorPickerDialog : public vtkKWDialog
{
public:
static vtkKWColorPickerDialog* New();
vtkTypeRevisionMacro(vtkKWColorPickerDialog,vtkKWDialog);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Get the internal color picker widget
vtkGetObjectMacro(ColorPickerWidget, vtkKWColorPickerWidget);
// Description:
// Callback. Confirm the action and close this dialog
virtual void OK();
// Description:
// Display the dialog.
virtual void Display();
// Description:
// Update the "enable" state of the object and its internal parts.
virtual void UpdateEnableState();
protected:
vtkKWColorPickerDialog();
~vtkKWColorPickerDialog();
// Description:
// Create the widget.
virtual void CreateWidget();
// Description:
// Member variables
vtkKWColorPickerWidget* ColorPickerWidget;
vtkKWPushButton* OKButton;
vtkKWPushButton* CancelButton;
// Description:
// Processes the events that are passed through CallbackCommand (or others).
// Subclasses can oberride this method to process their own events, but
// should call the superclass too.
virtual void ProcessCallbackCommandEvents(
vtkObject *caller, unsigned long event, void *calldata);
// Description:
// Update Size
virtual void UpdateSize();
private:
vtkKWColorPickerDialog(const vtkKWColorPickerDialog&); // Not implemented
void operator=(const vtkKWColorPickerDialog&); // Not implemented
};
#endif