VTK
9.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkContinuousValueWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkContinuousValueWidget.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
20
64
#ifndef vtkContinuousValueWidget_h
65
#define vtkContinuousValueWidget_h
66
67
#include "
vtkAbstractWidget.h
"
68
#include "
vtkDeprecation.h
"
// For VTK_DEPRECATED_IN_9_2_0
69
#include "vtkInteractionWidgetsModule.h"
// For export macro
70
71
class
vtkContinuousValueWidgetRepresentation
;
72
73
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidget
:
public
vtkAbstractWidget
74
{
75
public
:
77
80
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
81
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
83
89
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
* r)
90
{
91
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
92
}
93
97
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
98
{
99
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);
100
}
101
103
106
double
GetValue
();
107
void
SetValue
(
double
v);
109
110
protected
:
111
vtkContinuousValueWidget
();
112
~vtkContinuousValueWidget
()
override
=
default
;
113
114
// These are the events that are handled
115
static
void
SelectAction
(
vtkAbstractWidget
*);
116
static
void
EndSelectAction
(
vtkAbstractWidget
*);
117
static
void
MoveAction
(
vtkAbstractWidget
*);
118
119
// Manage the state of the widget
120
int
WidgetState
;
121
enum
WidgetStateType
122
{
123
Start = 0,
124
Highlighting
,
125
Adjusting
126
};
127
#if !defined(VTK_LEGACY_REMOVE)
128
VTK_DEPRECATED_IN_9_2_0
(
"because leading underscore is reserved"
)
129
typedef
WidgetStateType
_WidgetState
;
130
#endif
131
132
double
Value
;
133
134
private
:
135
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&) =
delete
;
136
void
operator=(
const
vtkContinuousValueWidget
&) =
delete
;
137
};
138
139
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:177
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:39
vtkContinuousValueWidget
set a value by manipulating something
Definition:
vtkContinuousValueWidget.h:74
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
Definition:
vtkContinuousValueWidget.h:97
vtkContinuousValueWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkContinuousValueWidget::SetValue
void SetValue(double v)
Get the value for this widget.
vtkContinuousValueWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
vtkContinuousValueWidget::WidgetStateType
WidgetStateType
Definition:
vtkContinuousValueWidget.h:122
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition:
vtkContinuousValueWidget.h:124
vtkContinuousValueWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget::~vtkContinuousValueWidget
~vtkContinuousValueWidget() override=default
vtkContinuousValueWidget::GetValue
double GetValue()
Get the value for this widget.
vtkContinuousValueWidget::WidgetState
int WidgetState
Definition:
vtkContinuousValueWidget.h:120
vtkContinuousValueWidget::Value
double Value
Definition:
vtkContinuousValueWidget.h:132
vtkContinuousValueWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget::SetRepresentation
void SetRepresentation(vtkContinuousValueWidgetRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkContinuousValueWidget.h:89
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:119
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:60
vtkAbstractWidget.h
vtkDeprecation.h
VTK_DEPRECATED_IN_9_2_0
#define VTK_DEPRECATED_IN_9_2_0(reason)
Definition:
vtkDeprecation.h:116
Generated on Thu Jun 22 2023 11:22:18 for VTK by
1.9.4