MantisBT - ParaView
View Issue Details
0012120ParaViewFeaturepublic2011-04-22 03:172011-07-22 14:15
Jerome Velut 
Kyle Lutz 
normalfeatureN/A
closedfixed 
PCLinuxFedora14
Development 
3.12 
TBD
12120-plugin-context-menu
incorrect functionality
0012120: To allow plugin to add item in the contextual menu
the pqPipelineContextMenuBehaviour implements a buildMenu() function. This a protected, virtual function as well as the QMenu Menu member variable. Thus it is possible to override the buildMenu function in a child class in order to manipulate the context Menu.

However, buildMenu is called only when right-clicking on a mesh (because of the pqView picker). Attached is a patched that makes buildMenu called at each right click in a view. The existing pqDataRepresentation's checks are performed inside the new buildMenu function.
Not a bug.
See email thread:
http://public.kitware.com/pipermail/paraview-developers/2011-April/001008.html [^]
No tags attached.
patch pv-contextmenu.patch (4,432) 2011-04-22 03:17
https://www.vtk.org/Bug/file/8831/pv-contextmenu.patch
Issue History
2011-04-22 03:17Jerome VelutNew Issue
2011-04-22 03:17Jerome VelutFile Added: pv-contextmenu.patch
2011-05-06 11:25Utkarsh AyachitTarget Version => 3.12
2011-06-16 13:10Zack GalbreathCategoryFeature Request => Feature
2011-06-27 16:03Utkarsh AyachitAssigned To => Kyle Lutz
2011-06-29 09:00Kyle LutzStatusbacklog => todo
2011-06-29 09:00Kyle LutzStatustodo => active development
2011-06-29 10:34Kyle LutzNote Added: 0026911
2011-06-29 10:34Kyle LutzStatusactive development => gatekeeper review
2011-06-30 14:17Utkarsh AyachitNote Added: 0026924
2011-07-01 15:33Utkarsh AyachitProject => TBD
2011-07-01 15:33Utkarsh AyachitTopic Name => 12120-plugin-context-menu
2011-07-01 15:33Utkarsh AyachitType => incorrect functionality
2011-07-01 15:33Utkarsh AyachitStatusgatekeeper review => customer review
2011-07-01 15:33Utkarsh AyachitFixed in Version => 3.12
2011-07-01 15:33Utkarsh AyachitResolutionopen => fixed
2011-07-22 14:15Utkarsh AyachitStatuscustomer review => closed

Notes
(0026911)
Kyle Lutz   
2011-06-29 10:34   
Fixed by:

commit 54e2de2539e319421a342353fa0c01bd41548533
Author: Kyle Lutz <kyle.lutz@kitware.com>
Date: Wed Jun 29 10:27:03 2011 -0400

    Changed buildMenu() to always be called for context menu
    
    This changes the behavior for the right-click context menu
    to always call the virtual buildMenu() method even when no
    object is picked.
    
    Based on the patch provided by Jerome Velut.
    
    Change-Id: Ie4b92d62cf3c9c7c6e798763d4fd1f543cfb61a9
(0026924)
Utkarsh Ayachit   
2011-06-30 14:17   
For Developers: These issues are slated for gatekeeper review on July 1, 2 pm EDT.