View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014286ParaView(No Category)public2013-09-18 11:192015-01-11 08:21
ReporterJeff Mauldin 
Assigned ToUtkarsh Ayachit 
PriorityurgentSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version4.0 
Target VersionFixed in Version4.1 
Summary0014286: orientation axes do not appear in catalyst images
DescriptionI believe this issue was created when issue 14280 was fixed.

Orientation axes cannot be turned on for images produced with catalyst/insitu. To replicate the problem, simply create an image-producing catalyst script from paraview with the orientation axes on, then use the script in catalyst. No orientation axes will appear.

14280 was a problem where if you generated multiple insitu images from different camera angles with different color-by-variables, you would see the orientation axes from each view in both views and the color legend (if visible) from both views in each view. 14280 fixed that problem, but I think orientation axes was not turned back on correctly for whichever view is being drawn.
TagsNo tags attached.
ProjectSandia-Catalyst
Topic Name14286_fix_orientation_widget
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0031848)
Alan Scott (manager)
2013-11-12 20:43

Changing to "todo". This is impacting both normal ParaView users as well as Catalyst developers/ early users.

I am thinking this may have been around for a while, since I have a user that is trying to use orientation axis on 4.0.1, and failing. Here is the script that is giving my user issues. Notice line that has the comment This is not working!


import os
from paraview.simple import *

Show(ExodusIIReader(FileName="../exodus-file.e"))

GetRenderView().ViewSize = [1000, 650]
GetRenderView().Background = [1.0, 1.0, 1.0] GetRenderView().CenterAxesVisibility = 0 GetRenderView().OrientationAxesVisibility = 1 # this is not working!
GetRenderView().OrientationAxesLabelColor = [1, 1, 1]
Render()
WriteImage('initial.png')


(0031938)
Utkarsh Ayachit (administrator)
2013-12-16 10:34

Developer Note
--------------

We need to refactor vtkPVAxesWidget to work even when interactor is not
available. I believe we can refactor this class to just be a simple actor that render on top of the other actors in 2D view, rather doing the wacky extra renderer approach that it takes which add extra complication in other places.
(0031951)
Utkarsh Ayachit (administrator)
2013-12-16 14:51

commit 92ff736104d38390a3f8fdb8e903648d2c773904
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Mon Dec 16 14:47:36 2013 -0500

    BUG 0014286: Fixed orientation widget now showing up in Catalyst.
    
    Orientation widget was hidden in pvbatch or catalyst since the renderer for the
    orientation widget was never been unhidden by vtkPVSynchronizedRenderWindows.
    Fixed that by adding logic to vtkPVRenderView to register the orientation axes
    rendendere with vtkPVSynchronizedRenderWindows. Added logic to
    vtkPVSynchronizedRenderWindows to handle this renderer correctly. In future we
    may fix vtkPVAxesWidget to not use the renderer all. Until then, we live with
    this approach.
    
    Change-Id: Ide8196bada06a95564f7ecddb04e9971f93bc650
(0032036)
Utkarsh Ayachit (administrator)
2013-12-20 08:26

Topics merged into master:
        14286_fix_orientation_widget
(VTK) 14426-huge-png
        14464_fix_specular_highlights
        14466_fix_calculator_panel
        disable-unified-bindings-by-default
        fix-collaboration
        fix_parallel_amrconnectivity
        gio-cleanup-and-warning-fixes
        pvweb-enhancements-events-protocols-docs
(0032055)
Alan Scott (manager)
2013-12-24 17:16

Fixed! Tested pvbatch, Linux, master. I used the following script:

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

can_ex2 = ExodusIIReader()

# can_ex2 = FindSource( "can.ex2" )
can_ex2.FileName = ['/ascldap/users/wascott/demos/training-2011/can.ex2']

AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 0.004299988504499197
AnimationScene1.PlayMode = 'Snap To TimeSteps'


can_ex2.FileRange = [0, 0]
can_ex2.XMLFileName = 'Unable to convert result from Python'
can_ex2.FilePrefix = '/ascldap/users/wascott/demos/training-2011/can.ex2'
can_ex2.ModeShape = 21
can_ex2.FilePattern = '%s'

#can_ex2 = FindSource( "can.ex2" )
can_ex2.ElementVariables = ['EQPS']
can_ex2.GlobalVariables = ['KE', 'XMOM', 'YMOM', 'ZMOM', 'NSTEPS', 'TMSTEP']
can_ex2.SideSetArrayStatus = []
can_ex2.ElementBlocks = ['Unnamed block ID: 1 Type: HEX', 'Unnamed block ID: 2 Type: HEX']
can_ex2.NodeSetArrayStatus = []
can_ex2.PointVariables = ['DISPL', 'VEL', 'ACCL']

SetActiveSource(can_ex2)
RenderView1 = GetRenderView()
RenderView1.CenterOfRotation = [0.21706008911132812, 4.0, -5.110947132110596]

GetRenderView().ViewSize = [1000, 650]
#GetRenderView().Background = [1.0, 1.0, 1.0]
GetRenderView().CenterAxesVisibility = 0
GetRenderView().OrientationAxesVisibility = 0 # this is not working!
GetRenderView().OrientationAxesLabelColor = [1, 1, 1]

DataRepresentation1 = Show()
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation1.SelectionPointFieldDataArrayName = 'ACCL'
DataRepresentation1.SelectionCellFieldDataArrayName = 'EQPS'
DataRepresentation1.ScalarOpacityUnitDistance = 1.3901072164734267
DataRepresentation1.ExtractedBlockIndex = 2
DataRepresentation1.ScaleFactor = 1.9778103828430176

#RenderView1.CameraPosition = [0.21706008911132812, 4.0, 46.62962661474573]
RenderView1.CameraPosition = [0.0, -50.0, 0.0]
RenderView1.CameraFocalPoint = [0.21706008911132812, 4.0, -5.110947132110596]
RenderView1.CameraClippingRange = [31.54395470009974, 77.28875739816797]
RenderView1.CameraParallelScale = 13.391445890217907

WriteImage('/ascldap/users/wascott/junkDir/max.png')


Render()

 Issue History
Date Modified Username Field Change
2013-09-18 11:19 Jeff Mauldin New Issue
2013-11-12 20:43 Alan Scott Note Added: 0031848
2013-11-12 20:43 Alan Scott Status backlog => todo
2013-11-13 16:31 Utkarsh Ayachit Topic Name => fix_particle_streaming
2013-11-13 16:31 Utkarsh Ayachit Note Added: 0031849
2013-11-13 16:31 Utkarsh Ayachit Status todo => gatekeeper review
2013-11-13 16:31 Utkarsh Ayachit Fixed in Version => git-next
2013-11-13 16:31 Utkarsh Ayachit Resolution open => fixed
2013-11-13 16:31 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2013-11-13 16:36 Utkarsh Ayachit Note Added: 0031850
2013-11-13 16:37 Utkarsh Ayachit Note Edited: 0031849
2013-11-13 16:37 Utkarsh Ayachit Note Deleted: 0031850
2013-11-14 11:58 Utkarsh Ayachit Note Edited: 0031849
2013-11-14 11:58 Utkarsh Ayachit Note Deleted: 0031849
2013-11-14 11:59 Utkarsh Ayachit Status gatekeeper review => backlog
2013-11-14 11:59 Utkarsh Ayachit Resolution fixed => reopened
2013-12-16 10:34 Utkarsh Ayachit Note Added: 0031938
2013-12-16 14:51 Utkarsh Ayachit Topic Name fix_particle_streaming => 14286_fix_orientation_widget
2013-12-16 14:51 Utkarsh Ayachit Note Added: 0031951
2013-12-16 14:51 Utkarsh Ayachit Status backlog => gatekeeper review
2013-12-16 14:51 Utkarsh Ayachit Resolution reopened => fixed
2013-12-20 08:26 Utkarsh Ayachit Fixed in Version git-next => git-master
2013-12-20 08:26 Utkarsh Ayachit Status gatekeeper review => customer review
2013-12-20 08:26 Utkarsh Ayachit Note Added: 0032036
2013-12-24 17:16 Alan Scott Note Added: 0032055
2013-12-24 17:16 Alan Scott Status customer review => closed
2014-01-11 08:39 Utkarsh Ayachit Fixed in Version git-master => 4.1
2015-01-11 08:21 Utkarsh Ayachit Source_changeset_attached => ParaView master 2c6c7c8e
2015-01-11 08:21 Utkarsh Ayachit Source_changeset_attached => ParaView master 92ff7361


Copyright © 2000 - 2018 MantisBT Team