VTK  9.2.6
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
34#include "vtkInteractionWidgetsModule.h" // For export macro
36
37class VTKINTERACTIONWIDGETS_EXPORT vtkContinuousValueWidgetRepresentation
39{
40public:
42
46 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
55 void PlaceWidget(double bounds[6]) override;
56 void BuildRepresentation() override {}
57 void StartWidgetInteraction(double eventPos[2]) override = 0;
58 void WidgetInteraction(double eventPos[2]) override = 0;
59 // virtual void Highlight(int);
61
62 // Enums are used to describe what is selected
64 {
65 Outside = 0,
67 Adjusting
68 };
69#if !defined(VTK_LEGACY_REMOVE)
70 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
72#endif
73
74 // Set/Get the value
75 virtual void SetValue(double value);
76 virtual double GetValue() { return this->Value; }
77
78protected:
81
82 double Value;
83
84private:
86 void operator=(const vtkContinuousValueWidgetRepresentation&) = delete;
87};
88
89#endif
provide the representation for a continuous value
void WidgetInteraction(double eventPos[2]) override=0
Methods to interface with the vtkSliderWidget.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
void StartWidgetInteraction(double eventPos[2]) override=0
Methods to interface with the vtkSliderWidget.
virtual void SetValue(double value)
void BuildRepresentation() override
Methods to interface with the vtkSliderWidget.
void PlaceWidget(double bounds[6]) override
Methods to interface with the vtkSliderWidget.
a simple class to control print indentation
Definition vtkIndent.h:34
abstract class defines interface between the widget and widget representation classes
#define VTK_DEPRECATED_IN_9_2_0(reason)