VTK
dox
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 "vtkInteractionWidgetsModule.h"
// For export macro
68
#include "
vtkAbstractWidget.h
"
69
70
class
vtkContinuousValueWidgetRepresentation
;
71
72
73
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidget
:
public
vtkAbstractWidget
74
{
75
public
:
77
80
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
81
void
PrintSelf
(ostream& os,
vtkIndent
indent);
83
89
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
*r)
90
{this->Superclass::SetWidgetRepresentation
91
(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));}
92
96
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
97
{
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);}
98
100
103
double
GetValue
();
104
void
SetValue
(
double
v);
106
107
protected
:
108
vtkContinuousValueWidget
();
109
~vtkContinuousValueWidget
() {}
110
111
// These are the events that are handled
112
static
void
SelectAction
(
vtkAbstractWidget
*);
113
static
void
EndSelectAction
(
vtkAbstractWidget
*);
114
static
void
MoveAction
(
vtkAbstractWidget
*);
115
116
// Manage the state of the widget
117
int
WidgetState
;
118
enum
_WidgetState
119
{
120
Start=0,
121
Highlighting
,
122
Adjusting
123
};
124
125
double
Value
;
126
127
private
:
128
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&) VTK_DELETE_FUNCTION;
129
void
operator=(
const
vtkContinuousValueWidget
&) VTK_DELETE_FUNCTION;
130
};
131
132
#endif
vtkContinuousValueWidget::SetValue
void SetValue(double v)
vtkContinuousValueWidget::_WidgetState
_WidgetState
Definition:
vtkContinuousValueWidget.h:119
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
Definition:
vtkContinuousValueWidget.h:96
vtkContinuousValueWidget::GetValue
double GetValue()
Get the value for this widget.
vtkAbstractWidget.h
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:55
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:174
vtkContinuousValueWidget::SetRepresentation
void SetRepresentation(vtkContinuousValueWidgetRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkContinuousValueWidget.h:89
vtkContinuousValueWidget::WidgetState
int WidgetState
Definition:
vtkContinuousValueWidget.h:117
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::Value
double Value
Definition:
vtkContinuousValueWidget.h:125
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:64
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:38
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition:
vtkContinuousValueWidget.h:121
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkContinuousValueWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget::~vtkContinuousValueWidget
~vtkContinuousValueWidget()
Definition:
vtkContinuousValueWidget.h:109
vtkContinuousValueWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkContinuousValueWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget
set a value by manipulating something
Definition:
vtkContinuousValueWidget.h:74
vtkContinuousValueWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
Generated by
1.8.20