VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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 "
vtkWidgetRepresentation.h
"
33
34
class
VTK_WIDGETS_EXPORT
vtkContinuousValueWidgetRepresentation
:
35
public
vtkWidgetRepresentation
36
{
37
public
:
39
40
vtkTypeMacro(
vtkContinuousValueWidgetRepresentation
,
41
vtkWidgetRepresentation
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
49
virtual
void
PlaceWidget
(
double
bounds[6]);
50
virtual
void
BuildRepresentation
() {};
51
virtual
void
StartWidgetInteraction
(
double
eventPos[2]) = 0;
52
virtual
void
WidgetInteraction
(
double
eventPos[2]) = 0;
53
// virtual void Highlight(int);
55
56
//BTX
57
// Enums are used to describe what is selected
58
enum
_InteractionState
59
{
60
Outside=0,
61
Inside
,
62
Adjusting
63
};
64
//ETX
65
66
// Set/Get the value
67
virtual
void
SetValue(
double
value
);
68
virtual
double
GetValue
() {
return
this->Value;};
69
70
protected
:
71
vtkContinuousValueWidgetRepresentation
();
72
~
vtkContinuousValueWidgetRepresentation
();
73
74
double
Value
;
75
76
private
:
77
vtkContinuousValueWidgetRepresentation
78
(
const
vtkContinuousValueWidgetRepresentation
&);
//Not implemented
79
void
operator=(
const
vtkContinuousValueWidgetRepresentation
&);
// Not implemented
80
};
81
82
#endif
vtkWidgetRepresentation::StartWidgetInteraction
virtual void StartWidgetInteraction(double eventPos[2])
Definition:
vtkWidgetRepresentation.h:100
vtkContinuousValueWidgetRepresentation::_InteractionState
_InteractionState
Definition:
vtkContinuousValueWidgetRepresentation.h:58
vtkContinuousValueWidgetRepresentation::Value
double Value
Definition:
vtkContinuousValueWidgetRepresentation.h:74
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes ...
Definition:
vtkWidgetRepresentation.h:49
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:34
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkWidgetRepresentation::WidgetInteraction
virtual void WidgetInteraction(double newEventPos[2])
Definition:
vtkWidgetRepresentation.h:101
VTK_WIDGETS_EXPORT
#define VTK_WIDGETS_EXPORT
Definition:
vtkWin32Header.h:282
vtkX3D::value
Definition:
vtkX3D.h:220
vtkContinuousValueWidgetRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Definition:
vtkContinuousValueWidgetRepresentation.h:50
vtkWidgetRepresentation::PlaceWidget
virtual void PlaceWidget(double *vtkNotUsed(bounds[6]))
Definition:
vtkWidgetRepresentation.h:99
vtkWidgetRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkContinuousValueWidgetRepresentation::GetValue
virtual double GetValue()
Definition:
vtkContinuousValueWidgetRepresentation.h:68
vtkWidgetRepresentation.h
vtkContinuousValueWidgetRepresentation::Inside
Definition:
vtkContinuousValueWidgetRepresentation.h:61
Generated on Sun Oct 19 2014 13:07:38 for VTK by
1.8.8