VTK  9.2.6
vtkProgressBarRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkProgressBarRepresentation.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=========================================================================*/
28#ifndef vtkProgressBarRepresentation_h
29#define vtkProgressBarRepresentation_h
30
32#include "vtkInteractionWidgetsModule.h" // For export macro
33
34class vtkActor2D;
35class vtkPoints;
36class vtkPolyData;
37class vtkProperty2D;
39
40class VTKINTERACTIONWIDGETS_EXPORT vtkProgressBarRepresentation : public vtkBorderRepresentation
41{
42public:
47
49
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
61 vtkGetObjectMacro(Property, vtkProperty2D);
63
65
69 vtkSetClampMacro(ProgressRate, double, 0, 1);
70 vtkGetMacro(ProgressRate, double);
72
74
79 vtkSetVector2Macro(Padding, double);
80 vtkGetVector2Macro(Padding, double);
82
84
88 vtkSetMacro(DrawFrame, bool);
89 vtkGetMacro(DrawFrame, bool);
90 vtkBooleanMacro(DrawFrame, bool);
92
94
98 vtkSetVector3Macro(ProgressBarColor, double);
99 vtkGetVector3Macro(ProgressBarColor, double);
101
103
107 vtkSetVector3Macro(BackgroundColor, double);
108 vtkGetVector3Macro(BackgroundColor, double);
110
112
116 vtkSetMacro(DrawBackground, bool);
117 vtkGetMacro(DrawBackground, bool);
118 vtkBooleanMacro(DrawBackground, bool);
120
122
125 void BuildRepresentation() override;
127
129
140
141protected:
144
146 double ProgressBarColor[3];
147 double BackgroundColor[3];
148 double Padding[2];
151
158
159private:
161 void operator=(const vtkProgressBarRepresentation&) = delete;
162};
163
164#endif
a actor that draws 2D data
Definition vtkActor2D.h:46
represent a vtkBorderWidget
a simple class to control print indentation
Definition vtkIndent.h:40
represent and manipulate 3D points
Definition vtkPoints.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
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:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69