MantisBT - VTK
View Issue Details
0013205VTK(No Category)public2012-05-26 03:152016-08-12 09:55
Arnaud BARRE 
Marcus D. Hanwell 
normalminorhave not tried
closedmoved 
5.8.0 
 
Release
incorrect functionality
0013205: The vtkContextDevice2D set in a vtkContextView is never used as a new one is set in the vtkContextActor
To try to fix the issue 0013199 (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.
No tags attached.
Issue History
2012-05-26 03:15Arnaud BARRENew Issue
2013-06-25 16:36Dave DeMarleAssigned To => Marcus D. Hanwell
2013-06-25 16:36Dave DeMarleStatusbacklog => tabled
2013-07-22 14:47Dave DeMarleNote Added: 0031163
2013-07-22 14:47Dave DeMarleStatustabled => expired
2013-07-22 14:47Dave DeMarleResolutionopen => fixed
2014-06-16 04:26florianlinkNote Added: 0032862
2016-08-12 09:55Kitware RobotNote Added: 0037278
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionfixed => moved

Notes
(0031163)
Dave DeMarle   
2013-07-22 14:47   
If this is still present in 6.0, please reopen this bug report.
(0032862)
florianlink   
2014-06-16 04:26   
I had a look at the current GIT master and it still contains the creation of a (unused) Context/Device, while the one used for rendering lives in vtkContextActor:

vtkContextView::vtkContextView()
{
  this->Context = vtkSmartPointer<vtkContext2D>::New();
  vtkOpenGLContextDevice2D *pd = vtkOpenGLContextDevice2D::New();
  this->Context->Begin(pd);
  pd->Delete();
  ...
}
(0037278)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.