VTK
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 
31 #include "vtkInteractionWidgetsModule.h" // For export macro
33 
34 class vtkActor2D;
35 class vtkPoints;
36 class vtkPolyData;
37 class vtkProperty2D;
39 
40 class VTKINTERACTIONWIDGETS_EXPORT vtkProgressBarRepresentation : public vtkBorderRepresentation
41 {
42 public:
47 
49 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
61  vtkGetObjectMacro(Property, vtkProperty2D);
63 
65 
69  vtkSetClampMacro(ProgressRate, double, 0, 1);
70  vtkGetMacro(ProgressRate, double);
72 
74 
78  vtkSetVector3Macro(ProgressBarColor, double);
79  vtkGetVector3Macro(ProgressBarColor, double);
81 
83 
87  vtkSetVector3Macro(BackgroundColor, double);
88  vtkGetVector3Macro(BackgroundColor, double);
90 
92 
96  vtkSetMacro(DrawBackground, bool);
97  vtkGetMacro(DrawBackground, bool);
98  vtkBooleanMacro(DrawBackground, bool);
100 
102 
105  virtual void BuildRepresentation();
106  virtual void GetSize(double size[2]);
108 
110 
114  virtual void GetActors2D(vtkPropCollection*);
115  virtual void ReleaseGraphicsResources(vtkWindow*);
116  virtual int RenderOverlay(vtkViewport*);
117  virtual int RenderOpaqueGeometry(vtkViewport*);
119  virtual int HasTranslucentPolygonalGeometry();
121 
122 protected:
125 
126  double ProgressRate;
127  double ProgressBarColor[3];
128  double BackgroundColor[3];
130 
137 
138 private:
140  void operator=(const vtkProgressBarRepresentation&) VTK_DELETE_FUNCTION;
141 };
142 
143 #endif
represent a vtkProgressBarWidget
void PrintSelf(ostream &os, vtkIndent indent)
Define standard methods.
abstract specification for Viewports
Definition: vtkViewport.h:47
a actor that draws 2D data
Definition: vtkActor2D.h:45
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
virtual void GetActors2D(vtkPropCollection *)
These methods are necessary to make this representation behave as a vtkProp.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
static vtkBorderRepresentation * New()
Instantiate this class.
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual void GetSize(double size[2])
Subclasses should implement these methods.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RenderOpaqueGeometry(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
virtual void BuildRepresentation()
Subclasses should implement these methods.
virtual int RenderOverlay(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
represent a vtkBorderWidget
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of unsigned char
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int HasTranslucentPolygonalGeometry()
These methods are necessary to make this representation behave as a vtkProp.
virtual void ReleaseGraphicsResources(vtkWindow *)
These methods are necessary to make this representation behave as a vtkProp.
represent and manipulate 3D points
Definition: vtkPoints.h:39