View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013205VTK(No Category)public2012-05-26 03:152016-08-12 09:55
ReporterArnaud BARRE 
Assigned ToMarcus D. Hanwell 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0013205: The vtkContextDevice2D set in a vtkContextView is never used as a new one is set in the vtkContextActor
DescriptionTo 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.
TagsNo tags attached.
ProjectRelease
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0031163)
Dave DeMarle (administrator)
2013-07-22 14:47

If this is still present in 6.0, please reopen this bug report.
(0032862)
florianlink (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2012-05-26 03:15 Arnaud BARRE New Issue
2013-06-25 16:36 Dave DeMarle Assigned To => Marcus D. Hanwell
2013-06-25 16:36 Dave DeMarle Status backlog => tabled
2013-07-22 14:47 Dave DeMarle Note Added: 0031163
2013-07-22 14:47 Dave DeMarle Status tabled => expired
2013-07-22 14:47 Dave DeMarle Resolution open => fixed
2014-06-16 04:26 florianlink Note Added: 0032862
2016-08-12 09:55 Kitware Robot Note Added: 0037278
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution fixed => moved


Copyright © 2000 - 2018 MantisBT Team