[vtk-developers] possible improvements to vtkRenderWindow
Brad King
brad.king at kitware.com
Tue Apr 8 15:00:37 EDT 2003
> I would like to move Initialize() up to the vtkRenderWindow base class
> and add another method called DeInitialize(). You guessed it, all
> system specific initialisation is performed in Initialize() and
> deinitialisation in DeInitialize(). This has three advantages:
>
> 1. On-demand destruction becomes possible in all vtkRenderWindow ->
> widget set combinations: simply call DeInitialize() before destroying
> the container window.
> 2. The system specific initialisation/deinitialisation becomes
> symmetric.
> 3. WindowRemap() and the destructors are refactored: at the moment the
> deinitialisation code is duplicated between these two.
>
> If there are no problems with this, I would like to make the changes.
> Obviously, I'll show the patches here first so that they can be
> reviewed.
I have no comments on whether this should be done, but if it is done, I
suggest that we call the methods "Initialize" and "Finalize".
-Brad
More information about the vtk-developers
mailing list