VTK  9.7.1
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 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkActor2D;
25 class vtkPoints;
26 class vtkPolyData;
27 class vtkProperty2D;
29 
30 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkProgressBarRepresentation
32 {
33 public:
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 
124  void GetActors2D(vtkPropCollection*) override;
125  void ReleaseGraphicsResources(vtkWindow*) override;
126  int RenderOverlay(vtkViewport*) override;
127  int RenderOpaqueGeometry(vtkViewport*) override;
131 
132 protected:
134  ~vtkProgressBarRepresentation() override;
135 
136  double ProgressRate;
137  double ProgressBarColor[3];
138  double BackgroundColor[3];
139  double Padding[2];
141  bool DrawFrame;
142 
149 
150 private:
152  void operator=(const vtkProgressBarRepresentation&) = delete;
153 };
154 
155 VTK_ABI_NAMESPACE_END
156 #endif
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
represent a vtkProgressBarWidget
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for Viewports
Definition: vtkViewport.h:46
a actor that draws 2D data
Definition: vtkActor2D.h:35
int RenderOpaqueGeometry(vtkViewport *) 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.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
static vtkBorderRepresentation * New()
Instantiate this class.
an ordered list of Props
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
int vtkTypeBool
Definition: vtkABI.h:64
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void BuildRepresentation() override
Subclasses should implement these methods.
a simple class to control print indentation
Definition: vtkIndent.h:28
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
represent a vtkBorderWidget
dynamic, self-adjusting array of unsigned char
represent surface properties of a 2D image
Definition: vtkProperty2D.h:30
#define VTK_MARSHALAUTO
represent and manipulate 3D points
Definition: vtkPoints.h:30