VTK
9.3.0
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkCheckerboardWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
37
#ifndef vtkCheckerboardWidget_h
38
#define vtkCheckerboardWidget_h
39
40
#include "
vtkAbstractWidget.h
"
41
#include "vtkInteractionWidgetsModule.h"
// For export macro
42
43
VTK_ABI_NAMESPACE_BEGIN
44
class
vtkCheckerboardRepresentation
;
45
class
vtkSliderWidget
;
46
47
class
VTKINTERACTIONWIDGETS_EXPORT
vtkCheckerboardWidget
:
public
vtkAbstractWidget
48
{
49
public
:
53
static
vtkCheckerboardWidget
*
New
();
54
56
59
vtkTypeMacro(
vtkCheckerboardWidget
,
vtkAbstractWidget
);
60
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
62
68
void
SetEnabled
(
int
)
override
;
69
75
void
SetRepresentation
(
vtkCheckerboardRepresentation
* r)
76
{
77
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
78
}
79
83
vtkCheckerboardRepresentation
*
GetCheckerboardRepresentation
()
84
{
85
return
reinterpret_cast<
vtkCheckerboardRepresentation
*
>
(this->
WidgetRep
);
86
}
87
91
void
CreateDefaultRepresentation
()
override
;
92
93
protected
:
94
vtkCheckerboardWidget
();
95
~vtkCheckerboardWidget
()
override
;
96
97
// The four slider widgets
98
vtkSliderWidget
*
TopSlider
;
99
vtkSliderWidget
*
RightSlider
;
100
vtkSliderWidget
*
BottomSlider
;
101
vtkSliderWidget
*
LeftSlider
;
102
103
// Callback interface
104
void
StartCheckerboardInteraction
();
105
void
CheckerboardInteraction
(
int
sliderNum);
106
void
EndCheckerboardInteraction
();
107
108
friend
class
vtkCWCallback;
109
110
private
:
111
vtkCheckerboardWidget
(
const
vtkCheckerboardWidget
&) =
delete
;
112
void
operator=(
const
vtkCheckerboardWidget
&) =
delete
;
113
};
114
115
VTK_ABI_NAMESPACE_END
116
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:52
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:166
vtkCheckerboardRepresentation
represent the vtkCheckerboardWidget
Definition
vtkCheckerboardRepresentation.h:35
vtkCheckerboardWidget
interactively set the number of divisions in 2D image checkerboard
Definition
vtkCheckerboardWidget.h:48
vtkCheckerboardWidget::SetRepresentation
void SetRepresentation(vtkCheckerboardRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkCheckerboardWidget.h:75
vtkCheckerboardWidget::~vtkCheckerboardWidget
~vtkCheckerboardWidget() override
vtkCheckerboardWidget::New
static vtkCheckerboardWidget * New()
Instantiate this class.
vtkCheckerboardWidget::EndCheckerboardInteraction
void EndCheckerboardInteraction()
vtkCheckerboardWidget::CheckerboardInteraction
void CheckerboardInteraction(int sliderNum)
vtkCheckerboardWidget::BottomSlider
vtkSliderWidget * BottomSlider
Definition
vtkCheckerboardWidget.h:100
vtkCheckerboardWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for a VTK class.
vtkCheckerboardWidget::LeftSlider
vtkSliderWidget * LeftSlider
Definition
vtkCheckerboardWidget.h:101
vtkCheckerboardWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkCheckerboardWidget::vtkCheckerboardWidget
vtkCheckerboardWidget()
vtkCheckerboardWidget::StartCheckerboardInteraction
void StartCheckerboardInteraction()
vtkCheckerboardWidget::SetEnabled
void SetEnabled(int) override
The method for activating and deactivating this widget.
vtkCheckerboardWidget::GetCheckerboardRepresentation
vtkCheckerboardRepresentation * GetCheckerboardRepresentation()
Return the representation as a vtkCheckerboardRepresentation.
Definition
vtkCheckerboardWidget.h:83
vtkCheckerboardWidget::TopSlider
vtkSliderWidget * TopSlider
Definition
vtkCheckerboardWidget.h:98
vtkCheckerboardWidget::RightSlider
vtkSliderWidget * RightSlider
Definition
vtkCheckerboardWidget.h:99
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkSliderWidget
set a value by manipulating a slider
Definition
vtkSliderWidget.h:69
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:65
vtkAbstractWidget.h
Generated on Sat Feb 15 2025 13:13:19 for VTK by
1.9.8