VTK  9.0.1
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 =========================================================================*/
25 #ifndef vtkProgressBarRepresentation_h
26 #define vtkProgressBarRepresentation_h
27 
29 #include "vtkInteractionWidgetsModule.h" // For export macro
30 
31 class vtkActor2D;
32 class vtkPoints;
33 class vtkPolyData;
34 class vtkProperty2D;
36 
37 class VTKINTERACTIONWIDGETS_EXPORT vtkProgressBarRepresentation : public vtkBorderRepresentation
38 {
39 public:
44 
46 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
58  vtkGetObjectMacro(Property, vtkProperty2D);
60 
62 
66  vtkSetClampMacro(ProgressRate, double, 0, 1);
67  vtkGetMacro(ProgressRate, double);
69 
71 
75  vtkSetVector3Macro(ProgressBarColor, double);
76  vtkGetVector3Macro(ProgressBarColor, double);
78 
80 
84  vtkSetVector3Macro(BackgroundColor, double);
85  vtkGetVector3Macro(BackgroundColor, double);
87 
89 
93  vtkSetMacro(DrawBackground, bool);
94  vtkGetMacro(DrawBackground, bool);
95  vtkBooleanMacro(DrawBackground, bool);
97 
99 
102  void BuildRepresentation() override;
103  void GetSize(double size[2]) override;
105 
107 
111  void GetActors2D(vtkPropCollection*) override;
112  void ReleaseGraphicsResources(vtkWindow*) override;
113  int RenderOverlay(vtkViewport*) override;
114  int RenderOpaqueGeometry(vtkViewport*) override;
118 
119 protected:
121  ~vtkProgressBarRepresentation() override;
122 
123  double ProgressRate;
124  double ProgressBarColor[3];
125  double BackgroundColor[3];
127 
133 
134 private:
136  void operator=(const vtkProgressBarRepresentation&) = delete;
137 };
138 
139 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:54
vtkProgressBarRepresentation::ProgressBarData
vtkUnsignedCharArray * ProgressBarData
Definition: vtkProgressBarRepresentation.h:129
vtkBorderRepresentation::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkBorderRepresentation::New
static vtkBorderRepresentation * New()
Instantiate this class.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:35
vtkProgressBarRepresentation::Property
vtkProperty2D * Property
Definition: vtkProgressBarRepresentation.h:130
vtkBorderRepresentation::BuildRepresentation
void BuildRepresentation() override
Subclasses should implement these methods.
vtkBorderRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkProgressBarRepresentation::ProgressRate
double ProgressRate
Definition: vtkProgressBarRepresentation.h:123
vtkBorderRepresentation::GetActors2D
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkBorderRepresentation.h
vtkProgressBarRepresentation
represent a vtkProgressBarWidget
Definition: vtkProgressBarRepresentation.h:37
vtkBorderRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkBorderRepresentation::GetSize
virtual void GetSize(double size[2])
Definition: vtkBorderRepresentation.h:222
vtkBorderRepresentation::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkProgressBarRepresentation::DrawBackground
bool DrawBackground
Definition: vtkProgressBarRepresentation.h:126
vtkProgressBarRepresentation::Points
vtkPoints * Points
Definition: vtkProgressBarRepresentation.h:128
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProgressBarRepresentation::BackgroundActor
vtkActor2D * BackgroundActor
Definition: vtkProgressBarRepresentation.h:132
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:37
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:39
vtkProgressBarRepresentation::Actor
vtkActor2D * Actor
Definition: vtkProgressBarRepresentation.h:131
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkBorderRepresentation::RenderOverlay
int RenderOverlay(vtkViewport *) override
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:35
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkBorderRepresentation::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...