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
dips/RosetteViewRef.py ADDED
@@ -0,0 +1,296 @@
1
+ from typing import List
2
+ from . import DipsAPI_pb2_grpc
3
+ from . import DipsAPI_pb2
4
+ from .RosetteViewVal import RosetteViewVal
5
+ from .ArrowToolEntityInfoRef import ArrowToolEntityInfoRef
6
+ from .ArrowToolEntityInfoRef import ArrowToolEntityInfoRef as ArrowToolEntityInfo_RefType
7
+ from .ArrowToolEntityInfoVal import ArrowToolEntityInfoVal
8
+ from .DataFilterRef import DataFilterRef as DataFilter_RefType
9
+ from .EllipseToolEntityInfoRef import EllipseToolEntityInfoRef
10
+ from .EllipseToolEntityInfoRef import EllipseToolEntityInfoRef as EllipseToolEntityInfo_RefType
11
+ from .EllipseToolEntityInfoVal import EllipseToolEntityInfoVal
12
+ from .LineToolEntityInfoRef import LineToolEntityInfoRef
13
+ from .LineToolEntityInfoRef import LineToolEntityInfoRef as LineToolEntityInfo_RefType
14
+ from .LineToolEntityInfoVal import LineToolEntityInfoVal
15
+ from .PlaneEntityVisibilityRef import PlaneEntityVisibilityRef
16
+ from .PolygonToolEntityInfoRef import PolygonToolEntityInfoRef
17
+ from .PolygonToolEntityInfoRef import PolygonToolEntityInfoRef as PolygonToolEntityInfo_RefType
18
+ from .PolygonToolEntityInfoVal import PolygonToolEntityInfoVal
19
+ from .PolylineToolEntityInfoRef import PolylineToolEntityInfoRef
20
+ from .PolylineToolEntityInfoRef import PolylineToolEntityInfoRef as PolylineToolEntityInfo_RefType
21
+ from .PolylineToolEntityInfoVal import PolylineToolEntityInfoVal
22
+ from .RectangleToolEntityInfoRef import RectangleToolEntityInfoRef
23
+ from .RectangleToolEntityInfoRef import RectangleToolEntityInfoRef as RectangleToolEntityInfo_RefType
24
+ from .RectangleToolEntityInfoVal import RectangleToolEntityInfoVal
25
+ from .RosetteSettingsVal import RosetteSettingsVal
26
+ from .StereonetProjectionModeVal import StereonetProjectionModeVal
27
+ from .TextToolEntityInfoRef import TextToolEntityInfoRef
28
+ from .TextToolEntityInfoRef import TextToolEntityInfoRef as TextToolEntityInfo_RefType
29
+ from .TextToolEntityInfoVal import TextToolEntityInfoVal
30
+ from .TrendLineToolEntityInfoRef import TrendLineToolEntityInfoRef
31
+ from .TrendLineToolEntityInfoRef import TrendLineToolEntityInfoRef as TrendLineToolEntityInfo_RefType
32
+ from .TrendLineToolEntityInfoVal import TrendLineToolEntityInfoVal
33
+ from .ValidatableResultVal import ValidatableResultVal
34
+
35
+ class RosetteViewRef:
36
+ def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_RosetteView):
37
+ self.__modelRef = ref
38
+ self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
39
+ self.__channelToConnectOn = channelToConnectOn
40
+ self.__RosetteServicesStubLocal = DipsAPI_pb2_grpc.RosetteServicesStub(channelToConnectOn)
41
+
42
+
43
+ def GetValue(self) -> RosetteViewVal:
44
+ bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
45
+ ret = DipsAPI_pb2.RosetteView()
46
+ ret.MergeFromString(bytes.data)
47
+ return RosetteViewVal.from_proto(ret)
48
+
49
+ def get_model_ref(self):
50
+ """Get the underlying model reference for direct protobuf operations."""
51
+ return self.__modelRef
52
+
53
+ def AddRosetteArrowTool(self, ArrowToolEntityInfo: ArrowToolEntityInfoVal) -> ArrowToolEntityInfo_RefType:
54
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_ArrowToolEntityInfo(This=self.__modelRef, Input1=(ArrowToolEntityInfo.to_proto() if hasattr(ArrowToolEntityInfo, 'to_proto') else ArrowToolEntityInfo))
55
+ ret = self.__RosetteServicesStubLocal.AddRosetteArrowTool(functionParam)
56
+
57
+ if len(ret.Errors) > 0:
58
+ raise ValueError(ret.Errors[0].ErrorMessage)
59
+ return ArrowToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
60
+
61
+
62
+ def AddRosetteEllipseTool(self, EllipseToolEntityInfo: EllipseToolEntityInfoVal) -> EllipseToolEntityInfo_RefType:
63
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_EllipseToolEntityInfo(This=self.__modelRef, Input1=(EllipseToolEntityInfo.to_proto() if hasattr(EllipseToolEntityInfo, 'to_proto') else EllipseToolEntityInfo))
64
+ ret = self.__RosetteServicesStubLocal.AddRosetteEllipseTool(functionParam)
65
+
66
+ if len(ret.Errors) > 0:
67
+ raise ValueError(ret.Errors[0].ErrorMessage)
68
+ return EllipseToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
69
+
70
+
71
+ def AddRosetteLineTool(self, LineToolEntityInfo: LineToolEntityInfoVal) -> LineToolEntityInfo_RefType:
72
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_LineToolEntityInfo(This=self.__modelRef, Input1=(LineToolEntityInfo.to_proto() if hasattr(LineToolEntityInfo, 'to_proto') else LineToolEntityInfo))
73
+ ret = self.__RosetteServicesStubLocal.AddRosetteLineTool(functionParam)
74
+
75
+ if len(ret.Errors) > 0:
76
+ raise ValueError(ret.Errors[0].ErrorMessage)
77
+ return LineToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
78
+
79
+
80
+ def AddRosettePolygonTool(self, PolygonToolEntityInfo: PolygonToolEntityInfoVal) -> PolygonToolEntityInfo_RefType:
81
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_PolygonToolEntityInfo(This=self.__modelRef, Input1=(PolygonToolEntityInfo.to_proto() if hasattr(PolygonToolEntityInfo, 'to_proto') else PolygonToolEntityInfo))
82
+ ret = self.__RosetteServicesStubLocal.AddRosettePolygonTool(functionParam)
83
+
84
+ if len(ret.Errors) > 0:
85
+ raise ValueError(ret.Errors[0].ErrorMessage)
86
+ return PolygonToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
87
+
88
+
89
+ def AddRosettePolylineTool(self, PolylineToolEntityInfo: PolylineToolEntityInfoVal) -> PolylineToolEntityInfo_RefType:
90
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_PolylineToolEntityInfo(This=self.__modelRef, Input1=(PolylineToolEntityInfo.to_proto() if hasattr(PolylineToolEntityInfo, 'to_proto') else PolylineToolEntityInfo))
91
+ ret = self.__RosetteServicesStubLocal.AddRosettePolylineTool(functionParam)
92
+
93
+ if len(ret.Errors) > 0:
94
+ raise ValueError(ret.Errors[0].ErrorMessage)
95
+ return PolylineToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
96
+
97
+
98
+ def AddRosetteRectangleTool(self, RectangleToolEntityInfo: RectangleToolEntityInfoVal) -> RectangleToolEntityInfo_RefType:
99
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_RectangleToolEntityInfo(This=self.__modelRef, Input1=(RectangleToolEntityInfo.to_proto() if hasattr(RectangleToolEntityInfo, 'to_proto') else RectangleToolEntityInfo))
100
+ ret = self.__RosetteServicesStubLocal.AddRosetteRectangleTool(functionParam)
101
+
102
+ if len(ret.Errors) > 0:
103
+ raise ValueError(ret.Errors[0].ErrorMessage)
104
+ return RectangleToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
105
+
106
+
107
+ def AddRosetteTextTool(self, TextToolEntityInfo: TextToolEntityInfoVal) -> TextToolEntityInfo_RefType:
108
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_TextToolEntityInfo(This=self.__modelRef, Input1=(TextToolEntityInfo.to_proto() if hasattr(TextToolEntityInfo, 'to_proto') else TextToolEntityInfo))
109
+ ret = self.__RosetteServicesStubLocal.AddRosetteTextTool(functionParam)
110
+
111
+ if len(ret.Errors) > 0:
112
+ raise ValueError(ret.Errors[0].ErrorMessage)
113
+ return TextToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
114
+
115
+
116
+ def AddRosetteTrendLineTool(self, TrendLineToolEntityInfo: TrendLineToolEntityInfoVal) -> TrendLineToolEntityInfo_RefType:
117
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_TrendLineToolEntityInfo(This=self.__modelRef, Input1=(TrendLineToolEntityInfo.to_proto() if hasattr(TrendLineToolEntityInfo, 'to_proto') else TrendLineToolEntityInfo))
118
+ ret = self.__RosetteServicesStubLocal.AddRosetteTrendLineTool(functionParam)
119
+
120
+ if len(ret.Errors) > 0:
121
+ raise ValueError(ret.Errors[0].ErrorMessage)
122
+ return TrendLineToolEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
123
+
124
+
125
+ def CloseRosetteView(self):
126
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
127
+ ret = self.__RosetteServicesStubLocal.CloseRosetteView(functionParam)
128
+
129
+
130
+ def GetActiveDataFilter(self) -> DataFilter_RefType:
131
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
132
+ ret = self.__RosetteServicesStubLocal.GetActiveDataFilter(functionParam)
133
+
134
+ return DataFilter_RefType(self.__channelToConnectOn, ret)
135
+
136
+
137
+ def GetRosetteArrowTools(self) -> List[ArrowToolEntityInfoRef]:
138
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
139
+ ret = self.__RosetteServicesStubLocal.GetRosetteArrowTools(functionParam)
140
+
141
+ retList=[]
142
+ for item in ret.items:
143
+ retList.append( ArrowToolEntityInfoRef(self.__channelToConnectOn, item) )
144
+ return retList
145
+
146
+
147
+ def GetRosetteEllipseTools(self) -> List[EllipseToolEntityInfoRef]:
148
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
149
+ ret = self.__RosetteServicesStubLocal.GetRosetteEllipseTools(functionParam)
150
+
151
+ retList=[]
152
+ for item in ret.items:
153
+ retList.append( EllipseToolEntityInfoRef(self.__channelToConnectOn, item) )
154
+ return retList
155
+
156
+
157
+ def GetRosetteLineTools(self) -> List[LineToolEntityInfoRef]:
158
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
159
+ ret = self.__RosetteServicesStubLocal.GetRosetteLineTools(functionParam)
160
+
161
+ retList=[]
162
+ for item in ret.items:
163
+ retList.append( LineToolEntityInfoRef(self.__channelToConnectOn, item) )
164
+ return retList
165
+
166
+
167
+ def GetRosettePolygonTools(self) -> List[PolygonToolEntityInfoRef]:
168
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
169
+ ret = self.__RosetteServicesStubLocal.GetRosettePolygonTools(functionParam)
170
+
171
+ retList=[]
172
+ for item in ret.items:
173
+ retList.append( PolygonToolEntityInfoRef(self.__channelToConnectOn, item) )
174
+ return retList
175
+
176
+
177
+ def GetRosettePolylineTools(self) -> List[PolylineToolEntityInfoRef]:
178
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
179
+ ret = self.__RosetteServicesStubLocal.GetRosettePolylineTools(functionParam)
180
+
181
+ retList=[]
182
+ for item in ret.items:
183
+ retList.append( PolylineToolEntityInfoRef(self.__channelToConnectOn, item) )
184
+ return retList
185
+
186
+
187
+ def GetRosetteRectangleTools(self) -> List[RectangleToolEntityInfoRef]:
188
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
189
+ ret = self.__RosetteServicesStubLocal.GetRosetteRectangleTools(functionParam)
190
+
191
+ retList=[]
192
+ for item in ret.items:
193
+ retList.append( RectangleToolEntityInfoRef(self.__channelToConnectOn, item) )
194
+ return retList
195
+
196
+
197
+ def GetRosetteTextTools(self) -> List[TextToolEntityInfoRef]:
198
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
199
+ ret = self.__RosetteServicesStubLocal.GetRosetteTextTools(functionParam)
200
+
201
+ retList=[]
202
+ for item in ret.items:
203
+ retList.append( TextToolEntityInfoRef(self.__channelToConnectOn, item) )
204
+ return retList
205
+
206
+
207
+ def GetRosetteTrendLineTools(self) -> List[TrendLineToolEntityInfoRef]:
208
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
209
+ ret = self.__RosetteServicesStubLocal.GetRosetteTrendLineTools(functionParam)
210
+
211
+ retList=[]
212
+ for item in ret.items:
213
+ retList.append( TrendLineToolEntityInfoRef(self.__channelToConnectOn, item) )
214
+ return retList
215
+
216
+
217
+ def GetUserPlaneEntityVisibilities(self) -> List[PlaneEntityVisibilityRef]:
218
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView(This=self.__modelRef)
219
+ ret = self.__RosetteServicesStubLocal.GetUserPlaneEntityVisibilities(functionParam)
220
+
221
+ retList=[]
222
+ for item in ret.items:
223
+ retList.append( PlaneEntityVisibilityRef(self.__channelToConnectOn, item) )
224
+ return retList
225
+
226
+
227
+ def SetActiveDataFilter(self, DataFilter: DataFilter_RefType):
228
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_ProtoReference_DataFilter(This=self.__modelRef, Input1=DataFilter.get_model_ref())
229
+ ret = self.__RosetteServicesStubLocal.SetActiveDataFilter(functionParam)
230
+
231
+
232
+ def SetArrowToolEntityGroupVisibility(self, Boolean: bool):
233
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
234
+ ret = self.__RosetteServicesStubLocal.SetArrowToolEntityGroupVisibility(functionParam)
235
+
236
+
237
+ def SetEllipseToolEntityGroupVisibility(self, Boolean: bool):
238
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
239
+ ret = self.__RosetteServicesStubLocal.SetEllipseToolEntityGroupVisibility(functionParam)
240
+
241
+
242
+ def SetLineToolEntityGroupVisibility(self, Boolean: bool):
243
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
244
+ ret = self.__RosetteServicesStubLocal.SetLineToolEntityGroupVisibility(functionParam)
245
+
246
+
247
+ def SetPolygonToolEntityGroupVisibility(self, Boolean: bool):
248
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
249
+ ret = self.__RosetteServicesStubLocal.SetPolygonToolEntityGroupVisibility(functionParam)
250
+
251
+
252
+ def SetPolylineToolEntityGroupVisibility(self, Boolean: bool):
253
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
254
+ ret = self.__RosetteServicesStubLocal.SetPolylineToolEntityGroupVisibility(functionParam)
255
+
256
+
257
+ def SetProjectionMode(self, StereonetProjectionMode: StereonetProjectionModeVal) -> ValidatableResultVal:
258
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_StereonetProjectionMode(This=self.__modelRef, Input1=(StereonetProjectionMode.to_proto() if hasattr(StereonetProjectionMode, 'to_proto') else StereonetProjectionMode))
259
+ ret = self.__RosetteServicesStubLocal.SetProjectionMode(functionParam)
260
+
261
+ return ValidatableResultVal.from_proto(ret)
262
+
263
+
264
+ def SetRectangleToolEntityGroupVisibility(self, Boolean: bool):
265
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
266
+ ret = self.__RosetteServicesStubLocal.SetRectangleToolEntityGroupVisibility(functionParam)
267
+
268
+
269
+ def SetRosetteSettings(self, RosetteSettings: RosetteSettingsVal) -> ValidatableResultVal:
270
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_RosetteSettings(This=self.__modelRef, Input1=(RosetteSettings.to_proto() if hasattr(RosetteSettings, 'to_proto') else RosetteSettings))
271
+ ret = self.__RosetteServicesStubLocal.SetRosetteSettings(functionParam)
272
+
273
+ return ValidatableResultVal.from_proto(ret)
274
+
275
+
276
+ def SetTextToolEntityGroupVisibility(self, Boolean: bool):
277
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
278
+ ret = self.__RosetteServicesStubLocal.SetTextToolEntityGroupVisibility(functionParam)
279
+
280
+
281
+ def SetToolsEntityGroupVisibility(self, Boolean: bool):
282
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
283
+ ret = self.__RosetteServicesStubLocal.SetToolsEntityGroupVisibility(functionParam)
284
+
285
+
286
+ def SetTrendLineToolEntityGroupVisibility(self, Boolean: bool):
287
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
288
+ ret = self.__RosetteServicesStubLocal.SetTrendLineToolEntityGroupVisibility(functionParam)
289
+
290
+
291
+ def SetUserPlaneEntityGroupVisibility(self, Boolean: bool):
292
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_RosetteView_Boolean(This=self.__modelRef, Input1=Boolean)
293
+ ret = self.__RosetteServicesStubLocal.SetUserPlaneEntityGroupVisibility(functionParam)
294
+
295
+
296
+
dips/RosetteViewVal.py ADDED
@@ -0,0 +1,177 @@
1
+ """Generated wrapper for RosetteView 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 .PlaneEntityVisibilityVal import PlaneEntityVisibilityVal
10
+ from .RosettePresetOptionsVal import RosettePresetOptionsVal
11
+ from .RosetteSettingsVal import RosetteSettingsVal
12
+ from .StereonetProjectionModeVal import StereonetProjectionModeVal
13
+ from .DataFilterRef import DataFilterRef
14
+
15
+ class RosetteViewVal:
16
+ """Simple wrapper for RosetteView with Pythonic getters and setters."""
17
+
18
+ _proto_class = DipsAPI_pb2.RosetteView
19
+
20
+
21
+ def __init__(self, rosette_settings: Optional[RosetteSettingsVal] = None, projection_mode: Optional[StereonetProjectionModeVal] = None, preset_options: Optional[RosettePresetOptionsVal] = None, annotative_tools: Optional[AnnotativeTools2DVal] = None, active_filter: Optional[DataFilterRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
22
+ """Initialize the RosetteView wrapper."""
23
+ # Initialize the protobuf message
24
+ if proto_message is not None:
25
+ self._proto_message = proto_message
26
+ else:
27
+ self._proto_message = self._proto_class()
28
+
29
+ # Store channel for reference types
30
+ self.__channelToConnectOn = channel_to_connect_on
31
+
32
+ if rosette_settings is not None:
33
+ self._proto_message.RosetteSettings.CopyFrom(rosette_settings.to_proto())
34
+ self._rosette_settings_wrapper = rosette_settings
35
+ if projection_mode is not None:
36
+ self._proto_message.ProjectionMode.CopyFrom(projection_mode.to_proto())
37
+ self._projection_mode_wrapper = projection_mode
38
+ if preset_options is not None:
39
+ self._proto_message.PresetOptions.CopyFrom(preset_options.to_proto())
40
+ self._preset_options_wrapper = preset_options
41
+ if annotative_tools is not None:
42
+ self._proto_message.AnnotativeTools.CopyFrom(annotative_tools.to_proto())
43
+ self._annotative_tools_wrapper = annotative_tools
44
+ if active_filter is not None:
45
+ self.active_filter = active_filter
46
+
47
+
48
+ # Properties
49
+
50
+ @property
51
+ def view_name(self) -> str:
52
+ """Get the ViewName field value."""
53
+ return self._proto_message.ViewName
54
+
55
+ @view_name.setter
56
+ def view_name(self, value: str) -> None:
57
+ """Set the ViewName field value."""
58
+ self._proto_message.ViewName = value
59
+
60
+
61
+ @property
62
+ def rosette_settings(self) -> RosetteSettingsVal:
63
+ """Get the RosetteSettings field as a wrapper."""
64
+ if not hasattr(self, '_rosette_settings_wrapper'):
65
+ self._rosette_settings_wrapper = RosetteSettingsVal(proto_message=self._proto_message.RosetteSettings)
66
+ return self._rosette_settings_wrapper
67
+
68
+ @rosette_settings.setter
69
+ def rosette_settings(self, value: RosetteSettingsVal) -> None:
70
+ """Set the RosetteSettings field to a wrapper."""
71
+ self._proto_message.RosetteSettings.CopyFrom(value.to_proto())
72
+ # Update the cached wrapper if it exists
73
+ if hasattr(self, '_rosette_settings_wrapper'):
74
+ self._rosette_settings_wrapper._proto_message.CopyFrom(self._proto_message.RosetteSettings)
75
+
76
+
77
+ @property
78
+ def projection_mode(self) -> StereonetProjectionModeVal:
79
+ """Get the ProjectionMode field as a wrapper."""
80
+ if not hasattr(self, '_projection_mode_wrapper'):
81
+ self._projection_mode_wrapper = StereonetProjectionModeVal(proto_message=self._proto_message.ProjectionMode)
82
+ return self._projection_mode_wrapper
83
+
84
+ @projection_mode.setter
85
+ def projection_mode(self, value: StereonetProjectionModeVal) -> None:
86
+ """Set the ProjectionMode field to a wrapper."""
87
+ self._proto_message.ProjectionMode.CopyFrom(value.to_proto())
88
+ # Update the cached wrapper if it exists
89
+ if hasattr(self, '_projection_mode_wrapper'):
90
+ self._projection_mode_wrapper._proto_message.CopyFrom(self._proto_message.ProjectionMode)
91
+
92
+
93
+ @property
94
+ def preset_options(self) -> RosettePresetOptionsVal:
95
+ """Get the PresetOptions field as a wrapper."""
96
+ if not hasattr(self, '_preset_options_wrapper'):
97
+ self._preset_options_wrapper = RosettePresetOptionsVal(proto_message=self._proto_message.PresetOptions)
98
+ return self._preset_options_wrapper
99
+
100
+ @preset_options.setter
101
+ def preset_options(self, value: RosettePresetOptionsVal) -> None:
102
+ """Set the PresetOptions field to a wrapper."""
103
+ self._proto_message.PresetOptions.CopyFrom(value.to_proto())
104
+ # Update the cached wrapper if it exists
105
+ if hasattr(self, '_preset_options_wrapper'):
106
+ self._preset_options_wrapper._proto_message.CopyFrom(self._proto_message.PresetOptions)
107
+
108
+
109
+ @property
110
+ def user_plane_entity_visibilities(self) -> List[PlaneEntityVisibilityVal]:
111
+ """Get the UserPlaneEntityVisibilities field as a list of wrappers."""
112
+ return _ProtobufListWrapper(self._proto_message.UserPlaneEntityVisibilities, PlaneEntityVisibilityVal)
113
+
114
+ @user_plane_entity_visibilities.setter
115
+ def user_plane_entity_visibilities(self, value: List[PlaneEntityVisibilityVal]) -> None:
116
+ """Set the UserPlaneEntityVisibilities field to a list of wrappers."""
117
+ if not isinstance(value, (list, tuple)):
118
+ raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
119
+ # Clear the repeated field using slice assignment
120
+ self._proto_message.UserPlaneEntityVisibilities[:] = []
121
+ for item in value:
122
+ self._proto_message.UserPlaneEntityVisibilities.append(item.to_proto())
123
+
124
+
125
+ @property
126
+ def annotative_tools(self) -> AnnotativeTools2DVal:
127
+ """Get the AnnotativeTools field as a wrapper."""
128
+ if not hasattr(self, '_annotative_tools_wrapper'):
129
+ self._annotative_tools_wrapper = AnnotativeTools2DVal(proto_message=self._proto_message.AnnotativeTools)
130
+ return self._annotative_tools_wrapper
131
+
132
+ @annotative_tools.setter
133
+ def annotative_tools(self, value: AnnotativeTools2DVal) -> None:
134
+ """Set the AnnotativeTools field to a wrapper."""
135
+ self._proto_message.AnnotativeTools.CopyFrom(value.to_proto())
136
+ # Update the cached wrapper if it exists
137
+ if hasattr(self, '_annotative_tools_wrapper'):
138
+ self._annotative_tools_wrapper._proto_message.CopyFrom(self._proto_message.AnnotativeTools)
139
+
140
+
141
+ @property
142
+ def active_filter(self) -> DataFilterRef:
143
+ """Get the ActiveFilter field as a reference."""
144
+ return DataFilterRef(self.__channelToConnectOn, self._proto_message.ActiveFilter)
145
+
146
+ @active_filter.setter
147
+ def active_filter(self, value: DataFilterRef) -> None:
148
+ """Set the ActiveFilter field to a reference."""
149
+ self._proto_message.ActiveFilter.CopyFrom(value.get_model_ref())
150
+
151
+
152
+ # Utility methods
153
+
154
+ def to_proto(self):
155
+ """Get the underlying protobuf message."""
156
+ return self._proto_message
157
+
158
+ @classmethod
159
+ def from_proto(cls, proto_message):
160
+ """Create wrapper from existing protobuf message."""
161
+ wrapper = cls()
162
+ wrapper._proto_message.CopyFrom(proto_message)
163
+ return wrapper
164
+
165
+ def copy(self):
166
+ """Create a copy of this wrapper."""
167
+ new_wrapper = self.__class__()
168
+ new_wrapper._proto_message.CopyFrom(self._proto_message)
169
+ return new_wrapper
170
+
171
+ def __str__(self) -> str:
172
+ """String representation."""
173
+ return f"{self.__class__.__name__}({self._proto_message})"
174
+
175
+ def __repr__(self) -> str:
176
+ """Detailed string representation."""
177
+ return f"{self.__class__.__name__}({self._proto_message})"
@@ -0,0 +1,42 @@
1
+ from typing import List
2
+ from . import DipsAPI_pb2_grpc
3
+ from . import DipsAPI_pb2
4
+ from .ScatterChartViewVal import ScatterChartViewVal
5
+ from .DataFilterRef import DataFilterRef as DataFilter_RefType
6
+
7
+ class ScatterChartViewRef:
8
+ def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_ScatterChartView):
9
+ self.__modelRef = ref
10
+ self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
11
+ self.__channelToConnectOn = channelToConnectOn
12
+ self.__ScatterChartServicesStubLocal = DipsAPI_pb2_grpc.ScatterChartServicesStub(channelToConnectOn)
13
+
14
+
15
+ def GetValue(self) -> ScatterChartViewVal:
16
+ bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
17
+ ret = DipsAPI_pb2.ScatterChartView()
18
+ ret.MergeFromString(bytes.data)
19
+ return ScatterChartViewVal.from_proto(ret)
20
+
21
+ def get_model_ref(self):
22
+ """Get the underlying model reference for direct protobuf operations."""
23
+ return self.__modelRef
24
+
25
+ def CloseScatterChartView(self):
26
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ScatterChartView(This=self.__modelRef)
27
+ ret = self.__ScatterChartServicesStubLocal.CloseScatterChartView(functionParam)
28
+
29
+
30
+ def GetActiveDataFilter(self) -> DataFilter_RefType:
31
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ScatterChartView(This=self.__modelRef)
32
+ ret = self.__ScatterChartServicesStubLocal.GetActiveDataFilter(functionParam)
33
+
34
+ return DataFilter_RefType(self.__channelToConnectOn, ret)
35
+
36
+
37
+ def SetActiveDataFilter(self, DataFilter: DataFilter_RefType):
38
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ScatterChartView_ProtoReference_DataFilter(This=self.__modelRef, Input1=DataFilter.get_model_ref())
39
+ ret = self.__ScatterChartServicesStubLocal.SetActiveDataFilter(functionParam)
40
+
41
+
42
+
@@ -0,0 +1,100 @@
1
+ """Generated wrapper for ScatterChartView 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 .ScatterPlotSettingsVal import ScatterPlotSettingsVal
9
+ from .DataFilterRef import DataFilterRef
10
+
11
+ class ScatterChartViewVal:
12
+ """Simple wrapper for ScatterChartView with Pythonic getters and setters."""
13
+
14
+ _proto_class = DipsAPI_pb2.ScatterChartView
15
+
16
+
17
+ def __init__(self, scatter_plot_settings: Optional[ScatterPlotSettingsVal] = None, active_filter: Optional[DataFilterRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
18
+ """Initialize the ScatterChartView wrapper."""
19
+ # Initialize the protobuf message
20
+ if proto_message is not None:
21
+ self._proto_message = proto_message
22
+ else:
23
+ self._proto_message = self._proto_class()
24
+
25
+ # Store channel for reference types
26
+ self.__channelToConnectOn = channel_to_connect_on
27
+
28
+ if scatter_plot_settings is not None:
29
+ self._proto_message.ScatterPlotSettings.CopyFrom(scatter_plot_settings.to_proto())
30
+ self._scatter_plot_settings_wrapper = scatter_plot_settings
31
+ if active_filter is not None:
32
+ self.active_filter = active_filter
33
+
34
+
35
+ # Properties
36
+
37
+ @property
38
+ def view_name(self) -> str:
39
+ """Get the ViewName field value."""
40
+ return self._proto_message.ViewName
41
+
42
+ @view_name.setter
43
+ def view_name(self, value: str) -> None:
44
+ """Set the ViewName field value."""
45
+ self._proto_message.ViewName = value
46
+
47
+
48
+ @property
49
+ def scatter_plot_settings(self) -> ScatterPlotSettingsVal:
50
+ """Get the ScatterPlotSettings field as a wrapper."""
51
+ if not hasattr(self, '_scatter_plot_settings_wrapper'):
52
+ self._scatter_plot_settings_wrapper = ScatterPlotSettingsVal(proto_message=self._proto_message.ScatterPlotSettings)
53
+ return self._scatter_plot_settings_wrapper
54
+
55
+ @scatter_plot_settings.setter
56
+ def scatter_plot_settings(self, value: ScatterPlotSettingsVal) -> None:
57
+ """Set the ScatterPlotSettings field to a wrapper."""
58
+ self._proto_message.ScatterPlotSettings.CopyFrom(value.to_proto())
59
+ # Update the cached wrapper if it exists
60
+ if hasattr(self, '_scatter_plot_settings_wrapper'):
61
+ self._scatter_plot_settings_wrapper._proto_message.CopyFrom(self._proto_message.ScatterPlotSettings)
62
+
63
+
64
+ @property
65
+ def active_filter(self) -> DataFilterRef:
66
+ """Get the ActiveFilter field as a reference."""
67
+ return DataFilterRef(self.__channelToConnectOn, self._proto_message.ActiveFilter)
68
+
69
+ @active_filter.setter
70
+ def active_filter(self, value: DataFilterRef) -> None:
71
+ """Set the ActiveFilter field to a reference."""
72
+ self._proto_message.ActiveFilter.CopyFrom(value.get_model_ref())
73
+
74
+
75
+ # Utility methods
76
+
77
+ def to_proto(self):
78
+ """Get the underlying protobuf message."""
79
+ return self._proto_message
80
+
81
+ @classmethod
82
+ def from_proto(cls, proto_message):
83
+ """Create wrapper from existing protobuf message."""
84
+ wrapper = cls()
85
+ wrapper._proto_message.CopyFrom(proto_message)
86
+ return wrapper
87
+
88
+ def copy(self):
89
+ """Create a copy of this wrapper."""
90
+ new_wrapper = self.__class__()
91
+ new_wrapper._proto_message.CopyFrom(self._proto_message)
92
+ return new_wrapper
93
+
94
+ def __str__(self) -> str:
95
+ """String representation."""
96
+ return f"{self.__class__.__name__}({self._proto_message})"
97
+
98
+ def __repr__(self) -> str:
99
+ """Detailed string representation."""
100
+ return f"{self.__class__.__name__}({self._proto_message})"