VTK
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 
73 
74 
76 {
77 public:
79 
81  void PrintSelf(ostream& os, vtkIndent indent);
83 
85 
89  {this->Superclass::SetWidgetRepresentation
90  (reinterpret_cast<vtkWidgetRepresentation*>(r));}
92 
94 
97  {return reinterpret_cast<vtkContinuousValueWidgetRepresentation*>(this->WidgetRep);}
99 
101 
102  double GetValue();
103  void SetValue(double v);
105 
106 protected:
109 
110  // These are the events that are handled
114 
115 //BTX - manage the state of the widget
118  {
119  Start=0,
121  Adjusting
122  };
123 //ETX
124 
125  double Value;
126 
127 private:
128  vtkContinuousValueWidget(const vtkContinuousValueWidget&); //Not implemented
129  void operator=(const vtkContinuousValueWidget&); //Not implemented
130 };
131 
132 #endif
vtkContinuousValueWidget::SetValue
void SetValue(double v)
vtkContinuousValueWidget::_WidgetState
_WidgetState
Definition: vtkContinuousValueWidget.h:118
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Definition: vtkContinuousValueWidget.h:96
vtkContinuousValueWidget::GetValue
double GetValue()
vtkAbstractWidget.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:54
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:159
vtkContinuousValueWidget::SetRepresentation
void SetRepresentation(vtkContinuousValueWidgetRepresentation *r)
Definition: vtkContinuousValueWidget.h:88
vtkInteractionWidgetsModule.h
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkContinuousValueWidget::WidgetState
int WidgetState
Definition: vtkContinuousValueWidget.h:116
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::Value
double Value
Definition: vtkContinuousValueWidget.h:125
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition: vtkContinuousValueWidgetRepresentation.h:37
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition: vtkContinuousValueWidget.h:120
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkContinuousValueWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget::~vtkContinuousValueWidget
~vtkContinuousValueWidget()
Definition: vtkContinuousValueWidget.h:108
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkContinuousValueWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkContinuousValueWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget
set a value by manipulating something
Definition: vtkContinuousValueWidget.h:76
vtkContinuousValueWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)