VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkCheckerboardWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCheckerboardWidget.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
65
#ifndef vtkCheckerboardWidget_h
66
#define vtkCheckerboardWidget_h
67
68
#include "
vtkAbstractWidget.h
"
69
#include "vtkInteractionWidgetsModule.h"
// For export macro
70
71
class
vtkCheckerboardRepresentation
;
72
class
vtkSliderWidget
;
73
74
class
VTKINTERACTIONWIDGETS_EXPORT
vtkCheckerboardWidget
:
public
vtkAbstractWidget
75
{
76
public
:
80
static
vtkCheckerboardWidget
*
New
();
81
83
86
vtkTypeMacro(
vtkCheckerboardWidget
,
vtkAbstractWidget
);
87
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
89
95
void
SetEnabled
(
int
)
override
;
96
102
void
SetRepresentation
(
vtkCheckerboardRepresentation
* r)
103
{
104
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
105
}
106
110
vtkCheckerboardRepresentation
*
GetCheckerboardRepresentation
()
111
{
112
return
reinterpret_cast<
vtkCheckerboardRepresentation
*
>
(this->
WidgetRep
);
113
}
114
118
void
CreateDefaultRepresentation
()
override
;
119
120
protected
:
121
vtkCheckerboardWidget
();
122
~vtkCheckerboardWidget
()
override
;
123
124
// The four slider widgets
125
vtkSliderWidget
*
TopSlider
;
126
vtkSliderWidget
*
RightSlider
;
127
vtkSliderWidget
*
BottomSlider
;
128
vtkSliderWidget
*
LeftSlider
;
129
130
// Callback interface
131
void
StartCheckerboardInteraction
();
132
void
CheckerboardInteraction
(
int
sliderNum);
133
void
EndCheckerboardInteraction
();
134
135
friend
class
vtkCWCallback;
136
137
private
:
138
vtkCheckerboardWidget
(
const
vtkCheckerboardWidget
&) =
delete
;
139
void
operator=(
const
vtkCheckerboardWidget
&) =
delete
;
140
};
141
142
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:172
vtkCheckerboardRepresentation
represent the vtkCheckerboardWidget
Definition:
vtkCheckerboardRepresentation.h:62
vtkCheckerboardWidget
interactively set the number of divisions in 2D image checkerboard
Definition:
vtkCheckerboardWidget.h:75
vtkCheckerboardWidget::SetRepresentation
void SetRepresentation(vtkCheckerboardRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkCheckerboardWidget.h:102
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:127
vtkCheckerboardWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for a VTK class.
vtkCheckerboardWidget::LeftSlider
vtkSliderWidget * LeftSlider
Definition:
vtkCheckerboardWidget.h:128
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:110
vtkCheckerboardWidget::TopSlider
vtkSliderWidget * TopSlider
Definition:
vtkCheckerboardWidget.h:125
vtkCheckerboardWidget::RightSlider
vtkSliderWidget * RightSlider
Definition:
vtkCheckerboardWidget.h:126
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkSliderWidget
set a value by manipulating a slider
Definition:
vtkSliderWidget.h:184
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:60
vtkAbstractWidget.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4