pytecplot 1.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. pytecplot-1.5.2.dist-info/LICENSE.html +77 -0
  2. pytecplot-1.5.2.dist-info/METADATA +508 -0
  3. pytecplot-1.5.2.dist-info/RECORD +97 -0
  4. pytecplot-1.5.2.dist-info/WHEEL +5 -0
  5. pytecplot-1.5.2.dist-info/top_level.txt +1 -0
  6. tecplot/__init__.py +94 -0
  7. tecplot/annotation/__init__.py +7 -0
  8. tecplot/annotation/annotation.py +223 -0
  9. tecplot/annotation/geometry.py +369 -0
  10. tecplot/annotation/georeference.py +33 -0
  11. tecplot/annotation/image.py +185 -0
  12. tecplot/annotation/iter.py +105 -0
  13. tecplot/annotation/polyline.py +381 -0
  14. tecplot/annotation/text.py +744 -0
  15. tecplot/constant.py +401 -0
  16. tecplot/data/__init__.py +34 -0
  17. tecplot/data/array.py +645 -0
  18. tecplot/data/create.py +1 -0
  19. tecplot/data/dataset.py +1809 -0
  20. tecplot/data/extract.py +544 -0
  21. tecplot/data/face_neighbors.py +494 -0
  22. tecplot/data/facemap.py +814 -0
  23. tecplot/data/load.py +2075 -0
  24. tecplot/data/nodemap.py +577 -0
  25. tecplot/data/operate.py +928 -0
  26. tecplot/data/query.py +334 -0
  27. tecplot/data/save.py +343 -0
  28. tecplot/data/variable.py +280 -0
  29. tecplot/data/zone.py +841 -0
  30. tecplot/exception.py +201 -0
  31. tecplot/export/__init__.py +13 -0
  32. tecplot/export/animation.py +521 -0
  33. tecplot/export/export_setup.py +318 -0
  34. tecplot/export/image.py +577 -0
  35. tecplot/export/print_setup.py +218 -0
  36. tecplot/export/time_animation.py +607 -0
  37. tecplot/extension/__init__.py +14 -0
  38. tecplot/extension/ipython.py +68 -0
  39. tecplot/layout/__init__.py +20 -0
  40. tecplot/layout/frame.py +1285 -0
  41. tecplot/layout/layout.py +488 -0
  42. tecplot/layout/page.py +541 -0
  43. tecplot/legend/__init__.py +4 -0
  44. tecplot/legend/contour_legend.py +516 -0
  45. tecplot/legend/legend.py +141 -0
  46. tecplot/legend/line_legend.py +66 -0
  47. tecplot/legend/rgb_coloring_legend.py +291 -0
  48. tecplot/legend/scatter_legend.py +136 -0
  49. tecplot/macro.py +339 -0
  50. tecplot/plot/__init__.py +62 -0
  51. tecplot/plot/axes.py +881 -0
  52. tecplot/plot/axis.py +1350 -0
  53. tecplot/plot/blanking.py +584 -0
  54. tecplot/plot/contour.py +1302 -0
  55. tecplot/plot/effects.py +162 -0
  56. tecplot/plot/fieldmap.py +2159 -0
  57. tecplot/plot/grid.py +758 -0
  58. tecplot/plot/isosurface.py +1167 -0
  59. tecplot/plot/labels.py +338 -0
  60. tecplot/plot/linemap.py +1905 -0
  61. tecplot/plot/linking.py +489 -0
  62. tecplot/plot/plot.py +1791 -0
  63. tecplot/plot/rgb_coloring.py +281 -0
  64. tecplot/plot/scatter.py +396 -0
  65. tecplot/plot/slice.py +1544 -0
  66. tecplot/plot/streamtrace.py +1949 -0
  67. tecplot/plot/symbol.py +567 -0
  68. tecplot/plot/ticks.py +666 -0
  69. tecplot/plot/title.py +380 -0
  70. tecplot/plot/vector.py +679 -0
  71. tecplot/plot/view.py +868 -0
  72. tecplot/session/__init__.py +112 -0
  73. tecplot/session/aux_data.py +276 -0
  74. tecplot/session/config.py +92 -0
  75. tecplot/session/session.py +425 -0
  76. tecplot/session/state_changed.py +225 -0
  77. tecplot/session/style.py +504 -0
  78. tecplot/tecutil/__init__.py +16 -0
  79. tecplot/tecutil/arglist.py +230 -0
  80. tecplot/tecutil/captured_output.py +177 -0
  81. tecplot/tecutil/constant.py +1312 -0
  82. tecplot/tecutil/index_set.py +118 -0
  83. tecplot/tecutil/lock.py +36 -0
  84. tecplot/tecutil/message_pb2.py +39 -0
  85. tecplot/tecutil/preamble.py +54 -0
  86. tecplot/tecutil/stringlist.py +114 -0
  87. tecplot/tecutil/sv.py +1662 -0
  88. tecplot/tecutil/tecutil.py +12402 -0
  89. tecplot/tecutil/tecutil_client.py +627 -0
  90. tecplot/tecutil/tecutil_connector.py +937 -0
  91. tecplot/tecutil/tecutil_rpc.py +6845 -0
  92. tecplot/tecutil/util.py +332 -0
  93. tecplot/text/__init__.py +3 -0
  94. tecplot/text/font.py +224 -0
  95. tecplot/text/label_format.py +374 -0
  96. tecplot/text/textbox.py +106 -0
  97. tecplot/version.py +41 -0
@@ -0,0 +1,218 @@
1
+ from builtins import int, str, super
2
+
3
+ import platform
4
+
5
+ from ..tecutil import sv
6
+ from ..constant import *
7
+ from .. import session, tecutil
8
+
9
+
10
+ # Except for a select few commands needed by the exporters,
11
+ # $!PrintSetup commands should not be supported in Windows.
12
+ # We should never expose $!PrintSetup in the pytecplot api.
13
+ _IS_WINDOWS = platform.system() == 'Windows'
14
+
15
+
16
+ class PrintSetup(session.Style):
17
+ def __init__(self):
18
+ super().__init__(sv.PRINTSETUP)
19
+
20
+ def reset(self):
21
+ self.driver = PrinterDriver.PS
22
+ self.filename = 'untitled.ps'
23
+
24
+ self.force_extra_3d_sorting = False
25
+ self.lg_mopup = ''
26
+ self.lg_setup = ''
27
+ self.num_copies = 1
28
+ self.num_shades = 80
29
+ self.palette = Palette.Color if _IS_WINDOWS else Palette.Monochrome
30
+ self.post_mopup = ''
31
+ self.post_setup = ''
32
+ self.print_to_file = False if _IS_WINDOWS else True
33
+ self.render_type = PrintRenderType.Vector
34
+ self.resolution = 150
35
+ self.rgb_legend_resolution = 20
36
+ self.spool_cmd_lg = ''
37
+ self.spool_cmd_ps_color = ''
38
+ self.spool_cmd_ps_mono = ''
39
+ self.use_latin1_fonts = True
40
+
41
+ @property
42
+ def driver(self):
43
+ return self._get_style(PrinterDriver, sv.DRIVER)
44
+
45
+ @driver.setter
46
+ def driver(self, value):
47
+ if not _IS_WINDOWS:
48
+ if value is not None:
49
+ self._set_style(PrinterDriver(value), sv.DRIVER)
50
+
51
+ @property
52
+ def extra_precision(self):
53
+ return self._get_style(int, sv.PRECISION)
54
+
55
+ @extra_precision.setter
56
+ def extra_precision(self, value):
57
+ if value is not None:
58
+ self._set_style(int(value), sv.PRECISION)
59
+
60
+ @property
61
+ def filename(self):
62
+ return self._get_style(str, sv.PRINTFNAME)
63
+
64
+ @filename.setter
65
+ def filename(self, value):
66
+ if value is not None:
67
+ self._set_style(str(tecutil.normalize_path(value)), sv.PRINTFNAME)
68
+
69
+ @property
70
+ def force_extra_3d_sorting(self):
71
+ return self._get_style(bool, sv.FORCEEXTRA3DSORTING)
72
+
73
+ @force_extra_3d_sorting.setter
74
+ def force_extra_3d_sorting(self, value):
75
+ if value is not None:
76
+ self._set_style(bool(value), sv.FORCEEXTRA3DSORTING)
77
+
78
+ @property
79
+ def lg_mopup(self):
80
+ return self._get_style(str, sv.JOBCONTROL, sv.LGMOPUPSTR)
81
+
82
+ @lg_mopup.setter
83
+ def lg_mopup(self, value):
84
+ if not _IS_WINDOWS:
85
+ if value is not None:
86
+ self._set_style(str(value), sv.JOBCONTROL, sv.LGMOPUPSTR)
87
+
88
+ @property
89
+ def lg_setup(self):
90
+ return self._get_style(str, sv.JOBCONTROL, sv.LGSETUPSTR)
91
+
92
+ @lg_setup.setter
93
+ def lg_setup(self, value):
94
+ if not _IS_WINDOWS:
95
+ if value is not None:
96
+ self._set_style(str(value), sv.JOBCONTROL, sv.LGSETUPSTR)
97
+
98
+ @property
99
+ def num_copies(self):
100
+ return self._get_style(int, sv.NUMHARDCOPYCOPIES)
101
+
102
+ @num_copies.setter
103
+ def num_copies(self, value):
104
+ if value is not None:
105
+ self._set_style(int(value), sv.NUMHARDCOPYCOPIES)
106
+
107
+ @property
108
+ def num_shades(self):
109
+ return self._get_style(int, sv.NUMLIGHTSOURCESHADES)
110
+
111
+ @num_shades.setter
112
+ def num_shades(self, value):
113
+ if value is not None:
114
+ self._set_style(int(value), sv.NUMLIGHTSOURCESHADES)
115
+
116
+ @property
117
+ def palette(self):
118
+ return self._get_style(Palette, sv.PALETTE)
119
+
120
+ @palette.setter
121
+ def palette(self, value):
122
+ if value is not None:
123
+ self._set_style(Palette(value), sv.PALETTE)
124
+
125
+ @property
126
+ def post_mopup(self):
127
+ return self._get_style(str, sv.JOBCONTROL, sv.POSTMOPUPSTR)
128
+
129
+ @post_mopup.setter
130
+ def post_mopup(self, value):
131
+ if not _IS_WINDOWS:
132
+ if value is not None:
133
+ self._set_style(str(value), sv.JOBCONTROL, sv.POSTMOPUPSTR)
134
+
135
+ @property
136
+ def post_setup(self):
137
+ return self._get_style(str, sv.JOBCONTROL, sv.POSTSETUPSTR)
138
+
139
+ @post_setup.setter
140
+ def post_setup(self, value):
141
+ if not _IS_WINDOWS:
142
+ if value is not None:
143
+ self._set_style(str(value), sv.JOBCONTROL, sv.POSTSETUPSTR)
144
+
145
+ @property
146
+ def print_to_file(self):
147
+ return self._get_style(bool, sv.SENDPRINTTOFILE)
148
+
149
+ @print_to_file.setter
150
+ def print_to_file(self, value):
151
+ if value is not None:
152
+ self._set_style(bool(value), sv.SENDPRINTTOFILE)
153
+
154
+ @property
155
+ def render_type(self):
156
+ return self._get_style(PrintRenderType, sv.PRINTRENDERTYPE)
157
+
158
+ @render_type.setter
159
+ def render_type(self, value):
160
+ if value is not None:
161
+ self._set_style(PrintRenderType(value), sv.PRINTRENDERTYPE)
162
+
163
+ @property
164
+ def resolution(self):
165
+ return self._get_style(int, sv.IMAGERESOLUTION)
166
+
167
+ @resolution.setter
168
+ def resolution(self, value):
169
+ if value is not None:
170
+ self._set_style(int(value), sv.IMAGERESOLUTION)
171
+
172
+ @property
173
+ def rgb_legend_resolution(self):
174
+ return self._get_style(int, sv.RGBLEGENDOUTPUTRESOLUTION)
175
+
176
+ @rgb_legend_resolution.setter
177
+ def rgb_legend_resolution(self, value):
178
+ if value is not None:
179
+ self._set_style(int(value), sv.RGBLEGENDOUTPUTRESOLUTION)
180
+
181
+ @property
182
+ def spool_cmd_lg(self):
183
+ return self._get_style(str, sv.SPOOLER, sv.LGSPOOLCMD)
184
+
185
+ @spool_cmd_lg.setter
186
+ def spool_cmd_lg(self, value):
187
+ if not _IS_WINDOWS:
188
+ if value is not None:
189
+ self._set_style(str(value), sv.SPOOLER, sv.LGSPOOLCMD)
190
+
191
+ @property
192
+ def spool_cmd_ps_color(self):
193
+ return self._get_style(str, sv.SPOOLER, sv.PSCOLORSPOOLCMD)
194
+
195
+ @spool_cmd_ps_color.setter
196
+ def spool_cmd_ps_color(self, value):
197
+ if not _IS_WINDOWS:
198
+ if value is not None:
199
+ self._set_style(str(value), sv.SPOOLER, sv.PSCOLORSPOOLCMD)
200
+
201
+ @property
202
+ def spool_cmd_ps_mono(self):
203
+ return self._get_style(str, sv.SPOOLER, sv.PSMONOSPOOLCMD)
204
+
205
+ @spool_cmd_ps_mono.setter
206
+ def spool_cmd_ps_mono(self, value):
207
+ if not _IS_WINDOWS:
208
+ if value is not None:
209
+ self._set_style(str(value), sv.SPOOLER, sv.PSMONOSPOOLCMD)
210
+
211
+ @property
212
+ def use_latin1_fonts(self):
213
+ return self._get_style(bool, sv.USEISOLATIN1FONTSINPS)
214
+
215
+ @use_latin1_fonts.setter
216
+ def use_latin1_fonts(self, value):
217
+ if value is not None:
218
+ self._set_style(bool(value), sv.USEISOLATIN1FONTSINPS)