VTK  9.2.6
vtkScalarBarWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkScalarBarWidget.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=========================================================================*/
34
35#ifndef vtkScalarBarWidget_h
36#define vtkScalarBarWidget_h
37
38#include "vtkBorderWidget.h"
39#include "vtkInteractionWidgetsModule.h" // For export macro
40
43
44class VTKINTERACTIONWIDGETS_EXPORT vtkScalarBarWidget : public vtkBorderWidget
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
57
65
67
73
75
83 vtkBooleanMacro(Repositionable, vtkTypeBool);
85
90
96
97protected:
100
102
103 // Handle the case of Repositionable == 0
105
106 // set the cursor to the correct shape based on State argument
107 void SetCursor(int State) override;
108
109private:
110 vtkScalarBarWidget(const vtkScalarBarWidget&) = delete;
111 void operator=(const vtkScalarBarWidget&) = delete;
112};
113
114#endif
vtkWidgetRepresentation * GetRepresentation()
Return an instance of vtkWidgetRepresentation used to represent this widget in the scene.
a simple class to control print indentation
Definition vtkIndent.h:34
Create a scalar bar with labels.
represent scalar bar for vtkScalarBarWidget
static void MoveAction(vtkAbstractWidget *)
virtual void SetRepresentation(vtkScalarBarRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkTypeBool GetProcessEvents() override
Reimplement ProcessEvents to use vtkAbstractWidget instead of vtkBorderWidget, for interaction with t...
virtual vtkScalarBarActor * GetScalarBarActor()
Get the ScalarBar used by this Widget.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkScalarBarRepresentation * GetScalarBarRepresentation()
Return the representation as a vtkScalarBarRepresentation.
~vtkScalarBarWidget() override
void SetCursor(int State) override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class.
static vtkScalarBarWidget * New()
virtual void SetScalarBarActor(vtkScalarBarActor *actor)
Get the ScalarBar used by this Widget.
int vtkTypeBool
Definition vtkABI.h:69