[vtk-developers] [VTK 0013205]: The vtkContextDevice2D set in a vtkContextView is never used as a new one is set in the vtkContextActor

Mantis Bug Tracker mantis at public.kitware.com
Sat May 26 03:15:09 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=13205 
====================================================================== 
Reported By:                Arnaud BARRE
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   13205
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    Release 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-05-26 03:15 EDT
Last Modified:              2012-05-26 03:15 EDT
====================================================================== 
Summary:                    The vtkContextDevice2D set in a vtkContextView is
never used as a new one is set in the vtkContextActor
Description: 
To try to fix the issue http://www.vtk.org/Bug/view.php?id=13199
(http://www.vtk.org/Bug/view.php?id=13199) in my application without modify the
code of VTK 5.10, I created a class inheriting from vtkOpenGLContextDevice2D
(OpenGLContextDevice2D) and vtkContextView (ContextView). The class ContextView
set an OpenGLContextDevice2D.

However, the device given to the items (vtkContextItem) is never the
OpenGLContextDevice2D device but another vtkOpenGLContextDevice2D object
(confirmed by using the method GetClassName() during a Paint event and also
using the method SetStringRendererToQt()).

This other device is defined in the class vtkContextActor and set in the method
vtkContextActor::Initialize() and then given to the 2D context.

I think the device defined in the vtkContextView should be removed as it has no
effect on the display and seems superfluous.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-26 03:15 Arnaud BARRE   New Issue                                    
======================================================================




More information about the vtk-developers mailing list