拉曼整体图:完成信息(还需要调整表达)
@@ -476,8 +476,10 @@ def export(mode_id):
|
||||
SetActiveSource(a3csv)
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
renderView1.Update() # 强制更新视图
|
||||
Render()
|
||||
# ImageResolution=[1920, 1080]
|
||||
SaveScreenshot(f'mode/z/{mode_id}.png', TransparentBackground=True)
|
||||
SaveScreenshot(f'mode/z/{mode_id}.png', renderView1, TransparentBackground=True)
|
||||
|
||||
for i in [*range(3, 9), *range(11, 21), 23]:
|
||||
for i in range(3, 24):
|
||||
export(i)
|
||||
|
||||
BIN
画图/拉曼整体图/main.svg
LFS
9
画图/拉曼整体图/mode/z/10.csv
Normal file
@@ -0,0 +1,9 @@
|
||||
vx,vy,vz
|
||||
0,0,0.04986
|
||||
0,0,-0.10462
|
||||
0,0,-0.04986
|
||||
0,0,0.10462
|
||||
0,0,0.06389
|
||||
0,0,-0.01697
|
||||
0,0,-0.06389
|
||||
0,0,0.01697
|
||||
|
BIN
画图/拉曼整体图/mode/z/10.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 56 KiB |
9
画图/拉曼整体图/mode/z/21.csv
Normal file
@@ -0,0 +1,9 @@
|
||||
vx,vy,vz
|
||||
0,0,0.05431
|
||||
0,0,-0.03742
|
||||
0,0,-0.05431
|
||||
0,0,0.03742
|
||||
0,0,-0.11183
|
||||
0,0,-0.03075
|
||||
0,0,0.11183
|
||||
0,0,0.03075
|
||||
|
BIN
画图/拉曼整体图/mode/z/21.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
9
画图/拉曼整体图/mode/z/22.csv
Normal file
@@ -0,0 +1,9 @@
|
||||
vx,vy,vz
|
||||
0,0,0.03648
|
||||
0,0,0.0542
|
||||
0,0,-0.03648
|
||||
0,0,-0.0542
|
||||
0,0,0.03046
|
||||
0,0,-0.11228
|
||||
0,0,-0.03046
|
||||
0,0,0.11228
|
||||
|
BIN
画图/拉曼整体图/mode/z/22.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 57 KiB |
9
画图/拉曼整体图/mode/z/9.csv
Normal file
@@ -0,0 +1,9 @@
|
||||
vx,vy,vz
|
||||
0,0,0.10505
|
||||
0,0,0.05019
|
||||
0,0,-0.10505
|
||||
0,0,-0.05019
|
||||
0,0,0.01692
|
||||
0,0,0.06295
|
||||
0,0,-0.01692
|
||||
0,0,-0.06295
|
||||
|
BIN
画图/拉曼整体图/mode/z/9.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
@@ -1864,8 +1864,13 @@
|
||||
<Element index="2" value="1"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14541" servers="16">
|
||||
<Property name="Source" id="14541.Source" number_of_elements="1">
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14546" servers="16">
|
||||
<Property name="Source" id="14546.Source" number_of_elements="1">
|
||||
<Proxy value="13143"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14538" servers="16">
|
||||
<Property name="Source" id="14538.Source" number_of_elements="1">
|
||||
<Proxy value="13154"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
@@ -3090,18 +3095,18 @@
|
||||
<Element index="2" value="1"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14538" servers="16">
|
||||
<Property name="Source" id="14538.Source" number_of_elements="1">
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14539" servers="16">
|
||||
<Property name="Source" id="14539.Source" number_of_elements="1">
|
||||
<Proxy value="13391"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14539" servers="16">
|
||||
<Property name="Source" id="14539.Source" number_of_elements="1">
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14540" servers="16">
|
||||
<Property name="Source" id="14540.Source" number_of_elements="1">
|
||||
<Proxy value="13402"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14542" servers="16">
|
||||
<Property name="Source" id="14542.Source" number_of_elements="1">
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14541" servers="16">
|
||||
<Property name="Source" id="14541.Source" number_of_elements="1">
|
||||
<Proxy value="13413"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
@@ -4326,13 +4331,13 @@
|
||||
<Element index="2" value="1"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14543" servers="16">
|
||||
<Property name="Source" id="14543.Source" number_of_elements="1">
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14542" servers="16">
|
||||
<Property name="Source" id="14542.Source" number_of_elements="1">
|
||||
<Proxy value="13650"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14546" servers="16">
|
||||
<Property name="Source" id="14546.Source" number_of_elements="1">
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="14543" servers="16">
|
||||
<Property name="Source" id="14543.Source" number_of_elements="1">
|
||||
<Proxy value="13661"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
@@ -9047,11 +9052,6 @@
|
||||
<Domain name="range" id="12874.GridColor.range"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="misc" type="RepresentationAnimationHelper" id="17604" servers="16">
|
||||
<Property name="Source" id="17604.Source" number_of_elements="1">
|
||||
<Proxy value="17592"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="representations" type="GeometryRepresentation" id="13112" servers="21">
|
||||
<Property name="DataAxesGrid" id="13112.DataAxesGrid" number_of_elements="1">
|
||||
<Proxy value="12883"/>
|
||||
@@ -16020,37 +16020,37 @@
|
||||
<Domain name="range" id="265.WidgetColor.range"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="sources" type="CSVReader" id="17592" servers="1">
|
||||
<Property name="FileName" id="17592.FileName" number_of_elements="1">
|
||||
<Proxy group="sources" type="CSVReader" id="13143" servers="1">
|
||||
<Property name="FileName" id="13143.FileName" number_of_elements="1">
|
||||
<Element index="0" value="/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/mode/z/3.csv"/>
|
||||
<Domain name="files" id="17592.FileName.files"/>
|
||||
<Domain name="files" id="13143.FileName.files"/>
|
||||
</Property>
|
||||
<Property name="FileNameInfo" id="17592.FileNameInfo" number_of_elements="1">
|
||||
<Property name="FileNameInfo" id="13143.FileNameInfo" number_of_elements="1">
|
||||
<Element index="0" value="/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/mode/z/3.csv"/>
|
||||
</Property>
|
||||
<Property name="TimestepValues" id="17592.TimestepValues"/>
|
||||
<Property name="AddTabFieldDelimiter" id="17592.AddTabFieldDelimiter" number_of_elements="1">
|
||||
<Property name="TimestepValues" id="13143.TimestepValues"/>
|
||||
<Property name="AddTabFieldDelimiter" id="13143.AddTabFieldDelimiter" number_of_elements="1">
|
||||
<Element index="0" value="0"/>
|
||||
<Domain name="bool" id="17592.AddTabFieldDelimiter.bool"/>
|
||||
<Domain name="bool" id="13143.AddTabFieldDelimiter.bool"/>
|
||||
</Property>
|
||||
<Property name="DetectNumericColumns" id="17592.DetectNumericColumns" number_of_elements="1">
|
||||
<Property name="DetectNumericColumns" id="13143.DetectNumericColumns" number_of_elements="1">
|
||||
<Element index="0" value="1"/>
|
||||
<Domain name="bool" id="17592.DetectNumericColumns.bool"/>
|
||||
<Domain name="bool" id="13143.DetectNumericColumns.bool"/>
|
||||
</Property>
|
||||
<Property name="FieldDelimiterCharacters" id="17592.FieldDelimiterCharacters" number_of_elements="1">
|
||||
<Property name="FieldDelimiterCharacters" id="13143.FieldDelimiterCharacters" number_of_elements="1">
|
||||
<Element index="0" value=","/>
|
||||
</Property>
|
||||
<Property name="HaveHeaders" id="17592.HaveHeaders" number_of_elements="1">
|
||||
<Property name="HaveHeaders" id="13143.HaveHeaders" number_of_elements="1">
|
||||
<Element index="0" value="1"/>
|
||||
<Domain name="bool" id="17592.HaveHeaders.bool"/>
|
||||
<Domain name="bool" id="13143.HaveHeaders.bool"/>
|
||||
</Property>
|
||||
<Property name="MergeConsecutiveDelimiters" id="17592.MergeConsecutiveDelimiters" number_of_elements="1">
|
||||
<Property name="MergeConsecutiveDelimiters" id="13143.MergeConsecutiveDelimiters" number_of_elements="1">
|
||||
<Element index="0" value="0"/>
|
||||
<Domain name="bool" id="17592.MergeConsecutiveDelimiters.bool"/>
|
||||
<Domain name="bool" id="13143.MergeConsecutiveDelimiters.bool"/>
|
||||
</Property>
|
||||
<Property name="UseStringDelimiter" id="17592.UseStringDelimiter" number_of_elements="1">
|
||||
<Property name="UseStringDelimiter" id="13143.UseStringDelimiter" number_of_elements="1">
|
||||
<Element index="0" value="1"/>
|
||||
<Domain name="bool" id="17592.UseStringDelimiter.bool"/>
|
||||
<Domain name="bool" id="13143.UseStringDelimiter.bool"/>
|
||||
</Property>
|
||||
</Proxy>
|
||||
<Proxy group="filters" type="AppendAttributes" id="13413" servers="1">
|
||||
@@ -16313,7 +16313,7 @@
|
||||
<Domain name="bool" id="13154.Create2DPoints.bool"/>
|
||||
</Property>
|
||||
<Property name="Input" id="13154.Input" number_of_elements="1">
|
||||
<Proxy value="17592" output_port="0"/>
|
||||
<Proxy value="13143" output_port="0"/>
|
||||
<Domain name="groups" id="13154.Input.groups"/>
|
||||
<Domain name="input_array" id="13154.Input.input_array"/>
|
||||
<Domain name="input_type" id="13154.Input.input_type"/>
|
||||
@@ -16583,14 +16583,14 @@
|
||||
<Proxy value="12906"/>
|
||||
<Proxy value="13391"/>
|
||||
<Proxy value="13402"/>
|
||||
<Proxy value="17592"/>
|
||||
<Proxy value="13143"/>
|
||||
<Proxy value="13154"/>
|
||||
<Proxy value="13413"/>
|
||||
<Proxy value="13650"/>
|
||||
<Proxy value="13749"/>
|
||||
<Proxy value="14066"/>
|
||||
<Proxy value="13661"/>
|
||||
<Proxy value="17592"/>
|
||||
<Proxy value="13143"/>
|
||||
</Property>
|
||||
<Property name="TimestepValues" id="256.TimestepValues"/>
|
||||
<Property name="Views" id="256.Views" number_of_elements="1">
|
||||
@@ -17375,8 +17375,11 @@
|
||||
<Item id="13044" name="ScaleTransferFunction" logname="GeometryRepresentation1/PointGaussianRepresentation/ScaleTransferFunction/PiecewiseFunction"/>
|
||||
<Item id="13045" name="TextureTransform" logname="GeometryRepresentation1/SurfaceRepresentation/TextureTransform/Transform2"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13143">
|
||||
<Item id="14546" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13154">
|
||||
<Item id="14541" name="RepresentationAnimationHelper"/>
|
||||
<Item id="14538" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13360">
|
||||
<Item id="13131" name="DataAxesGrid" logname="GeometryRepresentation2/DataAxesGrid/GridAxesRepresentation"/>
|
||||
@@ -17395,13 +17398,13 @@
|
||||
<Item id="13293" name="TextureTransform" logname="GeometryRepresentation2/SurfaceRepresentation/TextureTransform/Transform2"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13391">
|
||||
<Item id="14538" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13402">
|
||||
<Item id="14539" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13402">
|
||||
<Item id="14540" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13413">
|
||||
<Item id="14542" name="RepresentationAnimationHelper"/>
|
||||
<Item id="14541" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13619">
|
||||
<Item id="13379" name="DataAxesGrid" logname="GeometryRepresentation3/DataAxesGrid/GridAxesRepresentation"/>
|
||||
@@ -17420,10 +17423,10 @@
|
||||
<Item id="13552" name="TextureTransform" logname="GeometryRepresentation3/SurfaceRepresentation/TextureTransform/Transform2"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13650">
|
||||
<Item id="14543" name="RepresentationAnimationHelper"/>
|
||||
<Item id="14542" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13661">
|
||||
<Item id="14546" name="RepresentationAnimationHelper"/>
|
||||
<Item id="14543" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.13749">
|
||||
<Item id="13649" name="GlyphTransform" logname="Glyph1/GlyphTransform/Transform2"/>
|
||||
@@ -17500,9 +17503,6 @@
|
||||
<Item id="12871" name="LegendGrid" logname="RenderView1/LegendGrid/LegendGridActor"/>
|
||||
<Item id="12874" name="PolarGrid" logname="RenderView1/PolarGrid/PolarGridActor"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="pq_helper_proxies.17592">
|
||||
<Item id="17604" name="RepresentationAnimationHelper"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="representations">
|
||||
<Item id="13112" name="GeometryRepresentation1" logname="GeometryRepresentation1"/>
|
||||
<Item id="13360" name="GeometryRepresentation2" logname="GeometryRepresentation2"/>
|
||||
@@ -17520,7 +17520,7 @@
|
||||
<Item id="265" name="ColorPalette"/>
|
||||
</ProxyCollection>
|
||||
<ProxyCollection name="sources">
|
||||
<Item id="17592" name="3.csv" logname="3.csv"/>
|
||||
<Item id="13143" name="3.csv" logname="3.csv"/>
|
||||
<Item id="13413" name="AppendAttributes1" logname="AppendAttributes1"/>
|
||||
<Item id="13402" name="atom" logname="TableToPoints1"/>
|
||||
<Item id="13749" name="atom" logname="Glyph1"/>
|
||||
|
||||
@@ -49,6 +49,18 @@ SetActiveView(renderView1)
|
||||
# setup the data processing pipelines
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
# create a new 'CSV Reader'
|
||||
atomcsv = CSVReader(registrationName='atom.csv', FileName=['/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/atom.csv'])
|
||||
|
||||
# create a new 'CSV Reader'
|
||||
a3csv = CSVReader(registrationName='3.csv', FileName=['/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/mode/z/3.csv'])
|
||||
|
||||
# create a new 'Table To Points'
|
||||
atom = TableToPoints(registrationName='atom', Input=atomcsv)
|
||||
atom.XColumn = 'x'
|
||||
atom.YColumn = 'y'
|
||||
atom.ZColumn = 'z'
|
||||
|
||||
# create a new 'CSV Reader'
|
||||
framecsv = CSVReader(registrationName='frame.csv', FileName=['/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/frame.csv'])
|
||||
|
||||
@@ -91,9 +103,6 @@ frame.RequestInformationScript = ''
|
||||
frame.RequestUpdateExtentScript = ''
|
||||
frame.PythonPath = ''
|
||||
|
||||
# create a new 'CSV Reader'
|
||||
a3csv = CSVReader(registrationName='3.csv', FileName=['/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/mode/z/3.csv'])
|
||||
|
||||
# create a new 'Table To Points'
|
||||
mode = TableToPoints(registrationName='mode', Input=a3csv)
|
||||
mode.XColumn = 'vx'
|
||||
@@ -101,15 +110,6 @@ mode.YColumn = 'vy'
|
||||
mode.ZColumn = 'vz'
|
||||
mode.KeepAllDataArrays = 1
|
||||
|
||||
# create a new 'CSV Reader'
|
||||
atomcsv = CSVReader(registrationName='atom.csv', FileName=['/home/chn/repo/SiC-2nd-paper/画图/拉曼整体图/atom.csv'])
|
||||
|
||||
# create a new 'Table To Points'
|
||||
atom = TableToPoints(registrationName='atom', Input=atomcsv)
|
||||
atom.XColumn = 'x'
|
||||
atom.YColumn = 'y'
|
||||
atom.ZColumn = 'z'
|
||||
|
||||
# create a new 'Append Attributes'
|
||||
appendAttributes1 = AppendAttributes(registrationName='AppendAttributes1', Input=[atom, mode])
|
||||
|
||||
@@ -123,6 +123,19 @@ radius = Calculator(registrationName='radius', Input=velocity)
|
||||
radius.ResultArrayName = 'radius'
|
||||
radius.Function = '(type == 0)*1.18 + (type == 1)*0.77'
|
||||
|
||||
# create a new 'Glyph'
|
||||
atom_1 = Glyph(registrationName='atom', Input=radius,
|
||||
GlyphType='Sphere')
|
||||
atom_1.OrientationArray = ['POINTS', 'No orientation array']
|
||||
atom_1.ScaleArray = ['POINTS', 'radius']
|
||||
atom_1.ScaleFactor = 1.5
|
||||
atom_1.GlyphTransform = 'Transform2'
|
||||
atom_1.GlyphMode = 'All Points'
|
||||
|
||||
# init the 'Sphere' selected for 'GlyphType'
|
||||
atom_1.GlyphType.ThetaResolution = 64
|
||||
atom_1.GlyphType.PhiResolution = 64
|
||||
|
||||
# create a new 'Glyph'
|
||||
velocity_1 = Glyph(registrationName='velocity', Input=radius,
|
||||
GlyphType='Arrow')
|
||||
@@ -139,19 +152,6 @@ velocity_1.GlyphType.TipLength = 0.15
|
||||
velocity_1.GlyphType.ShaftResolution = 64
|
||||
velocity_1.GlyphType.ShaftRadius = 0.05
|
||||
|
||||
# create a new 'Glyph'
|
||||
atom_1 = Glyph(registrationName='atom', Input=radius,
|
||||
GlyphType='Sphere')
|
||||
atom_1.OrientationArray = ['POINTS', 'No orientation array']
|
||||
atom_1.ScaleArray = ['POINTS', 'radius']
|
||||
atom_1.ScaleFactor = 1.5
|
||||
atom_1.GlyphTransform = 'Transform2'
|
||||
atom_1.GlyphMode = 'All Points'
|
||||
|
||||
# init the 'Sphere' selected for 'GlyphType'
|
||||
atom_1.GlyphType.ThetaResolution = 64
|
||||
atom_1.GlyphType.PhiResolution = 64
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# setup the visualization in view 'renderView1'
|
||||
# ----------------------------------------------------------------
|
||||
@@ -427,35 +427,33 @@ separate_atom_1Display_typeLUTColorBar.Visibility = 0
|
||||
# note: the Get..() functions create a new object, if needed
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
# get opacity transfer function/opacity map for 'radius'
|
||||
radiusPWF = GetOpacityTransferFunction('radius')
|
||||
radiusPWF.Points = [0.2, 0.0, 0.5, 0.0, 2.0, 1.0, 0.5, 0.0]
|
||||
radiusPWF.ScalarRangeInitialized = 1
|
||||
# get opacity transfer function/opacity map for 'type'
|
||||
typePWF = GetOpacityTransferFunction('type')
|
||||
typePWF.ScalarRangeInitialized = 1
|
||||
|
||||
# get separate opacity transfer function/opacity map for 'type'
|
||||
separate_atom_1Display_typePWF = GetOpacityTransferFunction('type', atom_1Display, separate=True)
|
||||
separate_atom_1Display_typePWF.ScalarRangeInitialized = 1
|
||||
|
||||
# get opacity transfer function/opacity map for 'type'
|
||||
typePWF = GetOpacityTransferFunction('type')
|
||||
typePWF.ScalarRangeInitialized = 1
|
||||
# get opacity transfer function/opacity map for 'radius'
|
||||
radiusPWF = GetOpacityTransferFunction('radius')
|
||||
radiusPWF.Points = [0.2, 0.0, 0.5, 0.0, 2.0, 1.0, 0.5, 0.0]
|
||||
radiusPWF.ScalarRangeInitialized = 1
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# setup animation scene, tracks and keyframes
|
||||
# note: the Get..() functions create a new object, if needed
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
# get time animation track
|
||||
timeAnimationCue1 = GetTimeTrack()
|
||||
|
||||
# initialize the animation scene
|
||||
|
||||
# get the time-keeper
|
||||
timeKeeper1 = GetTimeKeeper()
|
||||
|
||||
# initialize the timekeeper
|
||||
timeKeeper1.SuppressedTimeSources = framecsv
|
||||
|
||||
# get time animation track
|
||||
timeAnimationCue1 = GetTimeTrack()
|
||||
|
||||
# initialize the animation track
|
||||
|
||||
# get animation scene
|
||||
@@ -466,9 +464,11 @@ animationScene1.ViewModules = renderView1
|
||||
animationScene1.Cues = timeAnimationCue1
|
||||
animationScene1.AnimationTime = 0.0
|
||||
|
||||
# initialize the animation scene
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# restore active source
|
||||
SetActiveSource(a3csv)
|
||||
SetActiveSource(frame)
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -496,5 +496,3 @@ SetActiveSource(a3csv)
|
||||
## Please refer to the documentation of paraview.simple
|
||||
## https://www.paraview.org/paraview-docs/latest/python/paraview.simple.html
|
||||
##--------------------------------------------
|
||||
# ImageResolution=[1920, 1080]
|
||||
SaveScreenshot('output.png', TransparentBackground=True)
|
||||