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
=========================================================================*/
71
#ifndef vtkCheckerboardWidget_h
72
#define vtkCheckerboardWidget_h
73
74
#include "
vtkAbstractWidget.h
"
75
#include "vtkInteractionWidgetsModule.h"
// For export macro
76
77
class
vtkCheckerboardRepresentation
;
78
class
vtkSliderWidget
;
79
80
class
VTKINTERACTIONWIDGETS_EXPORT
vtkCheckerboardWidget
:
public
vtkAbstractWidget
81
{
82
public
:
86
static
vtkCheckerboardWidget
*
New
();
87
89
92
vtkTypeMacro(
vtkCheckerboardWidget
,
vtkAbstractWidget
);
93
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
95
101
void
SetEnabled
(
int
)
override
;
102
108
void
SetRepresentation
(
vtkCheckerboardRepresentation
* r)
109
{
110
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
111
}
112
116
vtkCheckerboardRepresentation
*
GetCheckerboardRepresentation
()
117
{
118
return
reinterpret_cast<
vtkCheckerboardRepresentation
*
>
(this->
WidgetRep
);
119
}
120
124
void
CreateDefaultRepresentation
()
override
;
125
126
protected
:
127
vtkCheckerboardWidget
();
128
~vtkCheckerboardWidget
()
override
;
129
130
// The four slider widgets
131
vtkSliderWidget
*
TopSlider
;
132
vtkSliderWidget
*
RightSlider
;
133
vtkSliderWidget
*
BottomSlider
;
134
vtkSliderWidget
*
LeftSlider
;
135
136
// Callback interface
137
void
StartCheckerboardInteraction
();
138
void
CheckerboardInteraction
(
int
sliderNum);
139
void
EndCheckerboardInteraction
();
140
141
friend
class
vtkCWCallback;
142
143
private
:
144
vtkCheckerboardWidget
(
const
vtkCheckerboardWidget
&) =
delete
;
145
void
operator=(
const
vtkCheckerboardWidget
&) =
delete
;
146
};
147
148
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:66
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:175
vtkCheckerboardRepresentation
represent the vtkCheckerboardWidget
Definition:
vtkCheckerboardRepresentation.h:62
vtkCheckerboardWidget
interactively set the number of divisions in 2D image checkerboard
Definition:
vtkCheckerboardWidget.h:81
vtkCheckerboardWidget::SetRepresentation
void SetRepresentation(vtkCheckerboardRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkCheckerboardWidget.h:108
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:133
vtkCheckerboardWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for a VTK class.
vtkCheckerboardWidget::LeftSlider
vtkSliderWidget * LeftSlider
Definition:
vtkCheckerboardWidget.h:134
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:116
vtkCheckerboardWidget::TopSlider
vtkSliderWidget * TopSlider
Definition:
vtkCheckerboardWidget.h:131
vtkCheckerboardWidget::RightSlider
vtkSliderWidget * RightSlider
Definition:
vtkCheckerboardWidget.h:132
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkSliderWidget
set a value by manipulating a slider
Definition:
vtkSliderWidget.h:190
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:60
vtkAbstractWidget.h
Generated on Fri Apr 21 2023 10:28:52 for VTK by
1.9.6