VTK
9.4.20250130
Main Page
Related Pages
Modules
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
59
#ifndef vtkCheckerboardWidget_h
60
#define vtkCheckerboardWidget_h
61
62
#include "
vtkAbstractWidget.h
"
63
#include "vtkInteractionWidgetsModule.h"
// For export macro
64
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
65
66
VTK_ABI_NAMESPACE_BEGIN
67
class
vtkCheckerboardRepresentation
;
68
class
vtkSliderWidget
;
69
70
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkCheckerboardWidget
:
public
vtkAbstractWidget
71
{
72
public
:
76
static
vtkCheckerboardWidget
*
New
();
77
79
82
vtkTypeMacro(
vtkCheckerboardWidget
,
vtkAbstractWidget
);
83
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
85
91
void
SetEnabled
(
int
)
override
;
92
98
void
SetRepresentation
(
vtkCheckerboardRepresentation
* r)
99
{
100
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
101
}
102
106
vtkCheckerboardRepresentation
*
GetCheckerboardRepresentation
()
107
{
108
return
reinterpret_cast<
vtkCheckerboardRepresentation
*
>
(this->
WidgetRep
);
109
}
110
114
void
CreateDefaultRepresentation
()
override
;
115
116
protected
:
117
vtkCheckerboardWidget
();
118
~vtkCheckerboardWidget
()
override
;
119
120
// The four slider widgets
121
vtkSliderWidget
*
TopSlider
;
122
vtkSliderWidget
*
RightSlider
;
123
vtkSliderWidget
*
BottomSlider
;
124
vtkSliderWidget
*
LeftSlider
;
125
126
// Callback interface
127
void
StartCheckerboardInteraction
();
128
void
CheckerboardInteraction
(
int
sliderNum);
129
void
EndCheckerboardInteraction
();
130
131
friend
class
vtkCWCallback;
132
133
private
:
134
vtkCheckerboardWidget
(
const
vtkCheckerboardWidget
&) =
delete
;
135
void
operator=(
const
vtkCheckerboardWidget
&) =
delete
;
136
};
137
138
VTK_ABI_NAMESPACE_END
139
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
vtkCheckerboardRepresentation
represent the vtkCheckerboardWidget
Definition
vtkCheckerboardRepresentation.h:56
vtkCheckerboardWidget
interactively set the number of divisions in 2D image checkerboard
Definition
vtkCheckerboardWidget.h:71
vtkCheckerboardWidget::SetRepresentation
void SetRepresentation(vtkCheckerboardRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkCheckerboardWidget.h:98
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:123
vtkCheckerboardWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for a VTK class.
vtkCheckerboardWidget::LeftSlider
vtkSliderWidget * LeftSlider
Definition
vtkCheckerboardWidget.h:124
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:106
vtkCheckerboardWidget::TopSlider
vtkSliderWidget * TopSlider
Definition
vtkCheckerboardWidget.h:121
vtkCheckerboardWidget::RightSlider
vtkSliderWidget * RightSlider
Definition
vtkCheckerboardWidget.h:122
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkSliderWidget
set a value by manipulating a slider
Definition
vtkSliderWidget.h:180
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:68
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Thu Jan 30 2025 10:47:34 for VTK by
1.9.7