VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
66
#ifndef vtkContinuousValueWidget_h
67
#define vtkContinuousValueWidget_h
68
69
#include "
vtkInteractionWidgetsModule.h
"
// For export macro
70
#include "
vtkAbstractWidget.h
"
71
72
class
vtkContinuousValueWidgetRepresentation
;
73
74
75
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidget
:
public
vtkAbstractWidget
76
{
77
public
:
79
80
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
81
void
PrintSelf
(ostream& os,
vtkIndent
indent);
83
85
88
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
*r)
89
{this->Superclass::SetWidgetRepresentation
90
(reinterpret_cast<vtkWidgetRepresentation*>(r));}
92
94
96
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
97
{
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);}
99
101
102
double
GetValue();
103
void
SetValue(
double
v);
105
106
protected
:
107
vtkContinuousValueWidget
();
108
~vtkContinuousValueWidget
() {}
109
110
// These are the events that are handled
111
static
void
SelectAction(
vtkAbstractWidget
*);
112
static
void
EndSelectAction(
vtkAbstractWidget
*);
113
static
void
MoveAction(
vtkAbstractWidget
*);
114
115
// Manage the state of the widget
116
int
WidgetState
;
117
enum
_WidgetState
118
{
119
Start=0,
120
Highlighting
,
121
Adjusting
122
};
123
124
double
Value
;
125
126
private
:
127
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&);
//Not implemented
128
void
operator=(
const
vtkContinuousValueWidget
&);
//Not implemented
129
};
130
131
#endif
vtkAbstractWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkContinuousValueWidget::SetRepresentation
void SetRepresentation(vtkContinuousValueWidgetRepresentation *r)
Definition:
vtkContinuousValueWidget.h:88
vtkContinuousValueWidget::_WidgetState
_WidgetState
Definition:
vtkContinuousValueWidget.h:117
vtkContinuousValueWidget::Value
double Value
Definition:
vtkContinuousValueWidget.h:124
vtkContinuousValueWidget::~vtkContinuousValueWidget
~vtkContinuousValueWidget()
Definition:
vtkContinuousValueWidget.h:108
vtkAbstractWidget.h
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:35
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:159
vtkContinuousValueWidget::WidgetState
int WidgetState
Definition:
vtkContinuousValueWidget.h:116
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkContinuousValueWidget
set a value by manipulating something
Definition:
vtkContinuousValueWidget.h:75
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Definition:
vtkContinuousValueWidget.h:96
vtkInteractionWidgetsModule.h
vtkContinuousValueWidget::Highlighting
Definition:
vtkContinuousValueWidget.h:120
Generated on Wed Dec 16 2015 17:15:02 for VTK by
1.8.9.1