(continued)Performance considerationsUsing progress indicator obviously adds certain overhead as calculating current position and redrawing a widget eats some CPU time. So, be careful to not abuse an indicator by updating it after every tiny operation. Instead you might prefer to request its update after some chunks of operations (e.g. after every 10th).int aNbOps = ...;int aThreshold = 10;int aNbChunks = aNbOps / aThreshold;anIndicator->SetRange...
How do you measure your progress ? Part 2
23:06 / BY Roman Lygin
(continued)GUI couplingYou will want to subclass Message_ProgressIndicator to couple with your favorite GUI toolkit you are using to develop your application. An alternative choice is to provide simple text output (e.g. for debugging purposes). Either way, you will have to redefine Show() and UserBreak() methods.In my QOLib (Qt/Open CASCADE Library) I used Qt's QProgressDialog widget to visualize a progress bar and a cancel...
How do you measure your progress ? Part 1
23:51 / BY Roman Lygin
It's important to set measurable goals in your life and to periodically check how you advance. Your application should also communicate its status in execution of a long operation, otherwise your users may decide the application hung up and to kill it.Open CASCADE offers a mean to help you to signal that your app is still alive. It's Message_ProgressIndicator, a class manipulated by...
The King is dead. Long live the King !
22:33 / BY Roman Lygin
This post will be about Qt. If you are the fan of Trolltech's products or the company itself as much as I was, you will likely be astonished if you have not been yet. Today, Jan 14, the company announced they would license Qt under LGPL. Everywhere including Windows. Read the announcement here.Qt Software (new name of Trolltech, much lacking its previous brightness,...
Call for action. Building CAD/CAM/CAE development resource index
16:06 / BY Roman Lygin
After I have started this blog there were a few inquiries from people asking to share resources that would help novices to better understand the CAD/CAM/CAE (CAx) world. I shared what I had (well, some links got broken over time), and thought this could be of a broader interest, virtually for anyone in the development community.Can we all together try this out and...