# state file generated using paraview version 5.6.0

# ----------------------------------------------------------------
# setup views used in the visualization
# ----------------------------------------------------------------

# trace generated using paraview version 5.6.0
#
# To ensure correct image size when batch processing, please search 
# for and uncomment the line `# renderView*.ViewSize = [*,*]`

#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

# get the material library
materialLibrary1 = GetMaterialLibrary()

# Create a new 'Render View'
renderView1 = CreateView('RenderView')
renderView1.ViewSize = [1280, 1024]
renderView1.AnnotationColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid = 'GridAxes3DActor'
renderView1.OrientationAxesVisibility = 0
renderView1.OrientationAxesLabelColor = [0.0, 0.0, 0.0]
renderView1.OrientationAxesOutlineColor = [0.0, 0.0, 0.0]
renderView1.StereoType = 0
renderView1.CameraPosition = [1.4673653692289768, -3.3855613248076035, 1.1927475989218512]
renderView1.CameraFocalPoint = [-0.7867570353690445, 1.2937653163932832, -0.5150466919032782]
renderView1.CameraViewUp = [0.0461621797485635, 0.36202885661028256, 0.9310231791648974]
renderView1.CameraParallelScale = 1.4150971698348158
renderView1.Background = [1.0, 1.0, 1.0]
renderView1.OSPRayMaterialLibrary = materialLibrary1

# init the 'GridAxes3DActor' selected for 'AxesGrid'
renderView1.AxesGrid.XTitleColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.XTitleFontFile = ''
renderView1.AxesGrid.YTitleColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.YTitleFontFile = ''
renderView1.AxesGrid.ZTitleColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.ZTitleFontFile = ''
renderView1.AxesGrid.GridColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.XLabelColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.XLabelFontFile = ''
renderView1.AxesGrid.YLabelColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.YLabelFontFile = ''
renderView1.AxesGrid.ZLabelColor = [0.0, 0.0, 0.0]
renderView1.AxesGrid.ZLabelFontFile = ''

# ----------------------------------------------------------------
# restore active view
SetActiveView(renderView1)
# ----------------------------------------------------------------

# ----------------------------------------------------------------
# setup the data processing pipelines
# ----------------------------------------------------------------

# create a new 'Arrow'
arrow1 = Arrow()
arrow1.TipResolution = 64
arrow1.ShaftResolution = 64

# create a new 'Plane'
plane1 = Plane()
plane1.Origin = [-1.0, -1.0, 0.0]
plane1.Point1 = [1.0, -1.0, 0.0]
plane1.Point2 = [-1.0, 1.0, 0.0]

# create a new 'Sphere'
sphere1 = Sphere()
sphere1.Radius = 0.05
sphere1.ThetaResolution = 64
sphere1.PhiResolution = 64

# create a new 'Transform'
transform1 = Transform(Input=arrow1)
transform1.Transform = 'Transform'

# init the 'Transform' selected for 'Transform'
transform1.Transform.Rotate = [0.0, -90.0, 0.0]
transform1.Transform.Scale = [0.5, 0.5, 0.5]

# ----------------------------------------------------------------
# setup the visualization in view 'renderView1'
# ----------------------------------------------------------------

# show data from plane1
plane1Display = Show(plane1, renderView1)

# trace defaults for the display properties.
plane1Display.Representation = 'Surface'
plane1Display.AmbientColor = [0.0, 0.0, 0.0]
plane1Display.ColorArrayName = [None, '']
plane1Display.Opacity = 0.5
plane1Display.OSPRayScaleArray = 'Normals'
plane1Display.OSPRayScaleFunction = 'PiecewiseFunction'
plane1Display.SelectOrientationVectors = 'None'
plane1Display.ScaleFactor = 0.1
plane1Display.SelectScaleArray = 'None'
plane1Display.GlyphType = 'Arrow'
plane1Display.GlyphTableIndexArray = 'None'
plane1Display.GaussianRadius = 0.005
plane1Display.SetScaleArray = ['POINTS', 'Normals']
plane1Display.ScaleTransferFunction = 'PiecewiseFunction'
plane1Display.OpacityArray = ['POINTS', 'Normals']
plane1Display.OpacityTransferFunction = 'PiecewiseFunction'
plane1Display.DataAxesGrid = 'GridAxesRepresentation'
plane1Display.SelectionCellLabelFontFile = ''
plane1Display.SelectionPointLabelFontFile = ''
plane1Display.PolarAxes = 'PolarAxesRepresentation'

# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
plane1Display.OSPRayScaleFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
plane1Display.ScaleTransferFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
plane1Display.OpacityTransferFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'GridAxesRepresentation' selected for 'DataAxesGrid'
plane1Display.DataAxesGrid.XTitleColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.XTitleFontFile = ''
plane1Display.DataAxesGrid.YTitleColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.YTitleFontFile = ''
plane1Display.DataAxesGrid.ZTitleColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.ZTitleFontFile = ''
plane1Display.DataAxesGrid.GridColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.XLabelColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.XLabelFontFile = ''
plane1Display.DataAxesGrid.YLabelColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.YLabelFontFile = ''
plane1Display.DataAxesGrid.ZLabelColor = [0.0, 0.0, 0.0]
plane1Display.DataAxesGrid.ZLabelFontFile = ''

# init the 'PolarAxesRepresentation' selected for 'PolarAxes'
plane1Display.PolarAxes.PolarAxisTitleColor = [0.0, 0.0, 0.0]
plane1Display.PolarAxes.PolarAxisTitleFontFile = ''
plane1Display.PolarAxes.PolarAxisLabelColor = [0.0, 0.0, 0.0]
plane1Display.PolarAxes.PolarAxisLabelFontFile = ''
plane1Display.PolarAxes.LastRadialAxisTextColor = [0.0, 0.0, 0.0]
plane1Display.PolarAxes.LastRadialAxisTextFontFile = ''
plane1Display.PolarAxes.SecondaryRadialAxesTextColor = [0.0, 0.0, 0.0]
plane1Display.PolarAxes.SecondaryRadialAxesTextFontFile = ''

# show data from sphere1
sphere1Display = Show(sphere1, renderView1)

# trace defaults for the display properties.
sphere1Display.Representation = 'Surface'
sphere1Display.AmbientColor = [0.0, 0.0, 0.0]
sphere1Display.ColorArrayName = [None, '']
sphere1Display.DiffuseColor = [1.0, 0.0, 0.0]
sphere1Display.OSPRayScaleArray = 'Normals'
sphere1Display.OSPRayScaleFunction = 'PiecewiseFunction'
sphere1Display.SelectOrientationVectors = 'None'
sphere1Display.ScaleFactor = 0.010000000149011612
sphere1Display.SelectScaleArray = 'None'
sphere1Display.GlyphType = 'Arrow'
sphere1Display.GlyphTableIndexArray = 'None'
sphere1Display.GaussianRadius = 0.0005000000074505806
sphere1Display.SetScaleArray = ['POINTS', 'Normals']
sphere1Display.ScaleTransferFunction = 'PiecewiseFunction'
sphere1Display.OpacityArray = ['POINTS', 'Normals']
sphere1Display.OpacityTransferFunction = 'PiecewiseFunction'
sphere1Display.DataAxesGrid = 'GridAxesRepresentation'
sphere1Display.SelectionCellLabelFontFile = ''
sphere1Display.SelectionPointLabelFontFile = ''
sphere1Display.PolarAxes = 'PolarAxesRepresentation'

# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
sphere1Display.OSPRayScaleFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
sphere1Display.ScaleTransferFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
sphere1Display.OpacityTransferFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'GridAxesRepresentation' selected for 'DataAxesGrid'
sphere1Display.DataAxesGrid.XTitleColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.XTitleFontFile = ''
sphere1Display.DataAxesGrid.YTitleColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.YTitleFontFile = ''
sphere1Display.DataAxesGrid.ZTitleColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.ZTitleFontFile = ''
sphere1Display.DataAxesGrid.GridColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.XLabelColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.XLabelFontFile = ''
sphere1Display.DataAxesGrid.YLabelColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.YLabelFontFile = ''
sphere1Display.DataAxesGrid.ZLabelColor = [0.0, 0.0, 0.0]
sphere1Display.DataAxesGrid.ZLabelFontFile = ''

# init the 'PolarAxesRepresentation' selected for 'PolarAxes'
sphere1Display.PolarAxes.PolarAxisTitleColor = [0.0, 0.0, 0.0]
sphere1Display.PolarAxes.PolarAxisTitleFontFile = ''
sphere1Display.PolarAxes.PolarAxisLabelColor = [0.0, 0.0, 0.0]
sphere1Display.PolarAxes.PolarAxisLabelFontFile = ''
sphere1Display.PolarAxes.LastRadialAxisTextColor = [0.0, 0.0, 0.0]
sphere1Display.PolarAxes.LastRadialAxisTextFontFile = ''
sphere1Display.PolarAxes.SecondaryRadialAxesTextColor = [0.0, 0.0, 0.0]
sphere1Display.PolarAxes.SecondaryRadialAxesTextFontFile = ''

# show data from transform1
transform1Display = Show(transform1, renderView1)

# trace defaults for the display properties.
transform1Display.Representation = 'Surface'
transform1Display.AmbientColor = [0.0, 0.0, 0.0]
transform1Display.ColorArrayName = [None, '']
transform1Display.DiffuseColor = [1.0, 0.0, 0.0]
transform1Display.OSPRayScaleFunction = 'PiecewiseFunction'
transform1Display.SelectOrientationVectors = 'None'
transform1Display.ScaleFactor = 0.05
transform1Display.SelectScaleArray = 'None'
transform1Display.GlyphType = 'Arrow'
transform1Display.GlyphTableIndexArray = 'None'
transform1Display.GaussianRadius = 0.0025
transform1Display.SetScaleArray = [None, '']
transform1Display.ScaleTransferFunction = 'PiecewiseFunction'
transform1Display.OpacityArray = [None, '']
transform1Display.OpacityTransferFunction = 'PiecewiseFunction'
transform1Display.DataAxesGrid = 'GridAxesRepresentation'
transform1Display.SelectionCellLabelFontFile = ''
transform1Display.SelectionPointLabelFontFile = ''
transform1Display.PolarAxes = 'PolarAxesRepresentation'

# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
transform1Display.OSPRayScaleFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
transform1Display.ScaleTransferFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
transform1Display.OpacityTransferFunction.Points = [293.1499938964844, 0.0, 0.5, 0.0, 913.1500244140625, 1.0, 0.5, 0.0]

# init the 'GridAxesRepresentation' selected for 'DataAxesGrid'
transform1Display.DataAxesGrid.XTitleColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.XTitleFontFile = ''
transform1Display.DataAxesGrid.YTitleColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.YTitleFontFile = ''
transform1Display.DataAxesGrid.ZTitleColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.ZTitleFontFile = ''
transform1Display.DataAxesGrid.GridColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.XLabelColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.XLabelFontFile = ''
transform1Display.DataAxesGrid.YLabelColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.YLabelFontFile = ''
transform1Display.DataAxesGrid.ZLabelColor = [0.0, 0.0, 0.0]
transform1Display.DataAxesGrid.ZLabelFontFile = ''

# init the 'PolarAxesRepresentation' selected for 'PolarAxes'
transform1Display.PolarAxes.PolarAxisTitleColor = [0.0, 0.0, 0.0]
transform1Display.PolarAxes.PolarAxisTitleFontFile = ''
transform1Display.PolarAxes.PolarAxisLabelColor = [0.0, 0.0, 0.0]
transform1Display.PolarAxes.PolarAxisLabelFontFile = ''
transform1Display.PolarAxes.LastRadialAxisTextColor = [0.0, 0.0, 0.0]
transform1Display.PolarAxes.LastRadialAxisTextFontFile = ''
transform1Display.PolarAxes.SecondaryRadialAxesTextColor = [0.0, 0.0, 0.0]
transform1Display.PolarAxes.SecondaryRadialAxesTextFontFile = ''

# ----------------------------------------------------------------
# finally, restore active source
SetActiveSource(transform1)
# ----------------------------------------------------------------