From 6800199f2bcb0000c144462eb1e3e47b2fd1d1b5 Mon Sep 17 00:00:00 2001 From: Jonas Lukasczyk Date: Sat, 21 Nov 2020 13:15:02 +0100 Subject: [PATCH] darkroom++ --- states/cinemaDarkroom.py | 338 ++++++++++++++++++++++++--------------- 1 file changed, 208 insertions(+), 130 deletions(-) diff --git a/states/cinemaDarkroom.py b/states/cinemaDarkroom.py index 161493ad..937e0c5a 100644 --- a/states/cinemaDarkroom.py +++ b/states/cinemaDarkroom.py @@ -1,3 +1,14 @@ +# state file generated using paraview version 5.8.1 + +# ---------------------------------------------------------------- +# setup views used in the visualization +# ---------------------------------------------------------------- + +# trace generated using paraview version 5.8.1 +# +# 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' @@ -8,210 +19,277 @@ # Create a new 'Render View' renderView1 = CreateView('RenderView') -renderView1.ViewSize = [735, 551] +renderView1.ViewSize = [783, 460] renderView1.AxesGrid = 'GridAxes3DActor' -renderView1.StereoType = 'Crystal Eyes' -renderView1.CameraPosition = [1.0398357716009758, -0.01795783025812699, -0.46122550265265816] -renderView1.CameraFocalPoint = [0.16902173604025894, -0.004361312755364503, 0.018754563656392977] -renderView1.CameraViewUp = [0.0210861737723549, 0.9997282828918428, 0.009936481357587061] +renderView1.CenterOfRotation = [0.05099499225616455, 0.007758498191833496, -0.00749649852514267] +renderView1.CameraPosition = [0.7318841029738407, -0.022788215488852105, -0.6465637446021283] +renderView1.CameraFocalPoint = [0.0974171418365998, -0.010320908418666189, 0.035985660379378295] +renderView1.CameraViewUp = [-0.01977908845568779, 0.9991329306701646, -0.036635699942954535] renderView1.CameraFocalDisk = 1.0 -renderView1.BackEnd = 'OSPRay raycaster' -renderView1.OSPRayMaterialLibrary = materialLibrary1 +renderView1.CameraParallelScale = 0.6342075582553577 # Create a new 'Render View' renderView2 = CreateView('RenderView') -renderView2.ViewSize = [736, 551] +renderView2.ViewSize = [783, 459] renderView2.InteractionMode = '2D' renderView2.AxesGrid = 'GridAxes3DActor' renderView2.OrientationAxesVisibility = 0 -renderView2.CenterOfRotation = [1023.5, 511.5, 0.0] -renderView2.StereoType = 'Crystal Eyes' -renderView2.CameraPosition = [956.8623929885804, 526.5127215086243, 4420.833889881707] -renderView2.CameraFocalPoint = [956.8623929885804, 526.5127215086243, 0.0] +renderView2.CenterOfRotation = [1011.3609848022461, 502.6661043167114, -0.007495880126953125] +renderView2.CameraPosition = [1011.203164778182, 456.03516378044503, 4478.569583624059] +renderView2.CameraFocalPoint = [1011.203164778182, 456.03516378044503, -0.007495880126953125] renderView2.CameraFocalDisk = 1.0 -renderView2.CameraParallelScale = 645.8688162225527 -renderView2.BackEnd = 'OSPRay raycaster' -renderView2.OSPRayMaterialLibrary = materialLibrary1 - -SetActiveView(None) +renderView2.CameraParallelScale = 540.7478513266177 # ---------------------------------------------------------------- # setup view layouts # ---------------------------------------------------------------- - -# create new layout object 'Layout #1' layout1 = CreateLayout(name='Layout #1') -layout1.SplitHorizontal(0, 0.500000) -layout1.AssignView(1, renderView2) -layout1.AssignView(2, renderView1) +layout1.SplitVertical(0, 0.500000) +layout1.AssignView(1, renderView1) +layout1.AssignView(2, renderView2) # ---------------------------------------------------------------- # setup the data processing pipelines # ---------------------------------------------------------------- +# create a new 'TTK Darkroom Camera' +ttkDarkroomCamera1 = TTKDarkroomCamera() +ttkDarkroomCamera1.Position = renderView1.CameraPosition +ttkDarkroomCamera1.Up = renderView1.CameraViewUp +ttkDarkroomCamera1.FocalPoint = renderView1.CameraFocalPoint + # create a new 'TTK CinemaReader' -cinemaReader = TTKCinemaReader(DatabasePath='GroundWater.cdb') +ttkCinemaReader1 = TTKCinemaReader(DatabasePath='GroundWater.cdb') # create a new 'TTK CinemaQuery' -cinemaQuery = TTKCinemaQuery(InputTable=cinemaReader) -cinemaQuery.SQLStatement = """SELECT * FROM InputTable0 +ttkCinemaQuery1 = TTKCinemaQuery(InputTable=ttkCinemaReader1) +ttkCinemaQuery1.SQLStatement = """SELECT * FROM InputTable0 ORDER BY Description """ + # create a new 'TTK CinemaProductReader' -cinemaProductReader = TTKCinemaProductReader(Input=cinemaQuery) +ttkCinemaProductReader1 = TTKCinemaProductReader(Input=ttkCinemaQuery1) # create a new 'Elevation' -elevation = Elevation(Input=cinemaProductReader) -elevation.LowPoint = [-0.3657500147819519, 0.007758498191833496, -0.00749649852514267] -elevation.HighPoint = [0.467739999294281, 0.007758498191833496, -0.00749649852514267] +elevation1 = Elevation(Input=ttkCinemaProductReader1) +elevation1.LowPoint = [-0.3657500147819519, 0.007758498191833496, -0.00749649852514267] +elevation1.HighPoint = [0.467739999294281, 0.007758498191833496, -0.00749649852514267] -# create a new 'TTK Darkroom Camera' -darkroomCamera1 = TTKDarkroomCamera() -darkroomCamera1.Position = [1.0340093061551408, -0.01662681994245655, -0.47183399527637365] -darkroomCamera1.Up = [0.0210861737723549, 0.9997282828918428, 0.009936481357587061] -darkroomCamera1.FocalPoint = [0.1631952705944235, -0.0030303024396940645, 0.008146071032677569] +# create a new 'TTK Extract' +ttkExtract4 = TTKExtract(Input=elevation1) +ttkExtract4.Expression = '0' +ttkExtract4.ImageBounds = [-0.3657500147819519, 0.467739999294281, -0.17762300372123718, 0.19314000010490417, -0.1894879937171936, 0.17449499666690826] +ttkExtract4.InputArray = ['POINTS', 'Elevation'] # create a new 'TTK CinemaImaging' -cinemaImaging = TTKCinemaImaging(Dataset=elevation, - SamplingGrid=darkroomCamera1) -cinemaImaging.Resolution = [2048, 1024] -cinemaImaging.ProjectionMode = 'Perspective' -cinemaImaging.Angle = 50.0 +ttkCinemaImaging1 = TTKCinemaImaging(Dataset=elevation1, + SamplingGrid=ttkDarkroomCamera1) +ttkCinemaImaging1.Resolution = [2048, 1024] +ttkCinemaImaging1.ProjectionMode = 'Perspective' +ttkCinemaImaging1.Angle = 55.0 # create a new 'TTK Extract' -extract1 = TTKExtract(Input=cinemaImaging) -extract1.Expression = '1' -extract1.OutputType = 'vtkMultiBlockDataSet' -extract1.ImageBounds = [0.0, 2047.0, 0.0, 1023.0, 0.0, 0.0] -extract1.InputArray = ['POINTS', 'Depth'] +ttkExtract2 = TTKExtract(Input=ttkCinemaImaging1) +ttkExtract2.Expression = '0' +ttkExtract2.OutputType = 'vtkMultiBlockDataSet' +ttkExtract2.ImageBounds = [0.0, 255.0, 0.0, 255.0, 0.0, 0.0] +ttkExtract2.InputArray = ['POINTS', ''] # create a new 'TTK Darkroom ColorMapping' -darkroomColorMapping1 = TTKDarkroomColorMapping(Input=extract1) -darkroomColorMapping1.SingleColor = [0.0, 0.6666666666666666, 1.0] -darkroomColorMapping1.Scalars = ['POINTS', 'Elevation'] -darkroomColorMapping1.ColorMap = 'Single' +ttkDarkroomColorMapping2 = TTKDarkroomColorMapping(Input=ttkExtract2) +ttkDarkroomColorMapping2.Scalars = ['POINTS', 'Elevation'] +ttkDarkroomColorMapping2.ColorMap = 'OrRd' # create a new 'TTK Extract' -extract2 = TTKExtract(Input=cinemaImaging) -extract2.Expression = '0' -extract2.OutputType = 'vtkMultiBlockDataSet' -extract2.ImageBounds = [0.0, 255.0, 0.0, 255.0, 0.0, 0.0] -extract2.InputArray = ['POINTS', 'Depth'] +ttkExtract1 = TTKExtract(Input=ttkCinemaImaging1) +ttkExtract1.Expression = '1' +ttkExtract1.OutputType = 'vtkMultiBlockDataSet' +ttkExtract1.ImageBounds = [0.0, 2047.0, 0.0, 1023.0, 0.0, 0.0] +ttkExtract1.InputArray = ['POINTS', ''] # create a new 'TTK Darkroom ColorMapping' -darkroomColorMapping2 = TTKDarkroomColorMapping(Input=extract2) -darkroomColorMapping2.Scalars = ['POINTS', 'Elevation'] -darkroomColorMapping2.ColorMap = 'OrRd' +ttkDarkroomColorMapping1 = TTKDarkroomColorMapping(Input=ttkExtract1) +ttkDarkroomColorMapping1.Scalars = ['POINTS', 'Elevation'] +ttkDarkroomColorMapping1.SingleColor = [0.0, 0.6666666666666666, 1.0] # create a new 'TTK Darkroom Compositing' -darkroomCompositing1 = TTKDarkroomCompositing(Input=[darkroomColorMapping1, darkroomColorMapping2]) -darkroomCompositing1.Depth = ['POINTS', 'Depth'] +ttkDarkroomCompositing1 = TTKDarkroomCompositing(Input=[ttkDarkroomColorMapping1, ttkDarkroomColorMapping2]) +ttkDarkroomCompositing1.Depth = ['POINTS', 'Depth'] # create a new 'TTK Darkroom SSAO' -darkroomSSAO1 = TTKDarkroomSSAO(Input=darkroomCompositing1) -darkroomSSAO1.Depth = ['POINTS', 'Depth'] +ttkDarkroomSSAO1 = TTKDarkroomSSAO(Input=ttkDarkroomCompositing1) +ttkDarkroomSSAO1.Depth = ['POINTS', 'Depth'] + +# create a new 'TTK Extract' +ttkExtract5 = TTKExtract(Input=elevation1) +ttkExtract5.Expression = '1' +ttkExtract5.ImageBounds = [-0.3657500147819519, 0.467739999294281, -0.17762300372123718, 0.19314000010490417, -0.1894879937171936, 0.17449499666690826] +ttkExtract5.InputArray = ['POINTS', 'Elevation'] # create a new 'TTK Darkroom SSSAO' -darkroomSSSAO1 = TTKDarkroomSSSAO(Input=darkroomSSAO1) -darkroomSSSAO1.Depth = ['POINTS', 'Depth'] -darkroomSSSAO1.Samples = 128 -darkroomSSSAO1.Radius = 0.1 +ttkDarkroomSSSAO1 = TTKDarkroomSSSAO(Input=ttkDarkroomSSAO1) +ttkDarkroomSSSAO1.Depth = ['POINTS', 'Depth'] +ttkDarkroomSSSAO1.Samples = 128 +ttkDarkroomSSSAO1.Radius = 0.1 # create a new 'TTK Darkroom IBS' -darkroomIBS1 = TTKDarkroomIBS(Input=darkroomSSSAO1) -darkroomIBS1.Color = ['POINTS', 'Diffuse'] -darkroomIBS1.Depth = ['POINTS', 'Depth'] -darkroomIBS1.AO = ['POINTS', 'SSSAO'] -darkroomIBS1.Strength = 500.0 -darkroomIBS1.Luminance = 0.1 -darkroomIBS1.Ambient = 0.5 +ttkDarkroomIBS1 = TTKDarkroomIBS(Input=ttkDarkroomSSSAO1) +ttkDarkroomIBS1.Color = ['POINTS', 'Diffuse'] +ttkDarkroomIBS1.Depth = ['POINTS', 'Depth'] +ttkDarkroomIBS1.AO = ['POINTS', 'SSSAO'] +ttkDarkroomIBS1.Strength = 600.0 +ttkDarkroomIBS1.Luminance = 0.1 +ttkDarkroomIBS1.Ambient = 0.5 # create a new 'TTK Darkroom SSDoF' -darkroomSSDoF1 = TTKDarkroomSSDoF(Input=darkroomIBS1) -darkroomSSDoF1.Color = ['POINTS', 'IBS'] -darkroomSSDoF1.Depth = ['POINTS', 'Depth'] -darkroomSSDoF1.Aperture = 0.2 -darkroomSSDoF1.FocalDepth = 0.36 -darkroomSSDoF1.MaxBlur = 0.08 +ttkDarkroomSSDoF1 = TTKDarkroomSSDoF(Input=ttkDarkroomIBS1) +ttkDarkroomSSDoF1.Color = ['POINTS', 'IBS'] +ttkDarkroomSSDoF1.Depth = ['POINTS', 'Depth'] +ttkDarkroomSSDoF1.Radius = 0.05 +ttkDarkroomSSDoF1.Aperture = 0.25 +ttkDarkroomSSDoF1.FocalDepth = 0.5 +ttkDarkroomSSDoF1.MaxBlur = 0.08 # create a new 'TTK Darkroom FXAA' -darkroomFXAA1 = TTKDarkroomFXAA(Input=darkroomSSDoF1) -darkroomFXAA1.Color = ['POINTS', 'SSDoF'] +ttkDarkroomFXAA1 = TTKDarkroomFXAA(Input=ttkDarkroomSSDoF1) +ttkDarkroomFXAA1.Color = ['POINTS', 'SSDoF'] # create a new 'TTK Extract' -extract3 = TTKExtract(Input=darkroomFXAA1) -extract3.Expression = '0' -extract3.OutputType = 'vtkImageData' -extract3.ImageBounds = [0.0, 2047.0, 0.0, 1023.0, 0.0, 0.0] -extract3.InputArray = ['POINTS', 'FXAA'] +ttkExtract3 = TTKExtract(Input=ttkDarkroomFXAA1) +ttkExtract3.Expression = '0' +ttkExtract3.OutputType = 'vtkImageData' +ttkExtract3.ImageBounds = [0.0, 2047.0, 0.0, 1023.0, 0.0, 0.0] +ttkExtract3.InputArray = ['POINTS', ''] # ---------------------------------------------------------------- # setup the visualization in view 'renderView1' # ---------------------------------------------------------------- -# show data from elevation -elevationDisplay = Show(elevation, renderView1, 'GeometryRepresentation') +# show data from ttkDarkroomCamera1 +ttkDarkroomCamera1Display = Show(ttkDarkroomCamera1, renderView1, 'UnstructuredGridRepresentation') +ttkDarkroomCamera1Display.Representation = 'Surface' +ttkDarkroomCamera1Display.PointSize = 10.0 + +# show data from ttkExtract4 +ttkExtract4Display = Show(ttkExtract4, renderView1, 'GeometryRepresentation') + +# get color transfer function/color map for 'Elevation' +elevationLUT = GetColorTransferFunction('Elevation') +elevationLUT.RGBPoints = [0.0, 1.0, 0.968627, 0.92549, 0.05882349999999992, 0.998155, 0.940946, 0.859054, 0.12156849999999997, 0.996186, 0.911419, 0.788189, 0.18431350000000002, 0.994218, 0.872587, 0.706159, 0.24705899999999992, 0.992249, 0.833218, 0.623483, 0.30980399999999997, 0.992157, 0.784468, 0.570827, 0.372549, 0.992157, 0.735256, 0.519646, 0.43529399999999996, 0.990265, 0.646321, 0.436309, 0.49803921500000004, 0.988297, 0.555771, 0.351665, 0.5607845, 0.963445, 0.476663, 0.316601, 0.6235295000000001, 0.937855, 0.397924, 0.283137, 0.6862745, 0.891119, 0.294195, 0.203537, 0.7490195, 0.843875, 0.189865, 0.12283, 0.8117645, 0.773379, 0.095225, 0.061499, 0.87451, 0.702514, 0.000738, 0.000477, 0.937255, 0.6004, 0.0, 0.0, 1.0, 0.498039, 0.0, 0.0] +elevationLUT.ColorSpace = 'Lab' +elevationLUT.ScalarRangeInitialized = 1.0 # trace defaults for the display properties. -elevationDisplay.Representation = 'Surface' -elevationDisplay.ColorArrayName = ['POINTS', ''] -elevationDisplay.OSPRayScaleArray = 'Elevation' -elevationDisplay.OSPRayScaleFunction = 'PiecewiseFunction' -elevationDisplay.SelectOrientationVectors = 'Elevation' -elevationDisplay.ScaleFactor = 0.0833490014076233 -elevationDisplay.SelectScaleArray = 'Elevation' -elevationDisplay.GlyphType = 'Arrow' -elevationDisplay.GlyphTableIndexArray = 'Elevation' -elevationDisplay.GaussianRadius = 0.004167450070381165 -elevationDisplay.SetScaleArray = ['POINTS', 'Elevation'] -elevationDisplay.ScaleTransferFunction = 'PiecewiseFunction' -elevationDisplay.OpacityArray = ['POINTS', 'Elevation'] -elevationDisplay.OpacityTransferFunction = 'PiecewiseFunction' -elevationDisplay.DataAxesGrid = 'GridAxesRepresentation' -elevationDisplay.PolarAxes = 'PolarAxesRepresentation' - -# show data from darkroomCamera1 -darkroomCamera1Display = Show(darkroomCamera1, renderView1, 'UnstructuredGridRepresentation') +ttkExtract4Display.Representation = 'Surface' +ttkExtract4Display.ColorArrayName = ['POINTS', 'Elevation'] +ttkExtract4Display.LookupTable = elevationLUT +ttkExtract4Display.Specular = 1.0 +ttkExtract4Display.SpecularPower = 35.0 +ttkExtract4Display.OSPRayScaleArray = 'Elevation' +ttkExtract4Display.OSPRayScaleFunction = 'PiecewiseFunction' +ttkExtract4Display.SelectOrientationVectors = 'Elevation' +ttkExtract4Display.ScaleFactor = 0.0833490014076233 +ttkExtract4Display.SelectScaleArray = 'Elevation' +ttkExtract4Display.GlyphType = 'Arrow' +ttkExtract4Display.GlyphTableIndexArray = 'Elevation' +ttkExtract4Display.GaussianRadius = 0.004167450070381165 +ttkExtract4Display.SetScaleArray = ['POINTS', 'Elevation'] +ttkExtract4Display.ScaleTransferFunction = 'PiecewiseFunction' +ttkExtract4Display.OpacityArray = ['POINTS', 'Elevation'] +ttkExtract4Display.OpacityTransferFunction = 'PiecewiseFunction' +ttkExtract4Display.DataAxesGrid = 'GridAxesRepresentation' +ttkExtract4Display.PolarAxes = 'PolarAxesRepresentation' + +# show data from ttkExtract5 +ttkExtract5Display = Show(ttkExtract5, renderView1, 'GeometryRepresentation') # trace defaults for the display properties. -darkroomCamera1Display.Representation = 'Surface' -darkroomCamera1Display.ColorArrayName = [None, ''] -darkroomCamera1Display.OSPRayScaleArray = 'CamFocalPoint' -darkroomCamera1Display.OSPRayScaleFunction = 'PiecewiseFunction' -darkroomCamera1Display.SelectOrientationVectors = 'CamFocalPoint' -darkroomCamera1Display.ScaleFactor = 0.1 -darkroomCamera1Display.SelectScaleArray = 'CamFocalPoint' -darkroomCamera1Display.GlyphType = 'Arrow' -darkroomCamera1Display.GlyphTableIndexArray = 'CamFocalPoint' -darkroomCamera1Display.GaussianRadius = 0.005 -darkroomCamera1Display.SetScaleArray = ['POINTS', 'CamFocalPoint'] -darkroomCamera1Display.ScaleTransferFunction = 'PiecewiseFunction' -darkroomCamera1Display.OpacityArray = ['POINTS', 'CamFocalPoint'] -darkroomCamera1Display.OpacityTransferFunction = 'PiecewiseFunction' -darkroomCamera1Display.DataAxesGrid = 'GridAxesRepresentation' -darkroomCamera1Display.PolarAxes = 'PolarAxesRepresentation' -darkroomCamera1Display.ScalarOpacityUnitDistance = 0.0 +ttkExtract5Display.Representation = 'Surface' +ttkExtract5Display.AmbientColor = [0.0, 0.6666666666666666, 1.0] +ttkExtract5Display.ColorArrayName = ['POINTS', ''] +ttkExtract5Display.DiffuseColor = [0.0, 0.6666666666666666, 1.0] +ttkExtract5Display.OSPRayScaleArray = 'Elevation' +ttkExtract5Display.OSPRayScaleFunction = 'PiecewiseFunction' +ttkExtract5Display.SelectOrientationVectors = 'Elevation' +ttkExtract5Display.ScaleFactor = 0.08308770060539246 +ttkExtract5Display.SelectScaleArray = 'Elevation' +ttkExtract5Display.GlyphType = 'Arrow' +ttkExtract5Display.GlyphTableIndexArray = 'Elevation' +ttkExtract5Display.GaussianRadius = 0.004154385030269623 +ttkExtract5Display.SetScaleArray = ['POINTS', 'Elevation'] +ttkExtract5Display.ScaleTransferFunction = 'PiecewiseFunction' +ttkExtract5Display.OpacityArray = ['POINTS', 'Elevation'] +ttkExtract5Display.OpacityTransferFunction = 'PiecewiseFunction' +ttkExtract5Display.DataAxesGrid = 'GridAxesRepresentation' +ttkExtract5Display.PolarAxes = 'PolarAxesRepresentation' # init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' -darkroomCamera1Display.ScaleTransferFunction.Points = [0.0531746282763316, 0.0, 0.5, 0.0, 0.05318225920200348, 1.0, 0.5, 0.0] +ttkExtract5Display.ScaleTransferFunction.Points = [0.0023527848534286022, 0.0, 0.5, 0.0, 0.9992177486419678, 1.0, 0.5, 0.0] # init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' -darkroomCamera1Display.OpacityTransferFunction.Points = [0.0531746282763316, 0.0, 0.5, 0.0, 0.05318225920200348, 1.0, 0.5, 0.0] +ttkExtract5Display.OpacityTransferFunction.Points = [0.0023527848534286022, 0.0, 0.5, 0.0, 0.9992177486419678, 1.0, 0.5, 0.0] # ---------------------------------------------------------------- # setup the visualization in view 'renderView2' # ---------------------------------------------------------------- -# show data from extract3 -extract3Display = Show(extract3, renderView2, 'UniformGridRepresentation') +# show data from ttkExtract3 +ttkExtract3Display = Show(ttkExtract3, renderView2, 'UniformGridRepresentation') + +# get color transfer function/color map for 'FXAA' +fXAALUT = GetColorTransferFunction('FXAA') +fXAALUT.RGBPoints = [0.0, 0.231373, 0.298039, 0.752941, 255.0, 0.865003, 0.865003, 0.865003, 510.0, 0.705882, 0.0156863, 0.14902] +fXAALUT.ScalarRangeInitialized = 1.0 + +# get opacity transfer function/opacity map for 'FXAA' +fXAAPWF = GetOpacityTransferFunction('FXAA') +fXAAPWF.Points = [0.0, 0.0, 0.5, 0.0, 510.0, 1.0, 0.5, 0.0] +fXAAPWF.ScalarRangeInitialized = 1 # trace defaults for the display properties. -extract3Display.ColorArrayName = ['POINTS', 'FXAA'] -extract3Display.Representation = 'Slice' -extract3Display.MapScalars = 0 +ttkExtract3Display.Representation = 'Slice' +ttkExtract3Display.ColorArrayName = ['POINTS', 'FXAA'] +ttkExtract3Display.LookupTable = fXAALUT +ttkExtract3Display.MapScalars = 0 +ttkExtract3Display.OSPRayScaleArray = 'FXAA' +ttkExtract3Display.OSPRayScaleFunction = 'PiecewiseFunction' +ttkExtract3Display.SelectOrientationVectors = 'Depth' +ttkExtract3Display.ScaleFactor = 204.70000000000002 +ttkExtract3Display.SelectScaleArray = 'FXAA' +ttkExtract3Display.GlyphType = 'Arrow' +ttkExtract3Display.GlyphTableIndexArray = 'FXAA' +ttkExtract3Display.GaussianRadius = 10.235 +ttkExtract3Display.SetScaleArray = ['POINTS', 'FXAA'] +ttkExtract3Display.ScaleTransferFunction = 'PiecewiseFunction' +ttkExtract3Display.OpacityArray = ['POINTS', 'FXAA'] +ttkExtract3Display.OpacityTransferFunction = 'PiecewiseFunction' +ttkExtract3Display.DataAxesGrid = 'GridAxesRepresentation' +ttkExtract3Display.PolarAxes = 'PolarAxesRepresentation' +ttkExtract3Display.ScalarOpacityUnitDistance = 17.886797802949964 +ttkExtract3Display.ScalarOpacityFunction = fXAAPWF +ttkExtract3Display.IsosurfaceValues = [127.5] +ttkExtract3Display.SliceFunction = 'Plane' + +# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' +ttkExtract3Display.ScaleTransferFunction.Points = [0.0, 0.0, 0.5, 0.0, 255.0, 1.0, 0.5, 0.0] + +# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' +ttkExtract3Display.OpacityTransferFunction.Points = [0.0, 0.0, 0.5, 0.0, 255.0, 1.0, 0.5, 0.0] + +# init the 'Plane' selected for 'SliceFunction' +ttkExtract3Display.SliceFunction.Origin = [1023.5, 511.5, 0.0] + +# ---------------------------------------------------------------- +# setup color maps and opacity mapes used in the visualization +# note: the Get..() functions create a new object, if needed +# ---------------------------------------------------------------- + +# get opacity transfer function/opacity map for 'Elevation' +elevationPWF = GetOpacityTransferFunction('Elevation') +elevationPWF.ScalarRangeInitialized = 1 # ---------------------------------------------------------------- # finally, restore active source -SetActiveSource(extract3) SetActiveView(renderView2) +SetActiveSource(ttkExtract3) # ---------------------------------------------------------------- \ No newline at end of file