VTK
9.2.6
Main Page
Related Pages
Topics
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
67
#ifndef vtkContinuousValueWidget_h
68
#define vtkContinuousValueWidget_h
69
70
#include "
vtkAbstractWidget.h
"
71
#include "
vtkDeprecation.h
"
// For VTK_DEPRECATED_IN_9_2_0
72
#include "vtkInteractionWidgetsModule.h"
// For export macro
73
74
class
vtkContinuousValueWidgetRepresentation
;
75
76
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidget
:
public
vtkAbstractWidget
77
{
78
public
:
80
83
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
84
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
86
92
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
* r)
93
{
94
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
95
}
96
100
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
101
{
102
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);
103
}
104
106
109
double
GetValue
();
110
void
SetValue
(
double
v);
112
113
protected
:
114
vtkContinuousValueWidget
();
115
~vtkContinuousValueWidget
()
override
=
default
;
116
117
// These are the events that are handled
118
static
void
SelectAction
(
vtkAbstractWidget
*);
119
static
void
EndSelectAction
(
vtkAbstractWidget
*);
120
static
void
MoveAction
(
vtkAbstractWidget
*);
121
122
// Manage the state of the widget
123
int
WidgetState
;
124
enum
WidgetStateType
125
{
126
Start = 0,
127
Highlighting
,
128
Adjusting
129
};
130
#if !defined(VTK_LEGACY_REMOVE)
131
VTK_DEPRECATED_IN_9_2_0
(
"because leading underscore is reserved"
)
132
typedef
WidgetStateType
_WidgetState
;
133
#endif
134
135
double
Value
;
136
137
private
:
138
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&) =
delete
;
139
void
operator=(
const
vtkContinuousValueWidget
&) =
delete
;
140
};
141
142
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:66
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:180
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition
vtkContinuousValueWidgetRepresentation.h:39
vtkContinuousValueWidget
set a value by manipulating something
Definition
vtkContinuousValueWidget.h:77
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
Definition
vtkContinuousValueWidget.h:100
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:125
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition
vtkContinuousValueWidget.h:127
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:123
vtkContinuousValueWidget::Value
double Value
Definition
vtkContinuousValueWidget.h:135
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:92
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
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 Mon May 13 2024 00:00:00 for VTK by
1.10.0