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/ProjStubRef.py ADDED
@@ -0,0 +1,388 @@
1
+ from typing import List
2
+ from . import DipsAPI_pb2_grpc
3
+ from . import DipsAPI_pb2
4
+ from .ProjStubVal import ProjStubVal
5
+ from .CumulativeChartViewRef import CumulativeChartViewRef
6
+ from .CumulativeChartViewRef import CumulativeChartViewRef as CumulativeChartView_RefType
7
+ from .CumulativeChartViewVal import CumulativeChartViewVal
8
+ from .DataDescriptorVal import DataDescriptorVal
9
+ from .DataFilterRef import DataFilterRef
10
+ from .FoldEntityInfoRef import FoldEntityInfoRef as FoldEntityInfo_RefType
11
+ from .FoldEntityInfoVal import FoldEntityInfoVal
12
+ from .HistogramChartViewRef import HistogramChartViewRef
13
+ from .HistogramChartViewRef import HistogramChartViewRef as HistogramChartView_RefType
14
+ from .HistogramChartViewVal import HistogramChartViewVal
15
+ from .JointFrequencyChartViewRef import JointFrequencyChartViewRef
16
+ from .JointFrequencyChartViewRef import JointFrequencyChartViewRef as JointFrequencyChartView_RefType
17
+ from .JointFrequencyChartViewVal import JointFrequencyChartViewVal
18
+ from .JointSpacingChartViewRef import JointSpacingChartViewRef
19
+ from .JointSpacingChartViewRef import JointSpacingChartViewRef as JointSpacingChartView_RefType
20
+ from .JointSpacingChartViewVal import JointSpacingChartViewVal
21
+ from .OrientationDataSetRef import OrientationDataSetRef
22
+ from .OrientationDataSetRef import OrientationDataSetRef as OrientationDataSet_RefType
23
+ from .OrientationDataSetVal import OrientationDataSetVal
24
+ from .PlaneEntityInfoRef import PlaneEntityInfoRef as PlaneEntityInfo_RefType
25
+ from .PlaneEntityInfoVal import PlaneEntityInfoVal
26
+ from .ProcessedDataVal import ProcessedDataVal
27
+ from .QualitativeQuantitativeChartViewRef import QualitativeQuantitativeChartViewRef
28
+ from .QualitativeQuantitativeChartViewRef import QualitativeQuantitativeChartViewRef as QualitativeQuantitativeChartView_RefType
29
+ from .QualitativeQuantitativeChartViewVal import QualitativeQuantitativeChartViewVal
30
+ from .RQDAnalysisChartViewRef import RQDAnalysisChartViewRef
31
+ from .RQDAnalysisChartViewRef import RQDAnalysisChartViewRef as RQDAnalysisChartView_RefType
32
+ from .RQDAnalysisChartViewVal import RQDAnalysisChartViewVal
33
+ from .RosetteViewRef import RosetteViewRef
34
+ from .RosetteViewRef import RosetteViewRef as RosetteView_RefType
35
+ from .ScatterChartViewRef import ScatterChartViewRef
36
+ from .ScatterChartViewRef import ScatterChartViewRef as ScatterChartView_RefType
37
+ from .ScatterChartViewVal import ScatterChartViewVal
38
+ from .SetEntityInfoRef import SetEntityInfoRef
39
+ from .SetEntityInfoRef import SetEntityInfoRef as SetEntityInfo_RefType
40
+ from .SetEntityInfoVal import SetEntityInfoVal
41
+ from .Stereonet2DViewRef import Stereonet2DViewRef
42
+ from .Stereonet2DViewRef import Stereonet2DViewRef as Stereonet2DView_RefType
43
+ from .Stereonet3DViewRef import Stereonet3DViewRef
44
+ from .Stereonet3DViewRef import Stereonet3DViewRef as Stereonet3DView_RefType
45
+ from .ValidatableResultVal import ValidatableResultVal
46
+ from .WeightingSettingsVal import WeightingSettingsVal
47
+
48
+ class ProjStubRef:
49
+ def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_ProjStub):
50
+ self.__modelRef = ref
51
+ self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
52
+ self.__channelToConnectOn = channelToConnectOn
53
+ self.__CumulativeChartServicesStubLocal = DipsAPI_pb2_grpc.CumulativeChartServicesStub(channelToConnectOn)
54
+ self.__HistogramServicesStubLocal = DipsAPI_pb2_grpc.HistogramServicesStub(channelToConnectOn)
55
+ self.__JointFrequencyChartServicesStubLocal = DipsAPI_pb2_grpc.JointFrequencyChartServicesStub(channelToConnectOn)
56
+ self.__JointSpacingChartServicesStubLocal = DipsAPI_pb2_grpc.JointSpacingChartServicesStub(channelToConnectOn)
57
+ self.__ProcessedDataManagerStubLocal = DipsAPI_pb2_grpc.ProcessedDataManagerStub(channelToConnectOn)
58
+ self.__ProjStubServiceStubLocal = DipsAPI_pb2_grpc.ProjStubServiceStub(channelToConnectOn)
59
+ self.__QualitativeQuantitativeChartServicesStubLocal = DipsAPI_pb2_grpc.QualitativeQuantitativeChartServicesStub(channelToConnectOn)
60
+ self.__RQDAnalysisChartServicesStubLocal = DipsAPI_pb2_grpc.RQDAnalysisChartServicesStub(channelToConnectOn)
61
+ self.__RosetteServicesStubLocal = DipsAPI_pb2_grpc.RosetteServicesStub(channelToConnectOn)
62
+ self.__ScatterChartServicesStubLocal = DipsAPI_pb2_grpc.ScatterChartServicesStub(channelToConnectOn)
63
+ self.__SetServicesStubLocal = DipsAPI_pb2_grpc.SetServicesStub(channelToConnectOn)
64
+ self.__Stereonet2DServicesStubLocal = DipsAPI_pb2_grpc.Stereonet2DServicesStub(channelToConnectOn)
65
+ self.__Stereonet3DServicesStubLocal = DipsAPI_pb2_grpc.Stereonet3DServicesStub(channelToConnectOn)
66
+
67
+
68
+ def GetValue(self) -> ProjStubVal:
69
+ bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
70
+ ret = DipsAPI_pb2.ProjStub()
71
+ ret.MergeFromString(bytes.data)
72
+ return ProjStubVal.from_proto(ret)
73
+
74
+ def get_model_ref(self):
75
+ """Get the underlying model reference for direct protobuf operations."""
76
+ return self.__modelRef
77
+
78
+ def CreateCumulativeChartView(self, CumulativeChartView: CumulativeChartViewVal) -> CumulativeChartView_RefType:
79
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_CumulativeChartView(This=self.__modelRef, Input1=(CumulativeChartView.to_proto() if hasattr(CumulativeChartView, 'to_proto') else CumulativeChartView))
80
+ ret = self.__CumulativeChartServicesStubLocal.CreateCumulativeChartView(functionParam)
81
+
82
+ return CumulativeChartView_RefType(self.__channelToConnectOn, ret)
83
+
84
+
85
+ def GetCumulativeChartViewList(self) -> List[CumulativeChartViewRef]:
86
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
87
+ ret = self.__CumulativeChartServicesStubLocal.GetCumulativeChartViewList(functionParam)
88
+
89
+ retList=[]
90
+ for item in ret.items:
91
+ retList.append( CumulativeChartViewRef(self.__channelToConnectOn, item) )
92
+ return retList
93
+
94
+
95
+ def CreateHistogramView(self, HistogramChartView: HistogramChartViewVal) -> HistogramChartView_RefType:
96
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_HistogramChartView(This=self.__modelRef, Input1=(HistogramChartView.to_proto() if hasattr(HistogramChartView, 'to_proto') else HistogramChartView))
97
+ ret = self.__HistogramServicesStubLocal.CreateHistogramView(functionParam)
98
+
99
+ return HistogramChartView_RefType(self.__channelToConnectOn, ret)
100
+
101
+
102
+ def GetHistogramViewList(self) -> List[HistogramChartViewRef]:
103
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
104
+ ret = self.__HistogramServicesStubLocal.GetHistogramViewList(functionParam)
105
+
106
+ retList=[]
107
+ for item in ret.items:
108
+ retList.append( HistogramChartViewRef(self.__channelToConnectOn, item) )
109
+ return retList
110
+
111
+
112
+ def CreateJointFrequencyChartView(self, JointFrequencyChartView: JointFrequencyChartViewVal) -> JointFrequencyChartView_RefType:
113
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_JointFrequencyChartView(This=self.__modelRef, Input1=(JointFrequencyChartView.to_proto() if hasattr(JointFrequencyChartView, 'to_proto') else JointFrequencyChartView))
114
+ ret = self.__JointFrequencyChartServicesStubLocal.CreateJointFrequencyChartView(functionParam)
115
+
116
+ return JointFrequencyChartView_RefType(self.__channelToConnectOn, ret)
117
+
118
+
119
+ def GetJointFrequencyChartViewList(self) -> List[JointFrequencyChartViewRef]:
120
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
121
+ ret = self.__JointFrequencyChartServicesStubLocal.GetJointFrequencyChartViewList(functionParam)
122
+
123
+ retList=[]
124
+ for item in ret.items:
125
+ retList.append( JointFrequencyChartViewRef(self.__channelToConnectOn, item) )
126
+ return retList
127
+
128
+
129
+ def CreateJointSpacingChartView(self, JointSpacingChartView: JointSpacingChartViewVal) -> JointSpacingChartView_RefType:
130
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_JointSpacingChartView(This=self.__modelRef, Input1=(JointSpacingChartView.to_proto() if hasattr(JointSpacingChartView, 'to_proto') else JointSpacingChartView))
131
+ ret = self.__JointSpacingChartServicesStubLocal.CreateJointSpacingChartView(functionParam)
132
+
133
+ return JointSpacingChartView_RefType(self.__channelToConnectOn, ret)
134
+
135
+
136
+ def GetJointSpacingChartViewList(self) -> List[JointSpacingChartViewRef]:
137
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
138
+ ret = self.__JointSpacingChartServicesStubLocal.GetJointSpacingChartViewList(functionParam)
139
+
140
+ retList=[]
141
+ for item in ret.items:
142
+ retList.append( JointSpacingChartViewRef(self.__channelToConnectOn, item) )
143
+ return retList
144
+
145
+
146
+ def NumericRequest(self, DataDescriptor: DataDescriptorVal):
147
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_DataDescriptor(This=self.__modelRef, Input1=(DataDescriptor.to_proto() if hasattr(DataDescriptor, 'to_proto') else DataDescriptor))
148
+ ret = self.__ProcessedDataManagerStubLocal.NumericRequest(functionParam)
149
+
150
+ return ret
151
+
152
+
153
+ def PlanarRequest(self) -> ProcessedDataVal:
154
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
155
+ ret = self.__ProcessedDataManagerStubLocal.PlanarRequest(functionParam)
156
+
157
+ return ProcessedDataVal.from_proto(ret)
158
+
159
+
160
+ def TextRequest(self, DataDescriptor: DataDescriptorVal):
161
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_DataDescriptor(This=self.__modelRef, Input1=(DataDescriptor.to_proto() if hasattr(DataDescriptor, 'to_proto') else DataDescriptor))
162
+ ret = self.__ProcessedDataManagerStubLocal.TextRequest(functionParam)
163
+
164
+ return ret
165
+
166
+
167
+ def AddFold(self, FoldEntityInfo: FoldEntityInfoVal) -> FoldEntityInfo_RefType:
168
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_FoldEntityInfo(This=self.__modelRef, Input1=(FoldEntityInfo.to_proto() if hasattr(FoldEntityInfo, 'to_proto') else FoldEntityInfo))
169
+ ret = self.__ProjStubServiceStubLocal.AddFold(functionParam)
170
+
171
+ if len(ret.Errors) > 0:
172
+ raise ValueError(ret.Errors[0].ErrorMessage)
173
+ return FoldEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
174
+
175
+
176
+ def AddTraverse(self, OrientationDataSet: OrientationDataSetVal) -> OrientationDataSet_RefType:
177
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_OrientationDataSet(This=self.__modelRef, Input1=(OrientationDataSet.to_proto() if hasattr(OrientationDataSet, 'to_proto') else OrientationDataSet))
178
+ ret = self.__ProjStubServiceStubLocal.AddTraverse(functionParam)
179
+
180
+ if len(ret.Errors) > 0:
181
+ raise ValueError(ret.Errors[0].ErrorMessage)
182
+ return OrientationDataSet_RefType(self.__channelToConnectOn, ret.Result)
183
+
184
+
185
+ def AddUserPlane(self, PlaneEntityInfo: PlaneEntityInfoVal) -> PlaneEntityInfo_RefType:
186
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_PlaneEntityInfo(This=self.__modelRef, Input1=(PlaneEntityInfo.to_proto() if hasattr(PlaneEntityInfo, 'to_proto') else PlaneEntityInfo))
187
+ ret = self.__ProjStubServiceStubLocal.AddUserPlane(functionParam)
188
+
189
+ if len(ret.Errors) > 0:
190
+ raise ValueError(ret.Errors[0].ErrorMessage)
191
+ return PlaneEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
192
+
193
+
194
+ def Get2DStereonets(self) -> List[Stereonet2DViewRef]:
195
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
196
+ ret = self.__ProjStubServiceStubLocal.Get2DStereonets(functionParam)
197
+
198
+ retList=[]
199
+ for item in ret.items:
200
+ retList.append( Stereonet2DViewRef(self.__channelToConnectOn, item) )
201
+ return retList
202
+
203
+
204
+ def Get3DStereonets(self) -> List[Stereonet3DViewRef]:
205
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
206
+ ret = self.__ProjStubServiceStubLocal.Get3DStereonets(functionParam)
207
+
208
+ retList=[]
209
+ for item in ret.items:
210
+ retList.append( Stereonet3DViewRef(self.__channelToConnectOn, item) )
211
+ return retList
212
+
213
+
214
+ def GetDataFilters(self) -> List[DataFilterRef]:
215
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
216
+ ret = self.__ProjStubServiceStubLocal.GetDataFilters(functionParam)
217
+
218
+ retList=[]
219
+ for item in ret.items:
220
+ retList.append( DataFilterRef(self.__channelToConnectOn, item) )
221
+ return retList
222
+
223
+
224
+ def GetReportingConvention(self):
225
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
226
+ ret = self.__ProjStubServiceStubLocal.GetReportingConvention(functionParam)
227
+
228
+ return ret
229
+
230
+
231
+ def GetRosettes(self) -> List[RosetteViewRef]:
232
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
233
+ ret = self.__ProjStubServiceStubLocal.GetRosettes(functionParam)
234
+
235
+ retList=[]
236
+ for item in ret.items:
237
+ retList.append( RosetteViewRef(self.__channelToConnectOn, item) )
238
+ return retList
239
+
240
+
241
+ def GetTraverses(self) -> List[OrientationDataSetRef]:
242
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
243
+ ret = self.__ProjStubServiceStubLocal.GetTraverses(functionParam)
244
+
245
+ retList=[]
246
+ for item in ret.items:
247
+ retList.append( OrientationDataSetRef(self.__channelToConnectOn, item) )
248
+ return retList
249
+
250
+
251
+ def GetUnitSystem(self):
252
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
253
+ ret = self.__ProjStubServiceStubLocal.GetUnitSystem(functionParam)
254
+
255
+ return ret
256
+
257
+
258
+ def GetWeightingOptions(self):
259
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
260
+ ret = self.__ProjStubServiceStubLocal.GetWeightingOptions(functionParam)
261
+
262
+ return ret
263
+
264
+
265
+ def RemoveTraverse(self, OrientationDataSet: OrientationDataSet_RefType):
266
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_ProtoReference_OrientationDataSet(This=self.__modelRef, Input1=OrientationDataSet.get_model_ref())
267
+ ret = self.__ProjStubServiceStubLocal.RemoveTraverse(functionParam)
268
+
269
+
270
+ def SaveProject(self, String: str) -> ValidatableResultVal:
271
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_String(This=self.__modelRef, Input1=(DipsAPI_pb2.String(Value=String) if hasattr(DipsAPI_pb2, 'String') else String))
272
+ ret = self.__ProjStubServiceStubLocal.SaveProject(functionParam)
273
+
274
+ return ValidatableResultVal.from_proto(ret)
275
+
276
+
277
+ def SetReportingConvention(self, eOrientationConvention: DipsAPI_pb2.eOrientationConvention):
278
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_eOrientationConvention(This=self.__modelRef, Input1=eOrientationConvention)
279
+ ret = self.__ProjStubServiceStubLocal.SetReportingConvention(functionParam)
280
+
281
+
282
+ def SetUnitSystem(self, eUnitSystem: DipsAPI_pb2.eUnitSystem):
283
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_eUnitSystem(This=self.__modelRef, Input1=eUnitSystem)
284
+ ret = self.__ProjStubServiceStubLocal.SetUnitSystem(functionParam)
285
+
286
+
287
+ def SetWeightingOptions(self, WeightingSettings: WeightingSettingsVal):
288
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_WeightingSettings(This=self.__modelRef, Input1=(WeightingSettings.to_proto() if hasattr(WeightingSettings, 'to_proto') else WeightingSettings))
289
+ ret = self.__ProjStubServiceStubLocal.SetWeightingOptions(functionParam)
290
+
291
+
292
+ def CreateQualitativeQuantitativeChartView(self, QualitativeQuantitativeChartView: QualitativeQuantitativeChartViewVal) -> QualitativeQuantitativeChartView_RefType:
293
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_QualitativeQuantitativeChartView(This=self.__modelRef, Input1=(QualitativeQuantitativeChartView.to_proto() if hasattr(QualitativeQuantitativeChartView, 'to_proto') else QualitativeQuantitativeChartView))
294
+ ret = self.__QualitativeQuantitativeChartServicesStubLocal.CreateQualitativeQuantitativeChartView(functionParam)
295
+
296
+ return QualitativeQuantitativeChartView_RefType(self.__channelToConnectOn, ret)
297
+
298
+
299
+ def GetQualitativeQuantitativeChartViewList(self) -> List[QualitativeQuantitativeChartViewRef]:
300
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
301
+ ret = self.__QualitativeQuantitativeChartServicesStubLocal.GetQualitativeQuantitativeChartViewList(functionParam)
302
+
303
+ retList=[]
304
+ for item in ret.items:
305
+ retList.append( QualitativeQuantitativeChartViewRef(self.__channelToConnectOn, item) )
306
+ return retList
307
+
308
+
309
+ def CreateRQDAnalysisChartView(self, RQDAnalysisChartView: RQDAnalysisChartViewVal) -> RQDAnalysisChartView_RefType:
310
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_RQDAnalysisChartView(This=self.__modelRef, Input1=(RQDAnalysisChartView.to_proto() if hasattr(RQDAnalysisChartView, 'to_proto') else RQDAnalysisChartView))
311
+ ret = self.__RQDAnalysisChartServicesStubLocal.CreateRQDAnalysisChartView(functionParam)
312
+
313
+ return RQDAnalysisChartView_RefType(self.__channelToConnectOn, ret)
314
+
315
+
316
+ def GetRQDAnalysisChartViewList(self) -> List[RQDAnalysisChartViewRef]:
317
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
318
+ ret = self.__RQDAnalysisChartServicesStubLocal.GetRQDAnalysisChartViewList(functionParam)
319
+
320
+ retList=[]
321
+ for item in ret.items:
322
+ retList.append( RQDAnalysisChartViewRef(self.__channelToConnectOn, item) )
323
+ return retList
324
+
325
+
326
+ def CreateRosetteView(self) -> RosetteView_RefType:
327
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
328
+ ret = self.__RosetteServicesStubLocal.CreateRosetteView(functionParam)
329
+
330
+ return RosetteView_RefType(self.__channelToConnectOn, ret)
331
+
332
+
333
+ def CreateScatterChartView(self, ScatterChartView: ScatterChartViewVal) -> ScatterChartView_RefType:
334
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_ScatterChartView(This=self.__modelRef, Input1=(ScatterChartView.to_proto() if hasattr(ScatterChartView, 'to_proto') else ScatterChartView))
335
+ ret = self.__ScatterChartServicesStubLocal.CreateScatterChartView(functionParam)
336
+
337
+ return ScatterChartView_RefType(self.__channelToConnectOn, ret)
338
+
339
+
340
+ def GetScatterChartViewList(self) -> List[ScatterChartViewRef]:
341
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
342
+ ret = self.__ScatterChartServicesStubLocal.GetScatterChartViewList(functionParam)
343
+
344
+ retList=[]
345
+ for item in ret.items:
346
+ retList.append( ScatterChartViewRef(self.__channelToConnectOn, item) )
347
+ return retList
348
+
349
+
350
+ def CreateSetWindow(self, SetEntityInfo: SetEntityInfoVal) -> SetEntityInfo_RefType:
351
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_SetEntityInfo(This=self.__modelRef, Input1=(SetEntityInfo.to_proto() if hasattr(SetEntityInfo, 'to_proto') else SetEntityInfo))
352
+ ret = self.__SetServicesStubLocal.CreateSetWindow(functionParam)
353
+
354
+ if len(ret.Errors) > 0:
355
+ raise ValueError(ret.Errors[0].ErrorMessage)
356
+ return SetEntityInfo_RefType(self.__channelToConnectOn, ret.Result)
357
+
358
+
359
+ def DeleteSet(self, SetEntityInfo: SetEntityInfo_RefType):
360
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub_ProtoReference_SetEntityInfo(This=self.__modelRef, Input1=SetEntityInfo.get_model_ref())
361
+ ret = self.__SetServicesStubLocal.DeleteSet(functionParam)
362
+
363
+
364
+ def GetAllSets(self) -> List[SetEntityInfoRef]:
365
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
366
+ ret = self.__SetServicesStubLocal.GetAllSets(functionParam)
367
+
368
+ retList=[]
369
+ for item in ret.items:
370
+ retList.append( SetEntityInfoRef(self.__channelToConnectOn, item) )
371
+ return retList
372
+
373
+
374
+ def CreateStereonet2DView(self) -> Stereonet2DView_RefType:
375
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
376
+ ret = self.__Stereonet2DServicesStubLocal.CreateStereonet2DView(functionParam)
377
+
378
+ return Stereonet2DView_RefType(self.__channelToConnectOn, ret)
379
+
380
+
381
+ def CreateStereonet3DView(self) -> Stereonet3DView_RefType:
382
+ functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_ProjStub(This=self.__modelRef)
383
+ ret = self.__Stereonet3DServicesStubLocal.CreateStereonet3DView(functionParam)
384
+
385
+ return Stereonet3DView_RefType(self.__channelToConnectOn, ret)
386
+
387
+
388
+
dips/ProjStubVal.py ADDED
@@ -0,0 +1,52 @@
1
+ """Generated wrapper for ProjStub 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
+ class ProjStubVal:
9
+ """Simple wrapper for ProjStub with Pythonic getters and setters."""
10
+
11
+ _proto_class = DipsAPI_pb2.ProjStub
12
+
13
+
14
+ def __init__(self, proto_message: Optional[Any] = None):
15
+ """Initialize the ProjStub wrapper."""
16
+ # Initialize the protobuf message
17
+ if proto_message is not None:
18
+ self._proto_message = proto_message
19
+ else:
20
+ self._proto_message = self._proto_class()
21
+
22
+
23
+
24
+ # Properties
25
+
26
+
27
+ # Utility methods
28
+
29
+ def to_proto(self):
30
+ """Get the underlying protobuf message."""
31
+ return self._proto_message
32
+
33
+ @classmethod
34
+ def from_proto(cls, proto_message):
35
+ """Create wrapper from existing protobuf message."""
36
+ wrapper = cls()
37
+ wrapper._proto_message.CopyFrom(proto_message)
38
+ return wrapper
39
+
40
+ def copy(self):
41
+ """Create a copy of this wrapper."""
42
+ new_wrapper = self.__class__()
43
+ new_wrapper._proto_message.CopyFrom(self._proto_message)
44
+ return new_wrapper
45
+
46
+ def __str__(self) -> str:
47
+ """String representation."""
48
+ return f"{self.__class__.__name__}({self._proto_message})"
49
+
50
+ def __repr__(self) -> str:
51
+ """Detailed string representation."""
52
+ return f"{self.__class__.__name__}({self._proto_message})"
@@ -0,0 +1,108 @@
1
+
2
+ class _ProtobufListWrapper:
3
+ def __init__(self, proto_field, wrapper_class=None):
4
+ self._proto_field = proto_field
5
+ self._wrapper_class = wrapper_class
6
+ def __getitem__(self, index):
7
+ if self._wrapper_class:
8
+ return self._wrapper_class(proto_message=self._proto_field[index])
9
+ else:
10
+ return self._proto_field[index]
11
+ def __setitem__(self, index, value):
12
+ if self._wrapper_class and hasattr(value, 'to_proto'):
13
+ self._proto_field[index].CopyFrom(value.to_proto())
14
+ else:
15
+ self._proto_field[index] = value
16
+ def __delitem__(self, index):
17
+ del self._proto_field[index]
18
+ def __len__(self):
19
+ return len(self._proto_field)
20
+ def __iter__(self):
21
+ for i in range(len(self._proto_field)):
22
+ yield self[i]
23
+ def append(self, value):
24
+ if self._wrapper_class and hasattr(value, 'to_proto'):
25
+ new_item = self._proto_field.add()
26
+ new_item.CopyFrom(value.to_proto())
27
+ else:
28
+ self._proto_field.append(value)
29
+ def extend(self, values):
30
+ for value in values:
31
+ self.append(value)
32
+ def insert(self, index, value):
33
+ if self._wrapper_class and hasattr(value, 'to_proto'):
34
+ new_item = self._proto_field.add()
35
+ new_item.CopyFrom(value.to_proto())
36
+ for i in range(len(self._proto_field) - 1, index, -1):
37
+ self._proto_field[i].CopyFrom(self._proto_field[i - 1])
38
+ self._proto_field[index].CopyFrom(new_item)
39
+ else:
40
+ self._proto_field.insert(index, value)
41
+ def remove(self, value):
42
+ if self._wrapper_class and hasattr(value, 'to_proto'):
43
+ for i in range(len(self._proto_field)):
44
+ if self._proto_field[i] == value.to_proto():
45
+ del self._proto_field[i]
46
+ return
47
+ else:
48
+ self._proto_field.remove(value)
49
+ def clear(self):
50
+ self._proto_field.clear()
51
+ def __str__(self):
52
+ return str(list(self))
53
+ def __repr__(self):
54
+ return repr(list(self))
55
+
56
+ class _ProtobufMapWrapper:
57
+ def __init__(self, proto_field):
58
+ self._proto_field = proto_field
59
+ def __getitem__(self, key):
60
+ return self._proto_field[key]
61
+ def __setitem__(self, key, value):
62
+ self._proto_field[key] = value
63
+ def __delitem__(self, key):
64
+ del self._proto_field[key]
65
+ def __len__(self):
66
+ return len(self._proto_field)
67
+ def __iter__(self):
68
+ return iter(self._proto_field)
69
+ def __contains__(self, key):
70
+ return key in self._proto_field
71
+ def keys(self):
72
+ return self._proto_field.keys()
73
+ def values(self):
74
+ return self._proto_field.values()
75
+ def items(self):
76
+ return self._proto_field.items()
77
+ def get(self, key, default=None):
78
+ return self._proto_field.get(key, default)
79
+ def update(self, other):
80
+ if hasattr(other, 'items'):
81
+ for key, value in other.items():
82
+ self._proto_field[key] = value
83
+ else:
84
+ for key, value in other:
85
+ self._proto_field[key] = value
86
+ def clear(self):
87
+ self._proto_field.clear()
88
+ def pop(self, key, default=None):
89
+ if key in self._proto_field:
90
+ value = self._proto_field[key]
91
+ del self._proto_field[key]
92
+ return value
93
+ return default
94
+ def popitem(self):
95
+ if not self._proto_field:
96
+ raise KeyError('popitem(): dictionary is empty')
97
+ key = next(iter(self._proto_field))
98
+ value = self._proto_field[key]
99
+ del self._proto_field[key]
100
+ return key, value
101
+ def setdefault(self, key, default=None):
102
+ if key not in self._proto_field:
103
+ self._proto_field[key] = default
104
+ return self._proto_field[key]
105
+ def __str__(self):
106
+ return str(dict(self._proto_field))
107
+ def __repr__(self):
108
+ return repr(dict(self._proto_field))