VTK  9.4.20250207
vtkProgressBarRepresentation.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
16#ifndef vtkProgressBarRepresentation_h
17#define vtkProgressBarRepresentation_h
18
20#include "vtkInteractionWidgetsModule.h" // For export macro
21#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkActor2D;
25class vtkPoints;
26class vtkPolyData;
27class vtkProperty2D;
29
30class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkProgressBarRepresentation
32{
33public:
38
40
44 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
52 vtkGetObjectMacro(Property, vtkProperty2D);
54
56
60 vtkSetClampMacro(ProgressRate, double, 0, 1);
61 vtkGetMacro(ProgressRate, double);
63
65
70 vtkSetVector2Macro(Padding, double);
71 vtkGetVector2Macro(Padding, double);
73
75
79 vtkSetMacro(DrawFrame, bool);
80 vtkGetMacro(DrawFrame, bool);
81 vtkBooleanMacro(DrawFrame, bool);
83
85
89 vtkSetVector3Macro(ProgressBarColor, double);
90 vtkGetVector3Macro(ProgressBarColor, double);
92
94
98 vtkSetVector3Macro(BackgroundColor, double);
99 vtkGetVector3Macro(BackgroundColor, double);
101
103
107 vtkSetMacro(DrawBackground, bool);
108 vtkGetMacro(DrawBackground, bool);
109 vtkBooleanMacro(DrawBackground, bool);
111
113
116 void BuildRepresentation() override;
118
120
131
132protected:
135
137 double ProgressBarColor[3];
138 double BackgroundColor[3];
139 double Padding[2];
142
149
150private:
152 void operator=(const vtkProgressBarRepresentation&) = delete;
153};
154
155VTK_ABI_NAMESPACE_END
156#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
represent a vtkBorderWidget
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate 3D points
Definition vtkPoints.h:139
concrete dataset represents vertices, lines, polygons, and triangle strips
represent a vtkProgressBarWidget
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
void GetActors2D(vtkPropCollection *) 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.
void BuildRepresentation() override
Satisfy the superclasses' API.
static vtkProgressBarRepresentation * New()
Instantiate this class.
~vtkProgressBarRepresentation() override
an ordered list of Props
represent surface properties of a 2D image
dynamic, self-adjusting array of unsigned char
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO