VTK
9.5.20251214
Interaction
Widgets
vtkContinuousValueWidgetRepresentation.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3
// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
12
13
#ifndef vtkContinuousValueWidgetRepresentation_h
14
#define vtkContinuousValueWidgetRepresentation_h
15
16
#include "vtkInteractionWidgetsModule.h"
// For export macro
17
#include "
vtkWidgetRepresentation.h
"
18
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
19
20
VTK_ABI_NAMESPACE_BEGIN
21
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkContinuousValueWidgetRepresentation
22
:
public
vtkWidgetRepresentation
23
{
24
public
:
26
29
vtkTypeMacro(
vtkContinuousValueWidgetRepresentation
,
vtkWidgetRepresentation
);
30
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
32
34
39
void
PlaceWidget
(
double
bounds[6])
override
;
40
void
BuildRepresentation
()
override
{}
41
void
StartWidgetInteraction
(
double
eventPos[2])
override
= 0;
42
void
WidgetInteraction
(
double
eventPos[2])
override
= 0;
43
// virtual void Highlight(int);
45
46
// Enums are used to describe what is selected
47
enum
InteractionStateType
48
{
49
Outside
= 0,
50
Inside
,
51
Adjusting
52
};
53
54
// Set/Get the value
55
virtual
void
SetValue
(
double
value);
56
virtual
double
GetValue
() {
return
this->
Value
; }
57
58
protected
:
59
vtkContinuousValueWidgetRepresentation
();
60
~vtkContinuousValueWidgetRepresentation
()
override
;
61
62
double
Value
;
63
64
private
:
65
vtkContinuousValueWidgetRepresentation
(
const
vtkContinuousValueWidgetRepresentation
&) =
delete
;
66
void
operator=(
const
vtkContinuousValueWidgetRepresentation
&) =
delete
;
67
};
68
69
VTK_ABI_NAMESPACE_END
70
#endif
vtkContinuousValueWidgetRepresentation::WidgetInteraction
void WidgetInteraction(double eventPos[2]) override=0
Methods to interface with the vtkSliderWidget.
vtkContinuousValueWidgetRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
vtkContinuousValueWidgetRepresentation::StartWidgetInteraction
void StartWidgetInteraction(double eventPos[2]) override=0
Methods to interface with the vtkSliderWidget.
vtkContinuousValueWidgetRepresentation::InteractionStateType
InteractionStateType
Definition
vtkContinuousValueWidgetRepresentation.h:48
vtkContinuousValueWidgetRepresentation::Outside
@ Outside
Definition
vtkContinuousValueWidgetRepresentation.h:49
vtkContinuousValueWidgetRepresentation::Inside
@ Inside
Definition
vtkContinuousValueWidgetRepresentation.h:50
vtkContinuousValueWidgetRepresentation::Adjusting
@ Adjusting
Definition
vtkContinuousValueWidgetRepresentation.h:51
vtkContinuousValueWidgetRepresentation::SetValue
virtual void SetValue(double value)
vtkContinuousValueWidgetRepresentation::~vtkContinuousValueWidgetRepresentation
~vtkContinuousValueWidgetRepresentation() override
vtkContinuousValueWidgetRepresentation::vtkContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation()
vtkContinuousValueWidgetRepresentation::BuildRepresentation
void BuildRepresentation() override
Methods to interface with the vtkSliderWidget.
Definition
vtkContinuousValueWidgetRepresentation.h:40
vtkContinuousValueWidgetRepresentation::Value
double Value
Definition
vtkContinuousValueWidgetRepresentation.h:62
vtkContinuousValueWidgetRepresentation::PlaceWidget
void PlaceWidget(double bounds[6]) override
Methods to interface with the vtkSliderWidget.
vtkContinuousValueWidgetRepresentation::GetValue
virtual double GetValue()
Definition
vtkContinuousValueWidgetRepresentation.h:56
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkWidgetRepresentation::vtkWidgetRepresentation
vtkWidgetRepresentation()
vtkWidgetRepresentation.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:60
Generated on Sun Dec 14 2025 07:57:21 for VTK by
1.13.2