VTK
9.1.0
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 "vtkInteractionWidgetsModule.h"
// For export macro
69
70
class
vtkContinuousValueWidgetRepresentation
;
71
72
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidget
:
public
vtkAbstractWidget
73
{
74
public
:
76
79
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
80
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
82
88
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
* r)
89
{
90
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
91
}
92
96
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
97
{
98
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);
99
}
100
102
105
double
GetValue
();
106
void
SetValue
(
double
v);
108
109
protected
:
110
vtkContinuousValueWidget
();
111
~vtkContinuousValueWidget
()
override
=
default
;
112
113
// These are the events that are handled
114
static
void
SelectAction
(
vtkAbstractWidget
*);
115
static
void
EndSelectAction
(
vtkAbstractWidget
*);
116
static
void
MoveAction
(
vtkAbstractWidget
*);
117
118
// Manage the state of the widget
119
int
WidgetState
;
120
enum
_WidgetState
121
{
122
Start = 0,
123
Highlighting
,
124
Adjusting
125
};
126
127
double
Value
;
128
129
private
:
130
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&) =
delete
;
131
void
operator=(
const
vtkContinuousValueWidget
&) =
delete
;
132
};
133
134
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:172
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:38
vtkContinuousValueWidget
set a value by manipulating something
Definition:
vtkContinuousValueWidget.h:73
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
Definition:
vtkContinuousValueWidget.h:96
vtkContinuousValueWidget::_WidgetState
_WidgetState
Definition:
vtkContinuousValueWidget.h:121
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition:
vtkContinuousValueWidget.h:123
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::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:119
vtkContinuousValueWidget::Value
double Value
Definition:
vtkContinuousValueWidget.h:127
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:88
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
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