MantisBT - ParaView
View Issue Details
0013927ParaView(No Category)public2013-03-05 12:052015-01-11 08:27
Patrick O'Leary 
Utkarsh Ayachit 
normalminorhave not tried
closedfixed 
3.98.1 
4.0 
LANL-InSitu
13927_fix_text_bounding_boxes
incorrect functionality
0013927: Bounding box outline shows up in parallel batch python scripts
1. every text has a white bounding box around it (see attached image)
2. the output lists the following error, although an image still gets generated

ERROR: In /home/boonth/Desktop/xrage_pv/gitrepo/ParaView-3.98.0/VTK/Interaction/Widgets/vtkAbstractWidget.cxx, line 118
vtkTextWidget (0x83797d0): The interactor must be set prior to enabling the widget

Maybe these two problems are related?

Utkarsh and I tested out a number of possibilities and it only happens in parallel and batch.

# ----------------------- Annotations -----------------------
    
    textColor = [1.0, 1.0, 1.0]

    HeadingText = Text(Text='heading')
    HeadingRep = Show()
    HeadingRep.Interactivity = 0
    HeadingRep.WindowLocation = 'UpperCenter'
    HeadingRep.Color = textColor
    HeadingRep.FontSize = 18
    HeadingRep.Orientation = 0
    HeadingRep.TextScaleMode = 'Viewport'

    UserText = Text(Text='boonth')
    UserRep = Show()
    UserRep.Interactivity = 0
    UserRep.WindowLocation = 'UpperRightCorner'
    UserRep.Color = textColor
    UserRep.FontSize = 10
    UserRep.Orientation = 90
    UserRep.TextScaleMode = 'Viewport'

    TimeText = Text(Text='Time: %f s' % 1.9)
    TimeRep = Show()
    TimeRep.Interactivity = 0
    TimeRep.WindowLocation = 'LowerLeftCorner'
    TimeRep.Color = textColor
    TimeRep.FontSize = 12
    TimeRep.Orientation = 0
    TimeRep.TextScaleMode = 'Viewport'

    datestring = current_date.strftime('%m/%d/%Y %I:%M %p')
    DateText = Text(Text=datestring)
    DateRep = Show()
    DateRep.Interactivity = 0
    DateRep.WindowLocation = 'LowerRightCorner'
    DateRep.Color = textColor
    DateRep.FontSize = 12
    DateRep.Orientation = 0
    DateRep.TextScaleMode = 'Viewport'
No tags attached.
related to 0013668closed Utkarsh Ayachit White boxes still appear around text and legends when running with pvbatch 
png pv_prs_ref_00000000.png (17,348) 2013-03-05 12:05
https://www.vtk.org/Bug/file/9405/pv_prs_ref_00000000.png
png
Issue History
2013-03-05 12:05Patrick O'LearyNew Issue
2013-03-05 12:05Patrick O'LearyFile Added: pv_prs_ref_00000000.png
2013-03-06 10:27Utkarsh AyachitAssigned To => Utkarsh Ayachit
2013-03-06 10:27Utkarsh AyachitStatusbacklog => todo
2013-03-06 10:27Utkarsh AyachitStatustodo => active development
2013-03-06 13:33Utkarsh AyachitTopic Name => 13927_fix_text_bounding_boxes
2013-03-06 13:33Utkarsh AyachitNote Added: 0030415
2013-03-06 13:33Utkarsh AyachitStatusactive development => gatekeeper review
2013-03-06 13:33Utkarsh AyachitFixed in Version => git-next
2013-03-06 13:33Utkarsh AyachitResolutionopen => fixed
2013-03-14 10:19Utkarsh AyachitRelationship addedrelated to 0013668
2013-03-14 10:38Utkarsh AyachitFixed in Versiongit-next => git-master
2013-03-14 10:39Utkarsh AyachitStatusgatekeeper review => customer review
2013-03-14 10:39Utkarsh AyachitNote Added: 0030431
2013-05-18 20:00Utkarsh AyachitFixed in Versiongit-master => 4.0
2013-12-24 19:40Alan ScottNote Added: 0032065
2013-12-24 19:40Alan ScottStatuscustomer review => closed
2015-01-11 08:27Utkarsh AyachitSource_changeset_attached => ParaView master cd13609e
2015-01-11 08:27Utkarsh AyachitSource_changeset_attached => ParaView master abf2095a
2015-01-11 08:27Utkarsh AyachitSource_changeset_attached => ParaView master b49329a3

Notes
(0030415)
Utkarsh Ayachit   
2013-03-06 13:33   
commit abf2095aae08d29a860b1c63427f25e341b5a243
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Wed Mar 6 13:30:24 2013 -0500

    BUG 0013927. Fixed borders on text widgets.
    
    Since the shared-render window had so size set initially, the
    vtkTextRepresentation ended up incorrectly computing the placement for the text
    and hence the state for the border visibility in batch mode. This fixes that
    issue by ensuring that we setup a default size for the shared window as well.
    The size gets updated when rendering happens to the actual size, so we don't
    need to be extra smart about the deafult window size.
    
    Change-Id: I1d9eb5dbc689aec838539fe9b0fa152db6b31801

commit b49329a3c7e3a57120d45ba98c0260e85af0e9d1
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Wed Mar 6 10:58:32 2013 -0500

    BUG 0013927. Enable 3D widgets only on processes with interactor.
    
    Not all processes have an interactor setup. We need to enable 3D widgets only on
    processes with interactor. This overcomes the warnings printed out in batch mode
    on satellites (as reported in BUG 0013927).
    
    Change-Id: Ic000175331efadb68332b078a8c29e0160d92026
(0030431)
Utkarsh Ayachit   
2013-03-14 10:39   
SUMMARY
---------------------------------------------
Topics merged into master:
        0013926-webgl-support
        0013940-enable-paraview-web-build
        13927_fix_text_bounding_boxes
        13928-print-monitors
        13930_XMLP_writers
        13938_blot_color_table
        13939-vr-cache-state
(VTK) composite-data-display-attributes
        fix-ordered-composite-distributor-return
        fix_unnecessary_rebuilds
(VTK) update_vtk_master
(0032065)
Alan Scott   
2013-12-24 19:40   
Old customer review bug. Closing untested.