VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkContinuousValueWidgetRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkContinuousValueWidgetRepresentation.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
/*-------------------------------------------------------------------------
17
Copyright 2008 Sandia Corporation.
18
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
19
the U.S. Government retains certain rights in this software.
20
-------------------------------------------------------------------------*/
21
30
#ifndef vtkContinuousValueWidgetRepresentation_h
31
#define vtkContinuousValueWidgetRepresentation_h
32
33
#include "vtkInteractionWidgetsModule.h"
// For export macro
34
#include "
vtkWidgetRepresentation.h
"
35
36
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidgetRepresentation
37
:
public
vtkWidgetRepresentation
38
{
39
public
:
41
44
vtkTypeMacro(
vtkContinuousValueWidgetRepresentation
,
vtkWidgetRepresentation
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
49
54
void
PlaceWidget
(
double
bounds[6])
override
;
55
void
BuildRepresentation
()
override
{}
56
void
StartWidgetInteraction
(
double
eventPos[2])
override
= 0;
57
void
WidgetInteraction
(
double
eventPos[2])
override
= 0;
58
// virtual void Highlight(int);
60
61
// Enums are used to describe what is selected
62
enum
_InteractionState
63
{
64
Outside = 0,
65
Inside
,
66
Adjusting
67
};
68
69
// Set/Get the value
70
virtual
void
SetValue
(
double
value
);
71
virtual
double
GetValue
() {
return
this->Value; }
72
73
protected
:
74
vtkContinuousValueWidgetRepresentation
();
75
~vtkContinuousValueWidgetRepresentation
()
override
;
76
77
double
Value
;
78
79
private
:
80
vtkContinuousValueWidgetRepresentation
(
const
vtkContinuousValueWidgetRepresentation
&) =
delete
;
81
void
operator=(
const
vtkContinuousValueWidgetRepresentation
&) =
delete
;
82
};
83
84
#endif
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:38
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::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:55
vtkContinuousValueWidgetRepresentation::Value
double Value
Definition:
vtkContinuousValueWidgetRepresentation.h:77
vtkContinuousValueWidgetRepresentation::PlaceWidget
void PlaceWidget(double bounds[6]) override
Methods to interface with the vtkSliderWidget.
vtkContinuousValueWidgetRepresentation::GetValue
virtual double GetValue()
Definition:
vtkContinuousValueWidgetRepresentation.h:71
vtkContinuousValueWidgetRepresentation::_InteractionState
_InteractionState
Definition:
vtkContinuousValueWidgetRepresentation.h:63
vtkContinuousValueWidgetRepresentation::Inside
@ Inside
Definition:
vtkContinuousValueWidgetRepresentation.h:65
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
vtkX3D::value
@ value
Definition:
vtkX3D.h:226
vtkWidgetRepresentation.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4