VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
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
29
#ifndef vtkContinuousValueWidgetRepresentation_h
30
#define vtkContinuousValueWidgetRepresentation_h
31
32
#include "
vtkInteractionWidgetsModule.h
"
// For export macro
33
#include "
vtkWidgetRepresentation.h
"
34
35
class
VTKINTERACTIONWIDGETS_EXPORT
vtkContinuousValueWidgetRepresentation
:
36
public
vtkWidgetRepresentation
37
{
38
public
:
40
41
vtkTypeMacro(
vtkContinuousValueWidgetRepresentation
,
42
vtkWidgetRepresentation
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
47
50
virtual
void
PlaceWidget
(
double
bounds[6]);
51
virtual
void
BuildRepresentation
() {}
52
virtual
void
StartWidgetInteraction
(
double
eventPos[2]) = 0;
53
virtual
void
WidgetInteraction
(
double
eventPos[2]) = 0;
54
// virtual void Highlight(int);
56
57
//BTX
58
// Enums are used to describe what is selected
59
enum
_InteractionState
60
{
61
Outside=0,
62
Inside
,
63
Adjusting
64
};
65
//ETX
66
67
// Set/Get the value
68
virtual
void
SetValue(
double
value
);
69
virtual
double
GetValue
() {
return
this->Value;};
70
71
protected
:
72
vtkContinuousValueWidgetRepresentation
();
73
~
vtkContinuousValueWidgetRepresentation
();
74
75
double
Value
;
76
77
private
:
78
vtkContinuousValueWidgetRepresentation
79
(
const
vtkContinuousValueWidgetRepresentation
&);
//Not implemented
80
void
operator=(
const
vtkContinuousValueWidgetRepresentation
&);
// Not implemented
81
};
82
83
#endif
vtkWidgetRepresentation::StartWidgetInteraction
virtual void StartWidgetInteraction(double eventPos[2])
Definition:
vtkWidgetRepresentation.h:112
vtkContinuousValueWidgetRepresentation::_InteractionState
_InteractionState
Definition:
vtkContinuousValueWidgetRepresentation.h:59
vtkContinuousValueWidgetRepresentation::Value
double Value
Definition:
vtkContinuousValueWidgetRepresentation.h:75
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes ...
Definition:
vtkWidgetRepresentation.h:53
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:35
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkWidgetRepresentation::WidgetInteraction
virtual void WidgetInteraction(double newEventPos[2])
Definition:
vtkWidgetRepresentation.h:113
vtkX3D::value
Definition:
vtkX3D.h:220
vtkContinuousValueWidgetRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Definition:
vtkContinuousValueWidgetRepresentation.h:51
vtkWidgetRepresentation::PlaceWidget
virtual void PlaceWidget(double *vtkNotUsed(bounds[6]))
Definition:
vtkWidgetRepresentation.h:111
vtkWidgetRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInteractionWidgetsModule.h
vtkContinuousValueWidgetRepresentation::GetValue
virtual double GetValue()
Definition:
vtkContinuousValueWidgetRepresentation.h:69
vtkWidgetRepresentation.h
vtkContinuousValueWidgetRepresentation::Inside
Definition:
vtkContinuousValueWidgetRepresentation.h:62
Generated by
1.8.9.1