VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
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
,
45
vtkWidgetRepresentation
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
50
55
virtual
void
PlaceWidget
(
double
bounds[6]);
56
virtual
void
BuildRepresentation
() {}
57
virtual
void
StartWidgetInteraction
(
double
eventPos[2]) = 0;
58
virtual
void
WidgetInteraction
(
double
eventPos[2]) = 0;
59
// virtual void Highlight(int);
61
62
// Enums are used to describe what is selected
63
enum
_InteractionState
64
{
65
Outside=0,
66
Inside
,
67
Adjusting
68
};
69
70
// Set/Get the value
71
virtual
void
SetValue
(
double
value
);
72
virtual
double
GetValue
() {
return
this->Value;};
73
74
protected
:
75
vtkContinuousValueWidgetRepresentation
();
76
~vtkContinuousValueWidgetRepresentation
();
77
78
double
Value
;
79
80
private
:
81
vtkContinuousValueWidgetRepresentation
82
(
const
vtkContinuousValueWidgetRepresentation
&) VTK_DELETE_FUNCTION;
83
void
operator=(
const
vtkContinuousValueWidgetRepresentation
&) VTK_DELETE_FUNCTION;
84
};
85
86
#endif
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition:
vtkContinuousValueWidgetRepresentation.h:38
vtkContinuousValueWidgetRepresentation::PlaceWidget
virtual void PlaceWidget(double bounds[6])
Methods to interface with the vtkSliderWidget.
vtkContinuousValueWidgetRepresentation::SetValue
virtual void SetValue(double value)
vtkContinuousValueWidgetRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkContinuousValueWidgetRepresentation::vtkContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation()
vtkContinuousValueWidgetRepresentation::StartWidgetInteraction
virtual void StartWidgetInteraction(double eventPos[2])=0
vtkContinuousValueWidgetRepresentation::Value
double Value
Definition:
vtkContinuousValueWidgetRepresentation.h:78
vtkContinuousValueWidgetRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Definition:
vtkContinuousValueWidgetRepresentation.h:56
vtkContinuousValueWidgetRepresentation::GetValue
virtual double GetValue()
Definition:
vtkContinuousValueWidgetRepresentation.h:72
vtkContinuousValueWidgetRepresentation::WidgetInteraction
virtual void WidgetInteraction(double eventPos[2])=0
vtkContinuousValueWidgetRepresentation::_InteractionState
_InteractionState
Definition:
vtkContinuousValueWidgetRepresentation.h:64
vtkContinuousValueWidgetRepresentation::Inside
@ Inside
Definition:
vtkContinuousValueWidgetRepresentation.h:66
vtkContinuousValueWidgetRepresentation::~vtkContinuousValueWidgetRepresentation
~vtkContinuousValueWidgetRepresentation()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:55
vtkX3D::value
@ value
Definition:
vtkX3D.h:220
vtkWidgetRepresentation.h
Generated by
1.9.4