66 const static int kPrH = 10;
70 CGlAttrGuard guard(GL_LINE_BIT | GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT );
75 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
77 glEnable(GL_LINE_SMOOTH);
78 glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
85 glColor4d(0.9, 0.9, 0.9,
kAlpha);
86 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
87 glRectd(x1, y1, x2, y2);
89 glColor4d(0.5, 0.5, 0.5,
kAlpha);
90 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
91 glRectd(x1, y1, x2, y2);
99 int pr_y2 = pr_y1 +
kPrH - 1;
102 glColor4d(0.8, 0.8, 1.0,
kAlpha);
103 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
104 glRectd(pr_x1, pr_y1, pr_x2, pr_y2);
107 glColor4d(0.5, 0.5, 1.0,
kAlpha);
109 glRectd(pr_x1, pr_y1, pr_x1 + w - 1, pr_y2);
112 glColor4d(0.0, 0.0, 1.0,
kAlpha);
113 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
114 glRectd(pr_x1, pr_y1, pr_x2, pr_y2);
117 glColor4d(0.2, 0.2, 0.2, 1.0);
CGlAttrGuard - guard class for restoring OpenGL attributes.
virtual TVPPoint PreferredSize()
virtual void Render(CGlPane &pane)
virtual void Update(float progress, const string &msg)
virtual ~CProgressPanel()
CProgressPanel()
CProgressPanel.
CGlPoint< TVPUnit > TVPPoint
virtual TModelUnit TextHeight(void) const
virtual void TextOut(const char *text) const
TextOut interface Write the specified text and set up state and transformation as needed.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
static const double kAlpha