DipsScripting 9.1.0__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 (175) hide show
  1. dips/AnchorPointVal.py +103 -0
  2. dips/AngleDataVal.py +62 -0
  3. dips/AnnotativeTools2DVal.py +273 -0
  4. dips/ApplicationManager.py +89 -0
  5. dips/ArrowToolEntityInfoRef.py +43 -0
  6. dips/ArrowToolEntityInfoVal.py +155 -0
  7. dips/AutomaticClusterAnalysisSettingsVal.py +161 -0
  8. dips/BuiltInDataDescriptors.py +81 -0
  9. dips/BuiltInDataFormatters.py +81 -0
  10. dips/CircularWindowVal.py +103 -0
  11. dips/ClusterWindowVal.py +190 -0
  12. dips/ColorSurrogateVal.py +95 -0
  13. dips/ConeToolEntityInfoRef.py +43 -0
  14. dips/ConeToolEntityInfoVal.py +114 -0
  15. dips/ConeVal.py +92 -0
  16. dips/ContourEntityVisibilityVal.py +132 -0
  17. dips/ContourOptionsVal.py +193 -0
  18. dips/CumulativeChartViewRef.py +42 -0
  19. dips/CumulativeChartViewVal.py +100 -0
  20. dips/CumulativePlotSettingsVal.py +94 -0
  21. dips/CurvedWindowVal.py +102 -0
  22. dips/CustomColumnCollectionVal.py +69 -0
  23. dips/CustomHistogramOptionsVal.py +103 -0
  24. dips/CustomRangeVal.py +84 -0
  25. dips/CustomRowRawDataVal.py +74 -0
  26. dips/DataDescriptorVal.py +83 -0
  27. dips/DataFilterRef.py +23 -0
  28. dips/DataFilterVal.py +73 -0
  29. dips/DataFormatterVal.py +62 -0
  30. dips/DataIdentifierVal.py +62 -0
  31. dips/DipsAPI_pb2.py +817 -0
  32. dips/DipsAPI_pb2_grpc.py +12363 -0
  33. dips/DipsApp.py +81 -0
  34. dips/DiscontinuityDataVal.py +164 -0
  35. dips/EllipseToolEntityInfoRef.py +43 -0
  36. dips/EllipseToolEntityInfoVal.py +153 -0
  37. dips/FillFormatVal.py +83 -0
  38. dips/FoldEntityInfoRef.py +23 -0
  39. dips/FoldEntityInfoVal.py +103 -0
  40. dips/FoldEntityOptionsVal.py +106 -0
  41. dips/FoldEntityVisibilityRef.py +38 -0
  42. dips/FoldEntityVisibilityVal.py +100 -0
  43. dips/FoldWindowEntityInfoVal.py +92 -0
  44. dips/FoldWindowEntityVisibilityRef.py +29 -0
  45. dips/FoldWindowEntityVisibilityVal.py +80 -0
  46. dips/FreehandWindowVal.py +80 -0
  47. dips/FullDataFormatVal.py +92 -0
  48. dips/GlobalPlaneEntityVisibilityVal.py +103 -0
  49. dips/HistogramChartViewRef.py +42 -0
  50. dips/HistogramChartViewVal.py +100 -0
  51. dips/HistogramPlotSettingsVal.py +136 -0
  52. dips/IntersectionEntityVisibilityVal.py +83 -0
  53. dips/IntersectionOptionsVal.py +83 -0
  54. dips/IntervalVal.py +102 -0
  55. dips/JointFrequencyAnalysisSettingsVal.py +102 -0
  56. dips/JointFrequencyChartViewRef.py +42 -0
  57. dips/JointFrequencyChartViewVal.py +100 -0
  58. dips/JointSpacingAnalysisSettingsVal.py +138 -0
  59. dips/JointSpacingChartViewRef.py +42 -0
  60. dips/JointSpacingChartViewVal.py +100 -0
  61. dips/KinematicAnalysisEntityVisibilityVal.py +73 -0
  62. dips/KinematicAnalysisSettingsVal.py +140 -0
  63. dips/LatLongVal.py +84 -0
  64. dips/LengthDataVal.py +83 -0
  65. dips/LineFormatVal.py +83 -0
  66. dips/LineIntersectionCalculatorToolEntityInfoRef.py +43 -0
  67. dips/LineIntersectionCalculatorToolEntityInfoVal.py +133 -0
  68. dips/LineToolEntityInfoRef.py +43 -0
  69. dips/LineToolEntityInfoVal.py +133 -0
  70. dips/LineationVal.py +83 -0
  71. dips/MeasureAngleToolEntityInfoRef.py +43 -0
  72. dips/MeasureAngleToolEntityInfoVal.py +133 -0
  73. dips/OrientationDataSetRef.py +23 -0
  74. dips/OrientationDataSetVal.py +453 -0
  75. dips/PitchGridToolEntityInfoRef.py +43 -0
  76. dips/PitchGridToolEntityInfoVal.py +114 -0
  77. dips/PlaneEntityInfoRef.py +23 -0
  78. dips/PlaneEntityInfoVal.py +92 -0
  79. dips/PlaneEntityVisibilityRef.py +38 -0
  80. dips/PlaneEntityVisibilityVal.py +100 -0
  81. dips/PlaneIntersectionCalculatorToolEntityInfoRef.py +43 -0
  82. dips/PlaneIntersectionCalculatorToolEntityInfoVal.py +133 -0
  83. dips/PlaneOptionsVal.py +117 -0
  84. dips/PlaneVal.py +105 -0
  85. dips/PoleEntityOptionsVal.py +84 -0
  86. dips/PoleEntityVisibilityVal.py +83 -0
  87. dips/PolygonToolEntityInfoRef.py +43 -0
  88. dips/PolygonToolEntityInfoVal.py +131 -0
  89. dips/PolylineToolEntityInfoRef.py +43 -0
  90. dips/PolylineToolEntityInfoVal.py +111 -0
  91. dips/ProcessedDataVal.py +94 -0
  92. dips/ProjStubRef.py +388 -0
  93. dips/ProjStubVal.py +52 -0
  94. dips/ProtobufCollectionWrappers.py +108 -0
  95. dips/QualitativeQuantitativeAnalysisSettingsVal.py +151 -0
  96. dips/QualitativeQuantitativeChartViewRef.py +42 -0
  97. dips/QualitativeQuantitativeChartViewVal.py +111 -0
  98. dips/QuantitativeContourSettingsVal.py +103 -0
  99. dips/RQDAnalysisChartViewRef.py +42 -0
  100. dips/RQDAnalysisChartViewVal.py +100 -0
  101. dips/RQDAnalysisSettingsVal.py +111 -0
  102. dips/RectangleToolEntityInfoRef.py +43 -0
  103. dips/RectangleToolEntityInfoVal.py +153 -0
  104. dips/ReportingConventionResultVal.py +62 -0
  105. dips/RosettePresetOptionsVal.py +227 -0
  106. dips/RosetteSettingsVal.py +174 -0
  107. dips/RosetteViewRef.py +296 -0
  108. dips/RosetteViewVal.py +177 -0
  109. dips/ScatterChartViewRef.py +42 -0
  110. dips/ScatterChartViewVal.py +100 -0
  111. dips/ScatterPlotSettingsVal.py +113 -0
  112. dips/SetEntityInfoRef.py +23 -0
  113. dips/SetEntityInfoVal.py +103 -0
  114. dips/SetEntityOptionsVal.py +133 -0
  115. dips/SetEntityVisibilityRef.py +38 -0
  116. dips/SetEntityVisibilityVal.py +100 -0
  117. dips/SetStatisticsSettingsVal.py +106 -0
  118. dips/SetVersusSetVal.py +82 -0
  119. dips/SetWindowEntityInfoVal.py +183 -0
  120. dips/SetWindowEntityVisibilityRef.py +29 -0
  121. dips/SetWindowEntityVisibilityVal.py +80 -0
  122. dips/StatisticalDistributionFilterVal.py +128 -0
  123. dips/Stereonet2DPresetOptionsVal.py +488 -0
  124. dips/Stereonet2DViewRef.py +612 -0
  125. dips/Stereonet2DViewVal.py +363 -0
  126. dips/Stereonet3DPresetOptionsVal.py +281 -0
  127. dips/Stereonet3DViewRef.py +440 -0
  128. dips/Stereonet3DViewVal.py +303 -0
  129. dips/StereonetOverlayEntityVisibilityVal.py +83 -0
  130. dips/StereonetOverlaySettingsVal.py +103 -0
  131. dips/StereonetProjectionModeVal.py +73 -0
  132. dips/SurveyDataVal.py +103 -0
  133. dips/SymbolDisplaySettingVal.py +124 -0
  134. dips/SymbolicSettingsVal.py +89 -0
  135. dips/TextFormatVal.py +105 -0
  136. dips/TextToolEntityInfoRef.py +43 -0
  137. dips/TextToolEntityInfoVal.py +176 -0
  138. dips/TraverseEntityOptionsVal.py +84 -0
  139. dips/TraverseEntityVisibilityRef.py +38 -0
  140. dips/TraverseEntityVisibilityVal.py +100 -0
  141. dips/TrendLineToolEntityInfoRef.py +43 -0
  142. dips/TrendLineToolEntityInfoVal.py +114 -0
  143. dips/TrendPlungeVal.py +91 -0
  144. dips/UnitSystemResultVal.py +62 -0
  145. dips/UserPlaneEntityOptionsVal.py +100 -0
  146. dips/ValidatableResultVal.py +69 -0
  147. dips/ValidatableResult_ProtoReference_ArrowToolEntityInfoVal.py +86 -0
  148. dips/ValidatableResult_ProtoReference_ConeToolEntityInfoVal.py +86 -0
  149. dips/ValidatableResult_ProtoReference_EllipseToolEntityInfoVal.py +86 -0
  150. dips/ValidatableResult_ProtoReference_FoldEntityInfoVal.py +86 -0
  151. dips/ValidatableResult_ProtoReference_LineIntersectionCalculatorToolEntityInfoVal.py +86 -0
  152. dips/ValidatableResult_ProtoReference_LineToolEntityInfoVal.py +86 -0
  153. dips/ValidatableResult_ProtoReference_MeasureAngleToolEntityInfoVal.py +86 -0
  154. dips/ValidatableResult_ProtoReference_OrientationDataSetVal.py +86 -0
  155. dips/ValidatableResult_ProtoReference_PitchGridToolEntityInfoVal.py +86 -0
  156. dips/ValidatableResult_ProtoReference_PlaneEntityInfoVal.py +86 -0
  157. dips/ValidatableResult_ProtoReference_PlaneIntersectionCalculatorToolEntityInfoVal.py +86 -0
  158. dips/ValidatableResult_ProtoReference_PolygonToolEntityInfoVal.py +86 -0
  159. dips/ValidatableResult_ProtoReference_PolylineToolEntityInfoVal.py +86 -0
  160. dips/ValidatableResult_ProtoReference_RectangleToolEntityInfoVal.py +86 -0
  161. dips/ValidatableResult_ProtoReference_SetEntityInfoVal.py +86 -0
  162. dips/ValidatableResult_ProtoReference_TextToolEntityInfoVal.py +86 -0
  163. dips/ValidatableResult_ProtoReference_TrendLineToolEntityInfoVal.py +86 -0
  164. dips/ValidationErrorVal.py +73 -0
  165. dips/Vector2DVal.py +73 -0
  166. dips/Vector3Val.py +84 -0
  167. dips/VectorDensityContourSettingsVal.py +73 -0
  168. dips/WeightingSettingsVal.py +83 -0
  169. dips/WrappedFreehandWindowVal.py +102 -0
  170. dips/__init__.py +29 -0
  171. dipsscripting-9.1.0.dist-info/METADATA +29 -0
  172. dipsscripting-9.1.0.dist-info/RECORD +175 -0
  173. dipsscripting-9.1.0.dist-info/WHEEL +5 -0
  174. dipsscripting-9.1.0.dist-info/licenses/License.txt +20 -0
  175. dipsscripting-9.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,363 @@
1
+ """Generated wrapper for Stereonet2DView protobuf message."""
2
+
3
+ from typing import Any, Optional, List, Dict
4
+ from . import DipsAPI_pb2
5
+
6
+ from .ProtobufCollectionWrappers import _ProtobufListWrapper, _ProtobufMapWrapper
7
+
8
+ from .AnnotativeTools2DVal import AnnotativeTools2DVal
9
+ from .FoldEntityVisibilityVal import FoldEntityVisibilityVal
10
+ from .FoldWindowEntityVisibilityVal import FoldWindowEntityVisibilityVal
11
+ from .KinematicAnalysisSettingsVal import KinematicAnalysisSettingsVal
12
+ from .PlaneEntityVisibilityVal import PlaneEntityVisibilityVal
13
+ from .QuantitativeContourSettingsVal import QuantitativeContourSettingsVal
14
+ from .SetEntityVisibilityVal import SetEntityVisibilityVal
15
+ from .SetWindowEntityVisibilityVal import SetWindowEntityVisibilityVal
16
+ from .Stereonet2DPresetOptionsVal import Stereonet2DPresetOptionsVal
17
+ from .StereonetProjectionModeVal import StereonetProjectionModeVal
18
+ from .SymbolicSettingsVal import SymbolicSettingsVal
19
+ from .TraverseEntityVisibilityVal import TraverseEntityVisibilityVal
20
+ from .VectorDensityContourSettingsVal import VectorDensityContourSettingsVal
21
+ from .DataFilterRef import DataFilterRef
22
+
23
+ class Stereonet2DViewVal:
24
+ """Simple wrapper for Stereonet2DView with Pythonic getters and setters."""
25
+
26
+ _proto_class = DipsAPI_pb2.Stereonet2DView
27
+
28
+
29
+ def __init__(self, symbolic_settings: Optional[SymbolicSettingsVal] = None, pole_vector_density_contour_settings: Optional[VectorDensityContourSettingsVal] = None, intersection_vector_density_contour_settings: Optional[VectorDensityContourSettingsVal] = None, quantitative_contour_settings: Optional[QuantitativeContourSettingsVal] = None, kinematic_analysis_settings: Optional[KinematicAnalysisSettingsVal] = None, projection_mode: Optional[StereonetProjectionModeVal] = None, preset_options: Optional[Stereonet2DPresetOptionsVal] = None, annotative_tools: Optional[AnnotativeTools2DVal] = None, active_filter: Optional[DataFilterRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
30
+ """Initialize the Stereonet2DView wrapper."""
31
+ # Initialize the protobuf message
32
+ if proto_message is not None:
33
+ self._proto_message = proto_message
34
+ else:
35
+ self._proto_message = self._proto_class()
36
+
37
+ # Store channel for reference types
38
+ self.__channelToConnectOn = channel_to_connect_on
39
+
40
+ if symbolic_settings is not None:
41
+ self._proto_message.SymbolicSettings.CopyFrom(symbolic_settings.to_proto())
42
+ self._symbolic_settings_wrapper = symbolic_settings
43
+ if pole_vector_density_contour_settings is not None:
44
+ self._proto_message.PoleVectorDensityContourSettings.CopyFrom(pole_vector_density_contour_settings.to_proto())
45
+ self._pole_vector_density_contour_settings_wrapper = pole_vector_density_contour_settings
46
+ if intersection_vector_density_contour_settings is not None:
47
+ self._proto_message.IntersectionVectorDensityContourSettings.CopyFrom(intersection_vector_density_contour_settings.to_proto())
48
+ self._intersection_vector_density_contour_settings_wrapper = intersection_vector_density_contour_settings
49
+ if quantitative_contour_settings is not None:
50
+ self._proto_message.QuantitativeContourSettings.CopyFrom(quantitative_contour_settings.to_proto())
51
+ self._quantitative_contour_settings_wrapper = quantitative_contour_settings
52
+ if kinematic_analysis_settings is not None:
53
+ self._proto_message.KinematicAnalysisSettings.CopyFrom(kinematic_analysis_settings.to_proto())
54
+ self._kinematic_analysis_settings_wrapper = kinematic_analysis_settings
55
+ if projection_mode is not None:
56
+ self._proto_message.ProjectionMode.CopyFrom(projection_mode.to_proto())
57
+ self._projection_mode_wrapper = projection_mode
58
+ if preset_options is not None:
59
+ self._proto_message.PresetOptions.CopyFrom(preset_options.to_proto())
60
+ self._preset_options_wrapper = preset_options
61
+ if annotative_tools is not None:
62
+ self._proto_message.AnnotativeTools.CopyFrom(annotative_tools.to_proto())
63
+ self._annotative_tools_wrapper = annotative_tools
64
+ if active_filter is not None:
65
+ self.active_filter = active_filter
66
+
67
+
68
+ # Properties
69
+
70
+ @property
71
+ def view_name(self) -> str:
72
+ """Get the ViewName field value."""
73
+ return self._proto_message.ViewName
74
+
75
+ @view_name.setter
76
+ def view_name(self, value: str) -> None:
77
+ """Set the ViewName field value."""
78
+ self._proto_message.ViewName = value
79
+
80
+
81
+ @property
82
+ def is_weighted(self) -> bool:
83
+ """Get the IsWeighted field value."""
84
+ return self._proto_message.IsWeighted
85
+
86
+ @is_weighted.setter
87
+ def is_weighted(self, value: bool) -> None:
88
+ """Set the IsWeighted field value."""
89
+ self._proto_message.IsWeighted = value
90
+
91
+
92
+ @property
93
+ def vector_mode(self) -> Any:
94
+ """Get the VectorMode field value."""
95
+ return self._proto_message.VectorMode
96
+
97
+ @vector_mode.setter
98
+ def vector_mode(self, value: Any) -> None:
99
+ """Set the VectorMode field value."""
100
+ self._proto_message.VectorMode = value
101
+
102
+
103
+ @property
104
+ def symbolic_settings(self) -> SymbolicSettingsVal:
105
+ """Get the SymbolicSettings field as a wrapper."""
106
+ if not hasattr(self, '_symbolic_settings_wrapper'):
107
+ self._symbolic_settings_wrapper = SymbolicSettingsVal(proto_message=self._proto_message.SymbolicSettings)
108
+ return self._symbolic_settings_wrapper
109
+
110
+ @symbolic_settings.setter
111
+ def symbolic_settings(self, value: SymbolicSettingsVal) -> None:
112
+ """Set the SymbolicSettings field to a wrapper."""
113
+ self._proto_message.SymbolicSettings.CopyFrom(value.to_proto())
114
+ # Update the cached wrapper if it exists
115
+ if hasattr(self, '_symbolic_settings_wrapper'):
116
+ self._symbolic_settings_wrapper._proto_message.CopyFrom(self._proto_message.SymbolicSettings)
117
+
118
+
119
+ @property
120
+ def pole_vector_density_contour_settings(self) -> VectorDensityContourSettingsVal:
121
+ """Get the PoleVectorDensityContourSettings field as a wrapper."""
122
+ if not hasattr(self, '_pole_vector_density_contour_settings_wrapper'):
123
+ self._pole_vector_density_contour_settings_wrapper = VectorDensityContourSettingsVal(proto_message=self._proto_message.PoleVectorDensityContourSettings)
124
+ return self._pole_vector_density_contour_settings_wrapper
125
+
126
+ @pole_vector_density_contour_settings.setter
127
+ def pole_vector_density_contour_settings(self, value: VectorDensityContourSettingsVal) -> None:
128
+ """Set the PoleVectorDensityContourSettings field to a wrapper."""
129
+ self._proto_message.PoleVectorDensityContourSettings.CopyFrom(value.to_proto())
130
+ # Update the cached wrapper if it exists
131
+ if hasattr(self, '_pole_vector_density_contour_settings_wrapper'):
132
+ self._pole_vector_density_contour_settings_wrapper._proto_message.CopyFrom(self._proto_message.PoleVectorDensityContourSettings)
133
+
134
+
135
+ @property
136
+ def intersection_vector_density_contour_settings(self) -> VectorDensityContourSettingsVal:
137
+ """Get the IntersectionVectorDensityContourSettings field as a wrapper."""
138
+ if not hasattr(self, '_intersection_vector_density_contour_settings_wrapper'):
139
+ self._intersection_vector_density_contour_settings_wrapper = VectorDensityContourSettingsVal(proto_message=self._proto_message.IntersectionVectorDensityContourSettings)
140
+ return self._intersection_vector_density_contour_settings_wrapper
141
+
142
+ @intersection_vector_density_contour_settings.setter
143
+ def intersection_vector_density_contour_settings(self, value: VectorDensityContourSettingsVal) -> None:
144
+ """Set the IntersectionVectorDensityContourSettings field to a wrapper."""
145
+ self._proto_message.IntersectionVectorDensityContourSettings.CopyFrom(value.to_proto())
146
+ # Update the cached wrapper if it exists
147
+ if hasattr(self, '_intersection_vector_density_contour_settings_wrapper'):
148
+ self._intersection_vector_density_contour_settings_wrapper._proto_message.CopyFrom(self._proto_message.IntersectionVectorDensityContourSettings)
149
+
150
+
151
+ @property
152
+ def quantitative_contour_settings(self) -> QuantitativeContourSettingsVal:
153
+ """Get the QuantitativeContourSettings field as a wrapper."""
154
+ if not hasattr(self, '_quantitative_contour_settings_wrapper'):
155
+ self._quantitative_contour_settings_wrapper = QuantitativeContourSettingsVal(proto_message=self._proto_message.QuantitativeContourSettings)
156
+ return self._quantitative_contour_settings_wrapper
157
+
158
+ @quantitative_contour_settings.setter
159
+ def quantitative_contour_settings(self, value: QuantitativeContourSettingsVal) -> None:
160
+ """Set the QuantitativeContourSettings field to a wrapper."""
161
+ self._proto_message.QuantitativeContourSettings.CopyFrom(value.to_proto())
162
+ # Update the cached wrapper if it exists
163
+ if hasattr(self, '_quantitative_contour_settings_wrapper'):
164
+ self._quantitative_contour_settings_wrapper._proto_message.CopyFrom(self._proto_message.QuantitativeContourSettings)
165
+
166
+
167
+ @property
168
+ def kinematic_analysis_settings(self) -> KinematicAnalysisSettingsVal:
169
+ """Get the KinematicAnalysisSettings field as a wrapper."""
170
+ if not hasattr(self, '_kinematic_analysis_settings_wrapper'):
171
+ self._kinematic_analysis_settings_wrapper = KinematicAnalysisSettingsVal(proto_message=self._proto_message.KinematicAnalysisSettings)
172
+ return self._kinematic_analysis_settings_wrapper
173
+
174
+ @kinematic_analysis_settings.setter
175
+ def kinematic_analysis_settings(self, value: KinematicAnalysisSettingsVal) -> None:
176
+ """Set the KinematicAnalysisSettings field to a wrapper."""
177
+ self._proto_message.KinematicAnalysisSettings.CopyFrom(value.to_proto())
178
+ # Update the cached wrapper if it exists
179
+ if hasattr(self, '_kinematic_analysis_settings_wrapper'):
180
+ self._kinematic_analysis_settings_wrapper._proto_message.CopyFrom(self._proto_message.KinematicAnalysisSettings)
181
+
182
+
183
+ @property
184
+ def projection_mode(self) -> StereonetProjectionModeVal:
185
+ """Get the ProjectionMode field as a wrapper."""
186
+ if not hasattr(self, '_projection_mode_wrapper'):
187
+ self._projection_mode_wrapper = StereonetProjectionModeVal(proto_message=self._proto_message.ProjectionMode)
188
+ return self._projection_mode_wrapper
189
+
190
+ @projection_mode.setter
191
+ def projection_mode(self, value: StereonetProjectionModeVal) -> None:
192
+ """Set the ProjectionMode field to a wrapper."""
193
+ self._proto_message.ProjectionMode.CopyFrom(value.to_proto())
194
+ # Update the cached wrapper if it exists
195
+ if hasattr(self, '_projection_mode_wrapper'):
196
+ self._projection_mode_wrapper._proto_message.CopyFrom(self._proto_message.ProjectionMode)
197
+
198
+
199
+ @property
200
+ def preset_options(self) -> Stereonet2DPresetOptionsVal:
201
+ """Get the PresetOptions field as a wrapper."""
202
+ if not hasattr(self, '_preset_options_wrapper'):
203
+ self._preset_options_wrapper = Stereonet2DPresetOptionsVal(proto_message=self._proto_message.PresetOptions)
204
+ return self._preset_options_wrapper
205
+
206
+ @preset_options.setter
207
+ def preset_options(self, value: Stereonet2DPresetOptionsVal) -> None:
208
+ """Set the PresetOptions field to a wrapper."""
209
+ self._proto_message.PresetOptions.CopyFrom(value.to_proto())
210
+ # Update the cached wrapper if it exists
211
+ if hasattr(self, '_preset_options_wrapper'):
212
+ self._preset_options_wrapper._proto_message.CopyFrom(self._proto_message.PresetOptions)
213
+
214
+
215
+ @property
216
+ def set_window_entity_visibilities(self) -> List[SetWindowEntityVisibilityVal]:
217
+ """Get the SetWindowEntityVisibilities field as a list of wrappers."""
218
+ return _ProtobufListWrapper(self._proto_message.SetWindowEntityVisibilities, SetWindowEntityVisibilityVal)
219
+
220
+ @set_window_entity_visibilities.setter
221
+ def set_window_entity_visibilities(self, value: List[SetWindowEntityVisibilityVal]) -> None:
222
+ """Set the SetWindowEntityVisibilities field to a list of wrappers."""
223
+ if not isinstance(value, (list, tuple)):
224
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
225
+ # Clear the repeated field using slice assignment
226
+ self._proto_message.SetWindowEntityVisibilities[:] = []
227
+ for item in value:
228
+ self._proto_message.SetWindowEntityVisibilities.append(item.to_proto())
229
+
230
+
231
+ @property
232
+ def mean_set_plane_entity_visibilities(self) -> List[SetEntityVisibilityVal]:
233
+ """Get the MeanSetPlaneEntityVisibilities field as a list of wrappers."""
234
+ return _ProtobufListWrapper(self._proto_message.MeanSetPlaneEntityVisibilities, SetEntityVisibilityVal)
235
+
236
+ @mean_set_plane_entity_visibilities.setter
237
+ def mean_set_plane_entity_visibilities(self, value: List[SetEntityVisibilityVal]) -> None:
238
+ """Set the MeanSetPlaneEntityVisibilities field to a list of wrappers."""
239
+ if not isinstance(value, (list, tuple)):
240
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
241
+ # Clear the repeated field using slice assignment
242
+ self._proto_message.MeanSetPlaneEntityVisibilities[:] = []
243
+ for item in value:
244
+ self._proto_message.MeanSetPlaneEntityVisibilities.append(item.to_proto())
245
+
246
+
247
+ @property
248
+ def user_plane_entity_visibilities(self) -> List[PlaneEntityVisibilityVal]:
249
+ """Get the UserPlaneEntityVisibilities field as a list of wrappers."""
250
+ return _ProtobufListWrapper(self._proto_message.UserPlaneEntityVisibilities, PlaneEntityVisibilityVal)
251
+
252
+ @user_plane_entity_visibilities.setter
253
+ def user_plane_entity_visibilities(self, value: List[PlaneEntityVisibilityVal]) -> None:
254
+ """Set the UserPlaneEntityVisibilities field to a list of wrappers."""
255
+ if not isinstance(value, (list, tuple)):
256
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
257
+ # Clear the repeated field using slice assignment
258
+ self._proto_message.UserPlaneEntityVisibilities[:] = []
259
+ for item in value:
260
+ self._proto_message.UserPlaneEntityVisibilities.append(item.to_proto())
261
+
262
+
263
+ @property
264
+ def traverse_entity_visibilities(self) -> List[TraverseEntityVisibilityVal]:
265
+ """Get the TraverseEntityVisibilities field as a list of wrappers."""
266
+ return _ProtobufListWrapper(self._proto_message.TraverseEntityVisibilities, TraverseEntityVisibilityVal)
267
+
268
+ @traverse_entity_visibilities.setter
269
+ def traverse_entity_visibilities(self, value: List[TraverseEntityVisibilityVal]) -> None:
270
+ """Set the TraverseEntityVisibilities field to a list of wrappers."""
271
+ if not isinstance(value, (list, tuple)):
272
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
273
+ # Clear the repeated field using slice assignment
274
+ self._proto_message.TraverseEntityVisibilities[:] = []
275
+ for item in value:
276
+ self._proto_message.TraverseEntityVisibilities.append(item.to_proto())
277
+
278
+
279
+ @property
280
+ def fold_window_entity_visibilities(self) -> List[FoldWindowEntityVisibilityVal]:
281
+ """Get the FoldWindowEntityVisibilities field as a list of wrappers."""
282
+ return _ProtobufListWrapper(self._proto_message.FoldWindowEntityVisibilities, FoldWindowEntityVisibilityVal)
283
+
284
+ @fold_window_entity_visibilities.setter
285
+ def fold_window_entity_visibilities(self, value: List[FoldWindowEntityVisibilityVal]) -> None:
286
+ """Set the FoldWindowEntityVisibilities field to a list of wrappers."""
287
+ if not isinstance(value, (list, tuple)):
288
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
289
+ # Clear the repeated field using slice assignment
290
+ self._proto_message.FoldWindowEntityVisibilities[:] = []
291
+ for item in value:
292
+ self._proto_message.FoldWindowEntityVisibilities.append(item.to_proto())
293
+
294
+
295
+ @property
296
+ def fold_entity_visibilities(self) -> List[FoldEntityVisibilityVal]:
297
+ """Get the FoldEntityVisibilities field as a list of wrappers."""
298
+ return _ProtobufListWrapper(self._proto_message.FoldEntityVisibilities, FoldEntityVisibilityVal)
299
+
300
+ @fold_entity_visibilities.setter
301
+ def fold_entity_visibilities(self, value: List[FoldEntityVisibilityVal]) -> None:
302
+ """Set the FoldEntityVisibilities field to a list of wrappers."""
303
+ if not isinstance(value, (list, tuple)):
304
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
305
+ # Clear the repeated field using slice assignment
306
+ self._proto_message.FoldEntityVisibilities[:] = []
307
+ for item in value:
308
+ self._proto_message.FoldEntityVisibilities.append(item.to_proto())
309
+
310
+
311
+ @property
312
+ def annotative_tools(self) -> AnnotativeTools2DVal:
313
+ """Get the AnnotativeTools field as a wrapper."""
314
+ if not hasattr(self, '_annotative_tools_wrapper'):
315
+ self._annotative_tools_wrapper = AnnotativeTools2DVal(proto_message=self._proto_message.AnnotativeTools)
316
+ return self._annotative_tools_wrapper
317
+
318
+ @annotative_tools.setter
319
+ def annotative_tools(self, value: AnnotativeTools2DVal) -> None:
320
+ """Set the AnnotativeTools field to a wrapper."""
321
+ self._proto_message.AnnotativeTools.CopyFrom(value.to_proto())
322
+ # Update the cached wrapper if it exists
323
+ if hasattr(self, '_annotative_tools_wrapper'):
324
+ self._annotative_tools_wrapper._proto_message.CopyFrom(self._proto_message.AnnotativeTools)
325
+
326
+
327
+ @property
328
+ def active_filter(self) -> DataFilterRef:
329
+ """Get the ActiveFilter field as a reference."""
330
+ return DataFilterRef(self.__channelToConnectOn, self._proto_message.ActiveFilter)
331
+
332
+ @active_filter.setter
333
+ def active_filter(self, value: DataFilterRef) -> None:
334
+ """Set the ActiveFilter field to a reference."""
335
+ self._proto_message.ActiveFilter.CopyFrom(value.get_model_ref())
336
+
337
+
338
+ # Utility methods
339
+
340
+ def to_proto(self):
341
+ """Get the underlying protobuf message."""
342
+ return self._proto_message
343
+
344
+ @classmethod
345
+ def from_proto(cls, proto_message):
346
+ """Create wrapper from existing protobuf message."""
347
+ wrapper = cls()
348
+ wrapper._proto_message.CopyFrom(proto_message)
349
+ return wrapper
350
+
351
+ def copy(self):
352
+ """Create a copy of this wrapper."""
353
+ new_wrapper = self.__class__()
354
+ new_wrapper._proto_message.CopyFrom(self._proto_message)
355
+ return new_wrapper
356
+
357
+ def __str__(self) -> str:
358
+ """String representation."""
359
+ return f"{self.__class__.__name__}({self._proto_message})"
360
+
361
+ def __repr__(self) -> str:
362
+ """Detailed string representation."""
363
+ return f"{self.__class__.__name__}({self._proto_message})"
@@ -0,0 +1,281 @@
1
+ """Generated wrapper for Stereonet3DPresetOptions protobuf message."""
2
+
3
+ from typing import Any, Optional, List, Dict
4
+ from . import DipsAPI_pb2
5
+
6
+ from .ProtobufCollectionWrappers import _ProtobufListWrapper, _ProtobufMapWrapper
7
+
8
+ from .ContourEntityVisibilityVal import ContourEntityVisibilityVal
9
+ from .GlobalPlaneEntityVisibilityVal import GlobalPlaneEntityVisibilityVal
10
+ from .IntersectionEntityVisibilityVal import IntersectionEntityVisibilityVal
11
+ from .PoleEntityVisibilityVal import PoleEntityVisibilityVal
12
+ from .StereonetOverlayEntityVisibilityVal import StereonetOverlayEntityVisibilityVal
13
+
14
+ class Stereonet3DPresetOptionsVal:
15
+ """Simple wrapper for Stereonet3DPresetOptions with Pythonic getters and setters."""
16
+
17
+ _proto_class = DipsAPI_pb2.Stereonet3DPresetOptions
18
+
19
+
20
+ def __init__(self, pole_entity_visibility: Optional[PoleEntityVisibilityVal] = None, intersection_entity_visibility: Optional[IntersectionEntityVisibilityVal] = None, contour_entity_visibility: Optional[ContourEntityVisibilityVal] = None, global_mean_plane_entity_visibility: Optional[GlobalPlaneEntityVisibilityVal] = None, global_best_fit_plane_entity_visibility: Optional[GlobalPlaneEntityVisibilityVal] = None, stereonet_overlay_entity_visibility: Optional[StereonetOverlayEntityVisibilityVal] = None, proto_message: Optional[Any] = None):
21
+ """Initialize the Stereonet3DPresetOptions wrapper."""
22
+ # Initialize the protobuf message
23
+ if proto_message is not None:
24
+ self._proto_message = proto_message
25
+ else:
26
+ self._proto_message = self._proto_class()
27
+
28
+ if pole_entity_visibility is not None:
29
+ self._proto_message.PoleEntityVisibility.CopyFrom(pole_entity_visibility.to_proto())
30
+ self._pole_entity_visibility_wrapper = pole_entity_visibility
31
+ if intersection_entity_visibility is not None:
32
+ self._proto_message.IntersectionEntityVisibility.CopyFrom(intersection_entity_visibility.to_proto())
33
+ self._intersection_entity_visibility_wrapper = intersection_entity_visibility
34
+ if contour_entity_visibility is not None:
35
+ self._proto_message.ContourEntityVisibility.CopyFrom(contour_entity_visibility.to_proto())
36
+ self._contour_entity_visibility_wrapper = contour_entity_visibility
37
+ if global_mean_plane_entity_visibility is not None:
38
+ self._proto_message.GlobalMeanPlaneEntityVisibility.CopyFrom(global_mean_plane_entity_visibility.to_proto())
39
+ self._global_mean_plane_entity_visibility_wrapper = global_mean_plane_entity_visibility
40
+ if global_best_fit_plane_entity_visibility is not None:
41
+ self._proto_message.GlobalBestFitPlaneEntityVisibility.CopyFrom(global_best_fit_plane_entity_visibility.to_proto())
42
+ self._global_best_fit_plane_entity_visibility_wrapper = global_best_fit_plane_entity_visibility
43
+ if stereonet_overlay_entity_visibility is not None:
44
+ self._proto_message.StereonetOverlayEntityVisibility.CopyFrom(stereonet_overlay_entity_visibility.to_proto())
45
+ self._stereonet_overlay_entity_visibility_wrapper = stereonet_overlay_entity_visibility
46
+
47
+
48
+ # Properties
49
+
50
+ @property
51
+ def pole_entity_visibility(self) -> PoleEntityVisibilityVal:
52
+ """Get the PoleEntityVisibility field as a wrapper."""
53
+ if not hasattr(self, '_pole_entity_visibility_wrapper'):
54
+ self._pole_entity_visibility_wrapper = PoleEntityVisibilityVal(proto_message=self._proto_message.PoleEntityVisibility)
55
+ return self._pole_entity_visibility_wrapper
56
+
57
+ @pole_entity_visibility.setter
58
+ def pole_entity_visibility(self, value: PoleEntityVisibilityVal) -> None:
59
+ """Set the PoleEntityVisibility field to a wrapper."""
60
+ self._proto_message.PoleEntityVisibility.CopyFrom(value.to_proto())
61
+ # Update the cached wrapper if it exists
62
+ if hasattr(self, '_pole_entity_visibility_wrapper'):
63
+ self._pole_entity_visibility_wrapper._proto_message.CopyFrom(self._proto_message.PoleEntityVisibility)
64
+
65
+
66
+ @property
67
+ def intersection_entity_visibility(self) -> IntersectionEntityVisibilityVal:
68
+ """Get the IntersectionEntityVisibility field as a wrapper."""
69
+ if not hasattr(self, '_intersection_entity_visibility_wrapper'):
70
+ self._intersection_entity_visibility_wrapper = IntersectionEntityVisibilityVal(proto_message=self._proto_message.IntersectionEntityVisibility)
71
+ return self._intersection_entity_visibility_wrapper
72
+
73
+ @intersection_entity_visibility.setter
74
+ def intersection_entity_visibility(self, value: IntersectionEntityVisibilityVal) -> None:
75
+ """Set the IntersectionEntityVisibility field to a wrapper."""
76
+ self._proto_message.IntersectionEntityVisibility.CopyFrom(value.to_proto())
77
+ # Update the cached wrapper if it exists
78
+ if hasattr(self, '_intersection_entity_visibility_wrapper'):
79
+ self._intersection_entity_visibility_wrapper._proto_message.CopyFrom(self._proto_message.IntersectionEntityVisibility)
80
+
81
+
82
+ @property
83
+ def contour_entity_visibility(self) -> ContourEntityVisibilityVal:
84
+ """Get the ContourEntityVisibility field as a wrapper."""
85
+ if not hasattr(self, '_contour_entity_visibility_wrapper'):
86
+ self._contour_entity_visibility_wrapper = ContourEntityVisibilityVal(proto_message=self._proto_message.ContourEntityVisibility)
87
+ return self._contour_entity_visibility_wrapper
88
+
89
+ @contour_entity_visibility.setter
90
+ def contour_entity_visibility(self, value: ContourEntityVisibilityVal) -> None:
91
+ """Set the ContourEntityVisibility field to a wrapper."""
92
+ self._proto_message.ContourEntityVisibility.CopyFrom(value.to_proto())
93
+ # Update the cached wrapper if it exists
94
+ if hasattr(self, '_contour_entity_visibility_wrapper'):
95
+ self._contour_entity_visibility_wrapper._proto_message.CopyFrom(self._proto_message.ContourEntityVisibility)
96
+
97
+
98
+ @property
99
+ def set_window_entity_group_visibility(self) -> bool:
100
+ """Get the SetWindowEntityGroupVisibility field value."""
101
+ return self._proto_message.SetWindowEntityGroupVisibility
102
+
103
+ @set_window_entity_group_visibility.setter
104
+ def set_window_entity_group_visibility(self, value: bool) -> None:
105
+ """Set the SetWindowEntityGroupVisibility field value."""
106
+ self._proto_message.SetWindowEntityGroupVisibility = value
107
+
108
+
109
+ @property
110
+ def mean_set_plane_entity_group_visibility(self) -> bool:
111
+ """Get the MeanSetPlaneEntityGroupVisibility field value."""
112
+ return self._proto_message.MeanSetPlaneEntityGroupVisibility
113
+
114
+ @mean_set_plane_entity_group_visibility.setter
115
+ def mean_set_plane_entity_group_visibility(self, value: bool) -> None:
116
+ """Set the MeanSetPlaneEntityGroupVisibility field value."""
117
+ self._proto_message.MeanSetPlaneEntityGroupVisibility = value
118
+
119
+
120
+ @property
121
+ def user_plane_entity_group_visibility(self) -> bool:
122
+ """Get the UserPlaneEntityGroupVisibility field value."""
123
+ return self._proto_message.UserPlaneEntityGroupVisibility
124
+
125
+ @user_plane_entity_group_visibility.setter
126
+ def user_plane_entity_group_visibility(self, value: bool) -> None:
127
+ """Set the UserPlaneEntityGroupVisibility field value."""
128
+ self._proto_message.UserPlaneEntityGroupVisibility = value
129
+
130
+
131
+ @property
132
+ def traverse_entity_group_visibility(self) -> bool:
133
+ """Get the TraverseEntityGroupVisibility field value."""
134
+ return self._proto_message.TraverseEntityGroupVisibility
135
+
136
+ @traverse_entity_group_visibility.setter
137
+ def traverse_entity_group_visibility(self, value: bool) -> None:
138
+ """Set the TraverseEntityGroupVisibility field value."""
139
+ self._proto_message.TraverseEntityGroupVisibility = value
140
+
141
+
142
+ @property
143
+ def fold_window_entity_group_visibility(self) -> bool:
144
+ """Get the FoldWindowEntityGroupVisibility field value."""
145
+ return self._proto_message.FoldWindowEntityGroupVisibility
146
+
147
+ @fold_window_entity_group_visibility.setter
148
+ def fold_window_entity_group_visibility(self, value: bool) -> None:
149
+ """Set the FoldWindowEntityGroupVisibility field value."""
150
+ self._proto_message.FoldWindowEntityGroupVisibility = value
151
+
152
+
153
+ @property
154
+ def fold_entity_group_visibility(self) -> bool:
155
+ """Get the FoldEntityGroupVisibility field value."""
156
+ return self._proto_message.FoldEntityGroupVisibility
157
+
158
+ @fold_entity_group_visibility.setter
159
+ def fold_entity_group_visibility(self, value: bool) -> None:
160
+ """Set the FoldEntityGroupVisibility field value."""
161
+ self._proto_message.FoldEntityGroupVisibility = value
162
+
163
+
164
+ @property
165
+ def global_mean_plane_entity_visibility(self) -> GlobalPlaneEntityVisibilityVal:
166
+ """Get the GlobalMeanPlaneEntityVisibility field as a wrapper."""
167
+ if not hasattr(self, '_global_mean_plane_entity_visibility_wrapper'):
168
+ self._global_mean_plane_entity_visibility_wrapper = GlobalPlaneEntityVisibilityVal(proto_message=self._proto_message.GlobalMeanPlaneEntityVisibility)
169
+ return self._global_mean_plane_entity_visibility_wrapper
170
+
171
+ @global_mean_plane_entity_visibility.setter
172
+ def global_mean_plane_entity_visibility(self, value: GlobalPlaneEntityVisibilityVal) -> None:
173
+ """Set the GlobalMeanPlaneEntityVisibility field to a wrapper."""
174
+ self._proto_message.GlobalMeanPlaneEntityVisibility.CopyFrom(value.to_proto())
175
+ # Update the cached wrapper if it exists
176
+ if hasattr(self, '_global_mean_plane_entity_visibility_wrapper'):
177
+ self._global_mean_plane_entity_visibility_wrapper._proto_message.CopyFrom(self._proto_message.GlobalMeanPlaneEntityVisibility)
178
+
179
+
180
+ @property
181
+ def global_best_fit_plane_entity_visibility(self) -> GlobalPlaneEntityVisibilityVal:
182
+ """Get the GlobalBestFitPlaneEntityVisibility field as a wrapper."""
183
+ if not hasattr(self, '_global_best_fit_plane_entity_visibility_wrapper'):
184
+ self._global_best_fit_plane_entity_visibility_wrapper = GlobalPlaneEntityVisibilityVal(proto_message=self._proto_message.GlobalBestFitPlaneEntityVisibility)
185
+ return self._global_best_fit_plane_entity_visibility_wrapper
186
+
187
+ @global_best_fit_plane_entity_visibility.setter
188
+ def global_best_fit_plane_entity_visibility(self, value: GlobalPlaneEntityVisibilityVal) -> None:
189
+ """Set the GlobalBestFitPlaneEntityVisibility field to a wrapper."""
190
+ self._proto_message.GlobalBestFitPlaneEntityVisibility.CopyFrom(value.to_proto())
191
+ # Update the cached wrapper if it exists
192
+ if hasattr(self, '_global_best_fit_plane_entity_visibility_wrapper'):
193
+ self._global_best_fit_plane_entity_visibility_wrapper._proto_message.CopyFrom(self._proto_message.GlobalBestFitPlaneEntityVisibility)
194
+
195
+
196
+ @property
197
+ def stereonet_overlay_entity_visibility(self) -> StereonetOverlayEntityVisibilityVal:
198
+ """Get the StereonetOverlayEntityVisibility field as a wrapper."""
199
+ if not hasattr(self, '_stereonet_overlay_entity_visibility_wrapper'):
200
+ self._stereonet_overlay_entity_visibility_wrapper = StereonetOverlayEntityVisibilityVal(proto_message=self._proto_message.StereonetOverlayEntityVisibility)
201
+ return self._stereonet_overlay_entity_visibility_wrapper
202
+
203
+ @stereonet_overlay_entity_visibility.setter
204
+ def stereonet_overlay_entity_visibility(self, value: StereonetOverlayEntityVisibilityVal) -> None:
205
+ """Set the StereonetOverlayEntityVisibility field to a wrapper."""
206
+ self._proto_message.StereonetOverlayEntityVisibility.CopyFrom(value.to_proto())
207
+ # Update the cached wrapper if it exists
208
+ if hasattr(self, '_stereonet_overlay_entity_visibility_wrapper'):
209
+ self._stereonet_overlay_entity_visibility_wrapper._proto_message.CopyFrom(self._proto_message.StereonetOverlayEntityVisibility)
210
+
211
+
212
+ @property
213
+ def show_legend(self) -> bool:
214
+ """Get the ShowLegend field value."""
215
+ return self._proto_message.ShowLegend
216
+
217
+ @show_legend.setter
218
+ def show_legend(self, value: bool) -> None:
219
+ """Set the ShowLegend field value."""
220
+ self._proto_message.ShowLegend = value
221
+
222
+
223
+ @property
224
+ def show_properties_legend(self) -> bool:
225
+ """Get the ShowPropertiesLegend field value."""
226
+ return self._proto_message.ShowPropertiesLegend
227
+
228
+ @show_properties_legend.setter
229
+ def show_properties_legend(self, value: bool) -> None:
230
+ """Set the ShowPropertiesLegend field value."""
231
+ self._proto_message.ShowPropertiesLegend = value
232
+
233
+
234
+ @property
235
+ def show_contours_legend(self) -> bool:
236
+ """Get the ShowContoursLegend field value."""
237
+ return self._proto_message.ShowContoursLegend
238
+
239
+ @show_contours_legend.setter
240
+ def show_contours_legend(self, value: bool) -> None:
241
+ """Set the ShowContoursLegend field value."""
242
+ self._proto_message.ShowContoursLegend = value
243
+
244
+
245
+ @property
246
+ def show_major_planes_legend(self) -> bool:
247
+ """Get the ShowMajorPlanesLegend field value."""
248
+ return self._proto_message.ShowMajorPlanesLegend
249
+
250
+ @show_major_planes_legend.setter
251
+ def show_major_planes_legend(self, value: bool) -> None:
252
+ """Set the ShowMajorPlanesLegend field value."""
253
+ self._proto_message.ShowMajorPlanesLegend = value
254
+
255
+
256
+ # Utility methods
257
+
258
+ def to_proto(self):
259
+ """Get the underlying protobuf message."""
260
+ return self._proto_message
261
+
262
+ @classmethod
263
+ def from_proto(cls, proto_message):
264
+ """Create wrapper from existing protobuf message."""
265
+ wrapper = cls()
266
+ wrapper._proto_message.CopyFrom(proto_message)
267
+ return wrapper
268
+
269
+ def copy(self):
270
+ """Create a copy of this wrapper."""
271
+ new_wrapper = self.__class__()
272
+ new_wrapper._proto_message.CopyFrom(self._proto_message)
273
+ return new_wrapper
274
+
275
+ def __str__(self) -> str:
276
+ """String representation."""
277
+ return f"{self.__class__.__name__}({self._proto_message})"
278
+
279
+ def __repr__(self) -> str:
280
+ """Detailed string representation."""
281
+ return f"{self.__class__.__name__}({self._proto_message})"