VTK  9.5.20251209
vtkScalarBarRepresentation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
84
85#ifndef vtkScalarBarRepresentation_h
86#define vtkScalarBarRepresentation_h
87
89#include "vtkInteractionWidgetsModule.h" // For export macro
90#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
91
92VTK_ABI_NAMESPACE_BEGIN
94
95class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkScalarBarRepresentation
97{
98public:
100 void PrintSelf(ostream& os, vtkIndent indent) override;
102
104
110
112
115 void BuildRepresentation() override;
116 void WidgetInteraction(double eventPos[2]) override;
117 void GetSize(double size[2]) override
118 {
119 size[0] = 2.0;
120 size[1] = 2.0;
121 }
122
123
125
129 vtkTypeBool GetVisibility() VTK_FUTURE_CONST override;
131 void GetActors2D(vtkPropCollection* collection) override;
132 void ReleaseGraphicsResources(vtkWindow* window) override;
138
140
144 vtkSetMacro(AutoOrient, bool);
145 vtkGetMacro(AutoOrient, bool);
147
149
152 void SetOrientation(int orient);
155
156protected:
159
165
168
169private:
171 void operator=(const vtkScalarBarRepresentation&) = delete;
172};
173
174VTK_ABI_NAMESPACE_END
175#endif // vtkScalarBarRepresentation_h
a simple class to control print indentation
Definition vtkIndent.h:108
an ordered list of Props
Create a scalar bar with labels.
vtkTypeBool GetVisibility() VTK_FUTURE_CONST override
These methods are necessary to make this representation behave as a vtkProp.
void SwapOrientation()
Change horizontal <--> vertical orientation, rotate the corners of the bar to preserve size,...
virtual void SetScalarBarActor(vtkScalarBarActor *)
The prop that is placed in the renderer.
void BuildRepresentation() override
Satisfy the superclass' API.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
void GetSize(double size[2]) override
Satisfy the superclass' API.
void SetVisibility(vtkTypeBool) override
These methods are necessary to make this representation behave as a vtkProp.
void ReleaseGraphicsResources(vtkWindow *window) override
These methods are necessary to make this representation behave as a vtkProp.
void WidgetInteraction(double eventPos[2]) override
Satisfy the superclass' API.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
static vtkScalarBarRepresentation * New()
int GetOrientation()
Get/Set the orientation.
void SetOrientation(int orient)
Get/Set the orientation.
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
void GetActors2D(vtkPropCollection *collection) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for Viewports
Definition vtkViewport.h:66
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO