VTK  9.5.20251127
vtkScalarBarWidget.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
94
95#ifndef vtkScalarBarWidget_h
96#define vtkScalarBarWidget_h
97
98#include "vtkBorderWidget.h"
99#include "vtkInteractionWidgetsModule.h" // For export macro
100#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
101
102VTK_ABI_NAMESPACE_BEGIN
105
106class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkScalarBarWidget : public vtkBorderWidget
107{
108public:
111 void PrintSelf(ostream& os, vtkIndent indent) override;
112
119
127
129
135
137
145 vtkBooleanMacro(Repositionable, vtkTypeBool);
147
152
158
159protected:
162
164
165 // Handle the case of Repositionable == 0
167
168 // set the cursor to the correct shape based on State argument
169 void SetCursor(int State) override;
170
171private:
172 vtkScalarBarWidget(const vtkScalarBarWidget&) = delete;
173 void operator=(const vtkScalarBarWidget&) = delete;
174};
175
176VTK_ABI_NAMESPACE_END
177#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:108
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:64
#define VTK_MARSHALAUTO