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.
- dips/AnchorPointVal.py +103 -0
- dips/AngleDataVal.py +62 -0
- dips/AnnotativeTools2DVal.py +273 -0
- dips/ApplicationManager.py +89 -0
- dips/ArrowToolEntityInfoRef.py +43 -0
- dips/ArrowToolEntityInfoVal.py +155 -0
- dips/AutomaticClusterAnalysisSettingsVal.py +161 -0
- dips/BuiltInDataDescriptors.py +81 -0
- dips/BuiltInDataFormatters.py +81 -0
- dips/CircularWindowVal.py +103 -0
- dips/ClusterWindowVal.py +190 -0
- dips/ColorSurrogateVal.py +95 -0
- dips/ConeToolEntityInfoRef.py +43 -0
- dips/ConeToolEntityInfoVal.py +114 -0
- dips/ConeVal.py +92 -0
- dips/ContourEntityVisibilityVal.py +132 -0
- dips/ContourOptionsVal.py +193 -0
- dips/CumulativeChartViewRef.py +42 -0
- dips/CumulativeChartViewVal.py +100 -0
- dips/CumulativePlotSettingsVal.py +94 -0
- dips/CurvedWindowVal.py +102 -0
- dips/CustomColumnCollectionVal.py +69 -0
- dips/CustomHistogramOptionsVal.py +103 -0
- dips/CustomRangeVal.py +84 -0
- dips/CustomRowRawDataVal.py +74 -0
- dips/DataDescriptorVal.py +83 -0
- dips/DataFilterRef.py +23 -0
- dips/DataFilterVal.py +73 -0
- dips/DataFormatterVal.py +62 -0
- dips/DataIdentifierVal.py +62 -0
- dips/DipsAPI_pb2.py +817 -0
- dips/DipsAPI_pb2_grpc.py +12363 -0
- dips/DipsApp.py +81 -0
- dips/DiscontinuityDataVal.py +164 -0
- dips/EllipseToolEntityInfoRef.py +43 -0
- dips/EllipseToolEntityInfoVal.py +153 -0
- dips/FillFormatVal.py +83 -0
- dips/FoldEntityInfoRef.py +23 -0
- dips/FoldEntityInfoVal.py +103 -0
- dips/FoldEntityOptionsVal.py +106 -0
- dips/FoldEntityVisibilityRef.py +38 -0
- dips/FoldEntityVisibilityVal.py +100 -0
- dips/FoldWindowEntityInfoVal.py +92 -0
- dips/FoldWindowEntityVisibilityRef.py +29 -0
- dips/FoldWindowEntityVisibilityVal.py +80 -0
- dips/FreehandWindowVal.py +80 -0
- dips/FullDataFormatVal.py +92 -0
- dips/GlobalPlaneEntityVisibilityVal.py +103 -0
- dips/HistogramChartViewRef.py +42 -0
- dips/HistogramChartViewVal.py +100 -0
- dips/HistogramPlotSettingsVal.py +136 -0
- dips/IntersectionEntityVisibilityVal.py +83 -0
- dips/IntersectionOptionsVal.py +83 -0
- dips/IntervalVal.py +102 -0
- dips/JointFrequencyAnalysisSettingsVal.py +102 -0
- dips/JointFrequencyChartViewRef.py +42 -0
- dips/JointFrequencyChartViewVal.py +100 -0
- dips/JointSpacingAnalysisSettingsVal.py +138 -0
- dips/JointSpacingChartViewRef.py +42 -0
- dips/JointSpacingChartViewVal.py +100 -0
- dips/KinematicAnalysisEntityVisibilityVal.py +73 -0
- dips/KinematicAnalysisSettingsVal.py +140 -0
- dips/LatLongVal.py +84 -0
- dips/LengthDataVal.py +83 -0
- dips/LineFormatVal.py +83 -0
- dips/LineIntersectionCalculatorToolEntityInfoRef.py +43 -0
- dips/LineIntersectionCalculatorToolEntityInfoVal.py +133 -0
- dips/LineToolEntityInfoRef.py +43 -0
- dips/LineToolEntityInfoVal.py +133 -0
- dips/LineationVal.py +83 -0
- dips/MeasureAngleToolEntityInfoRef.py +43 -0
- dips/MeasureAngleToolEntityInfoVal.py +133 -0
- dips/OrientationDataSetRef.py +23 -0
- dips/OrientationDataSetVal.py +453 -0
- dips/PitchGridToolEntityInfoRef.py +43 -0
- dips/PitchGridToolEntityInfoVal.py +114 -0
- dips/PlaneEntityInfoRef.py +23 -0
- dips/PlaneEntityInfoVal.py +92 -0
- dips/PlaneEntityVisibilityRef.py +38 -0
- dips/PlaneEntityVisibilityVal.py +100 -0
- dips/PlaneIntersectionCalculatorToolEntityInfoRef.py +43 -0
- dips/PlaneIntersectionCalculatorToolEntityInfoVal.py +133 -0
- dips/PlaneOptionsVal.py +117 -0
- dips/PlaneVal.py +105 -0
- dips/PoleEntityOptionsVal.py +84 -0
- dips/PoleEntityVisibilityVal.py +83 -0
- dips/PolygonToolEntityInfoRef.py +43 -0
- dips/PolygonToolEntityInfoVal.py +131 -0
- dips/PolylineToolEntityInfoRef.py +43 -0
- dips/PolylineToolEntityInfoVal.py +111 -0
- dips/ProcessedDataVal.py +94 -0
- dips/ProjStubRef.py +388 -0
- dips/ProjStubVal.py +52 -0
- dips/ProtobufCollectionWrappers.py +108 -0
- dips/QualitativeQuantitativeAnalysisSettingsVal.py +151 -0
- dips/QualitativeQuantitativeChartViewRef.py +42 -0
- dips/QualitativeQuantitativeChartViewVal.py +111 -0
- dips/QuantitativeContourSettingsVal.py +103 -0
- dips/RQDAnalysisChartViewRef.py +42 -0
- dips/RQDAnalysisChartViewVal.py +100 -0
- dips/RQDAnalysisSettingsVal.py +111 -0
- dips/RectangleToolEntityInfoRef.py +43 -0
- dips/RectangleToolEntityInfoVal.py +153 -0
- dips/ReportingConventionResultVal.py +62 -0
- dips/RosettePresetOptionsVal.py +227 -0
- dips/RosetteSettingsVal.py +174 -0
- dips/RosetteViewRef.py +296 -0
- dips/RosetteViewVal.py +177 -0
- dips/ScatterChartViewRef.py +42 -0
- dips/ScatterChartViewVal.py +100 -0
- dips/ScatterPlotSettingsVal.py +113 -0
- dips/SetEntityInfoRef.py +23 -0
- dips/SetEntityInfoVal.py +103 -0
- dips/SetEntityOptionsVal.py +133 -0
- dips/SetEntityVisibilityRef.py +38 -0
- dips/SetEntityVisibilityVal.py +100 -0
- dips/SetStatisticsSettingsVal.py +106 -0
- dips/SetVersusSetVal.py +82 -0
- dips/SetWindowEntityInfoVal.py +183 -0
- dips/SetWindowEntityVisibilityRef.py +29 -0
- dips/SetWindowEntityVisibilityVal.py +80 -0
- dips/StatisticalDistributionFilterVal.py +128 -0
- dips/Stereonet2DPresetOptionsVal.py +488 -0
- dips/Stereonet2DViewRef.py +612 -0
- dips/Stereonet2DViewVal.py +363 -0
- dips/Stereonet3DPresetOptionsVal.py +281 -0
- dips/Stereonet3DViewRef.py +440 -0
- dips/Stereonet3DViewVal.py +303 -0
- dips/StereonetOverlayEntityVisibilityVal.py +83 -0
- dips/StereonetOverlaySettingsVal.py +103 -0
- dips/StereonetProjectionModeVal.py +73 -0
- dips/SurveyDataVal.py +103 -0
- dips/SymbolDisplaySettingVal.py +124 -0
- dips/SymbolicSettingsVal.py +89 -0
- dips/TextFormatVal.py +105 -0
- dips/TextToolEntityInfoRef.py +43 -0
- dips/TextToolEntityInfoVal.py +176 -0
- dips/TraverseEntityOptionsVal.py +84 -0
- dips/TraverseEntityVisibilityRef.py +38 -0
- dips/TraverseEntityVisibilityVal.py +100 -0
- dips/TrendLineToolEntityInfoRef.py +43 -0
- dips/TrendLineToolEntityInfoVal.py +114 -0
- dips/TrendPlungeVal.py +91 -0
- dips/UnitSystemResultVal.py +62 -0
- dips/UserPlaneEntityOptionsVal.py +100 -0
- dips/ValidatableResultVal.py +69 -0
- dips/ValidatableResult_ProtoReference_ArrowToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_ConeToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_EllipseToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_FoldEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_LineIntersectionCalculatorToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_LineToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_MeasureAngleToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_OrientationDataSetVal.py +86 -0
- dips/ValidatableResult_ProtoReference_PitchGridToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_PlaneEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_PlaneIntersectionCalculatorToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_PolygonToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_PolylineToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_RectangleToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_SetEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_TextToolEntityInfoVal.py +86 -0
- dips/ValidatableResult_ProtoReference_TrendLineToolEntityInfoVal.py +86 -0
- dips/ValidationErrorVal.py +73 -0
- dips/Vector2DVal.py +73 -0
- dips/Vector3Val.py +84 -0
- dips/VectorDensityContourSettingsVal.py +73 -0
- dips/WeightingSettingsVal.py +83 -0
- dips/WrappedFreehandWindowVal.py +102 -0
- dips/__init__.py +29 -0
- dipsscripting-9.1.0.dist-info/METADATA +29 -0
- dipsscripting-9.1.0.dist-info/RECORD +175 -0
- dipsscripting-9.1.0.dist-info/WHEEL +5 -0
- dipsscripting-9.1.0.dist-info/licenses/License.txt +20 -0
- dipsscripting-9.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"""Generated wrapper for KinematicAnalysisSettings 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 .AngleDataVal import AngleDataVal
|
|
9
|
+
|
|
10
|
+
class KinematicAnalysisSettingsVal:
|
|
11
|
+
"""Simple wrapper for KinematicAnalysisSettings with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.KinematicAnalysisSettings
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, slope_dip: Optional[AngleDataVal] = None, slope_dip_direction: Optional[AngleDataVal] = None, friction_angle: Optional[AngleDataVal] = None, lateral_limits: Optional[AngleDataVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the KinematicAnalysisSettings wrapper."""
|
|
18
|
+
# Initialize the protobuf message
|
|
19
|
+
if proto_message is not None:
|
|
20
|
+
self._proto_message = proto_message
|
|
21
|
+
else:
|
|
22
|
+
self._proto_message = self._proto_class()
|
|
23
|
+
|
|
24
|
+
if slope_dip is not None:
|
|
25
|
+
self._proto_message.SlopeDip.CopyFrom(slope_dip.to_proto())
|
|
26
|
+
self._slope_dip_wrapper = slope_dip
|
|
27
|
+
if slope_dip_direction is not None:
|
|
28
|
+
self._proto_message.SlopeDipDirection.CopyFrom(slope_dip_direction.to_proto())
|
|
29
|
+
self._slope_dip_direction_wrapper = slope_dip_direction
|
|
30
|
+
if friction_angle is not None:
|
|
31
|
+
self._proto_message.FrictionAngle.CopyFrom(friction_angle.to_proto())
|
|
32
|
+
self._friction_angle_wrapper = friction_angle
|
|
33
|
+
if lateral_limits is not None:
|
|
34
|
+
self._proto_message.LateralLimits.CopyFrom(lateral_limits.to_proto())
|
|
35
|
+
self._lateral_limits_wrapper = lateral_limits
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# Properties
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def failure_mode_option(self) -> Any:
|
|
42
|
+
"""Get the FailureModeOption field value."""
|
|
43
|
+
return self._proto_message.FailureModeOption
|
|
44
|
+
|
|
45
|
+
@failure_mode_option.setter
|
|
46
|
+
def failure_mode_option(self, value: Any) -> None:
|
|
47
|
+
"""Set the FailureModeOption field value."""
|
|
48
|
+
self._proto_message.FailureModeOption = value
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def slope_dip(self) -> AngleDataVal:
|
|
53
|
+
"""Get the SlopeDip field as a wrapper."""
|
|
54
|
+
if not hasattr(self, '_slope_dip_wrapper'):
|
|
55
|
+
self._slope_dip_wrapper = AngleDataVal(proto_message=self._proto_message.SlopeDip)
|
|
56
|
+
return self._slope_dip_wrapper
|
|
57
|
+
|
|
58
|
+
@slope_dip.setter
|
|
59
|
+
def slope_dip(self, value: AngleDataVal) -> None:
|
|
60
|
+
"""Set the SlopeDip field to a wrapper."""
|
|
61
|
+
self._proto_message.SlopeDip.CopyFrom(value.to_proto())
|
|
62
|
+
# Update the cached wrapper if it exists
|
|
63
|
+
if hasattr(self, '_slope_dip_wrapper'):
|
|
64
|
+
self._slope_dip_wrapper._proto_message.CopyFrom(self._proto_message.SlopeDip)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def slope_dip_direction(self) -> AngleDataVal:
|
|
69
|
+
"""Get the SlopeDipDirection field as a wrapper."""
|
|
70
|
+
if not hasattr(self, '_slope_dip_direction_wrapper'):
|
|
71
|
+
self._slope_dip_direction_wrapper = AngleDataVal(proto_message=self._proto_message.SlopeDipDirection)
|
|
72
|
+
return self._slope_dip_direction_wrapper
|
|
73
|
+
|
|
74
|
+
@slope_dip_direction.setter
|
|
75
|
+
def slope_dip_direction(self, value: AngleDataVal) -> None:
|
|
76
|
+
"""Set the SlopeDipDirection field to a wrapper."""
|
|
77
|
+
self._proto_message.SlopeDipDirection.CopyFrom(value.to_proto())
|
|
78
|
+
# Update the cached wrapper if it exists
|
|
79
|
+
if hasattr(self, '_slope_dip_direction_wrapper'):
|
|
80
|
+
self._slope_dip_direction_wrapper._proto_message.CopyFrom(self._proto_message.SlopeDipDirection)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def friction_angle(self) -> AngleDataVal:
|
|
85
|
+
"""Get the FrictionAngle field as a wrapper."""
|
|
86
|
+
if not hasattr(self, '_friction_angle_wrapper'):
|
|
87
|
+
self._friction_angle_wrapper = AngleDataVal(proto_message=self._proto_message.FrictionAngle)
|
|
88
|
+
return self._friction_angle_wrapper
|
|
89
|
+
|
|
90
|
+
@friction_angle.setter
|
|
91
|
+
def friction_angle(self, value: AngleDataVal) -> None:
|
|
92
|
+
"""Set the FrictionAngle field to a wrapper."""
|
|
93
|
+
self._proto_message.FrictionAngle.CopyFrom(value.to_proto())
|
|
94
|
+
# Update the cached wrapper if it exists
|
|
95
|
+
if hasattr(self, '_friction_angle_wrapper'):
|
|
96
|
+
self._friction_angle_wrapper._proto_message.CopyFrom(self._proto_message.FrictionAngle)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def lateral_limits(self) -> AngleDataVal:
|
|
101
|
+
"""Get the LateralLimits field as a wrapper."""
|
|
102
|
+
if not hasattr(self, '_lateral_limits_wrapper'):
|
|
103
|
+
self._lateral_limits_wrapper = AngleDataVal(proto_message=self._proto_message.LateralLimits)
|
|
104
|
+
return self._lateral_limits_wrapper
|
|
105
|
+
|
|
106
|
+
@lateral_limits.setter
|
|
107
|
+
def lateral_limits(self, value: AngleDataVal) -> None:
|
|
108
|
+
"""Set the LateralLimits field to a wrapper."""
|
|
109
|
+
self._proto_message.LateralLimits.CopyFrom(value.to_proto())
|
|
110
|
+
# Update the cached wrapper if it exists
|
|
111
|
+
if hasattr(self, '_lateral_limits_wrapper'):
|
|
112
|
+
self._lateral_limits_wrapper._proto_message.CopyFrom(self._proto_message.LateralLimits)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
# Utility methods
|
|
116
|
+
|
|
117
|
+
def to_proto(self):
|
|
118
|
+
"""Get the underlying protobuf message."""
|
|
119
|
+
return self._proto_message
|
|
120
|
+
|
|
121
|
+
@classmethod
|
|
122
|
+
def from_proto(cls, proto_message):
|
|
123
|
+
"""Create wrapper from existing protobuf message."""
|
|
124
|
+
wrapper = cls()
|
|
125
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
126
|
+
return wrapper
|
|
127
|
+
|
|
128
|
+
def copy(self):
|
|
129
|
+
"""Create a copy of this wrapper."""
|
|
130
|
+
new_wrapper = self.__class__()
|
|
131
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
132
|
+
return new_wrapper
|
|
133
|
+
|
|
134
|
+
def __str__(self) -> str:
|
|
135
|
+
"""String representation."""
|
|
136
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
137
|
+
|
|
138
|
+
def __repr__(self) -> str:
|
|
139
|
+
"""Detailed string representation."""
|
|
140
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/LatLongVal.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Generated wrapper for LatLong 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 LatLongVal:
|
|
9
|
+
"""Simple wrapper for LatLong with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.LatLong
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the LatLong 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
|
+
@property
|
|
27
|
+
def longitude(self) -> float:
|
|
28
|
+
"""Get the Longitude field value."""
|
|
29
|
+
return self._proto_message.Longitude
|
|
30
|
+
|
|
31
|
+
@longitude.setter
|
|
32
|
+
def longitude(self, value: float) -> None:
|
|
33
|
+
"""Set the Longitude field value."""
|
|
34
|
+
self._proto_message.Longitude = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def latitude(self) -> float:
|
|
39
|
+
"""Get the Latitude field value."""
|
|
40
|
+
return self._proto_message.Latitude
|
|
41
|
+
|
|
42
|
+
@latitude.setter
|
|
43
|
+
def latitude(self, value: float) -> None:
|
|
44
|
+
"""Set the Latitude field value."""
|
|
45
|
+
self._proto_message.Latitude = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def elevation(self) -> float:
|
|
50
|
+
"""Get the Elevation field value."""
|
|
51
|
+
return self._proto_message.Elevation
|
|
52
|
+
|
|
53
|
+
@elevation.setter
|
|
54
|
+
def elevation(self, value: float) -> None:
|
|
55
|
+
"""Set the Elevation field value."""
|
|
56
|
+
self._proto_message.Elevation = value
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# Utility methods
|
|
60
|
+
|
|
61
|
+
def to_proto(self):
|
|
62
|
+
"""Get the underlying protobuf message."""
|
|
63
|
+
return self._proto_message
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def from_proto(cls, proto_message):
|
|
67
|
+
"""Create wrapper from existing protobuf message."""
|
|
68
|
+
wrapper = cls()
|
|
69
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
70
|
+
return wrapper
|
|
71
|
+
|
|
72
|
+
def copy(self):
|
|
73
|
+
"""Create a copy of this wrapper."""
|
|
74
|
+
new_wrapper = self.__class__()
|
|
75
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
76
|
+
return new_wrapper
|
|
77
|
+
|
|
78
|
+
def __str__(self) -> str:
|
|
79
|
+
"""String representation."""
|
|
80
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
81
|
+
|
|
82
|
+
def __repr__(self) -> str:
|
|
83
|
+
"""Detailed string representation."""
|
|
84
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/LengthDataVal.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"""Generated wrapper for LengthData 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 .DataFormatterVal import DataFormatterVal
|
|
9
|
+
|
|
10
|
+
class LengthDataVal:
|
|
11
|
+
"""Simple wrapper for LengthData with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.LengthData
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, length_unit: Optional[DataFormatterVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the LengthData wrapper."""
|
|
18
|
+
# Initialize the protobuf message
|
|
19
|
+
if proto_message is not None:
|
|
20
|
+
self._proto_message = proto_message
|
|
21
|
+
else:
|
|
22
|
+
self._proto_message = self._proto_class()
|
|
23
|
+
|
|
24
|
+
if length_unit is not None:
|
|
25
|
+
self._proto_message.LengthUnit.CopyFrom(length_unit.to_proto())
|
|
26
|
+
self._length_unit_wrapper = length_unit
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def length(self) -> float:
|
|
33
|
+
"""Get the Length field value."""
|
|
34
|
+
return self._proto_message.Length
|
|
35
|
+
|
|
36
|
+
@length.setter
|
|
37
|
+
def length(self, value: float) -> None:
|
|
38
|
+
"""Set the Length field value."""
|
|
39
|
+
self._proto_message.Length = value
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def length_unit(self) -> DataFormatterVal:
|
|
44
|
+
"""Get the LengthUnit field as a wrapper."""
|
|
45
|
+
if not hasattr(self, '_length_unit_wrapper'):
|
|
46
|
+
self._length_unit_wrapper = DataFormatterVal(proto_message=self._proto_message.LengthUnit)
|
|
47
|
+
return self._length_unit_wrapper
|
|
48
|
+
|
|
49
|
+
@length_unit.setter
|
|
50
|
+
def length_unit(self, value: DataFormatterVal) -> None:
|
|
51
|
+
"""Set the LengthUnit field to a wrapper."""
|
|
52
|
+
self._proto_message.LengthUnit.CopyFrom(value.to_proto())
|
|
53
|
+
# Update the cached wrapper if it exists
|
|
54
|
+
if hasattr(self, '_length_unit_wrapper'):
|
|
55
|
+
self._length_unit_wrapper._proto_message.CopyFrom(self._proto_message.LengthUnit)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# Utility methods
|
|
59
|
+
|
|
60
|
+
def to_proto(self):
|
|
61
|
+
"""Get the underlying protobuf message."""
|
|
62
|
+
return self._proto_message
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_proto(cls, proto_message):
|
|
66
|
+
"""Create wrapper from existing protobuf message."""
|
|
67
|
+
wrapper = cls()
|
|
68
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
69
|
+
return wrapper
|
|
70
|
+
|
|
71
|
+
def copy(self):
|
|
72
|
+
"""Create a copy of this wrapper."""
|
|
73
|
+
new_wrapper = self.__class__()
|
|
74
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
75
|
+
return new_wrapper
|
|
76
|
+
|
|
77
|
+
def __str__(self) -> str:
|
|
78
|
+
"""String representation."""
|
|
79
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
80
|
+
|
|
81
|
+
def __repr__(self) -> str:
|
|
82
|
+
"""Detailed string representation."""
|
|
83
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/LineFormatVal.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"""Generated wrapper for LineFormat 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 .ColorSurrogateVal import ColorSurrogateVal
|
|
9
|
+
|
|
10
|
+
class LineFormatVal:
|
|
11
|
+
"""Simple wrapper for LineFormat with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.LineFormat
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, line_color: Optional[ColorSurrogateVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the LineFormat wrapper."""
|
|
18
|
+
# Initialize the protobuf message
|
|
19
|
+
if proto_message is not None:
|
|
20
|
+
self._proto_message = proto_message
|
|
21
|
+
else:
|
|
22
|
+
self._proto_message = self._proto_class()
|
|
23
|
+
|
|
24
|
+
if line_color is not None:
|
|
25
|
+
self._proto_message.LineColor.CopyFrom(line_color.to_proto())
|
|
26
|
+
self._line_color_wrapper = line_color
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def line_color(self) -> ColorSurrogateVal:
|
|
33
|
+
"""Get the LineColor field as a wrapper."""
|
|
34
|
+
if not hasattr(self, '_line_color_wrapper'):
|
|
35
|
+
self._line_color_wrapper = ColorSurrogateVal(proto_message=self._proto_message.LineColor)
|
|
36
|
+
return self._line_color_wrapper
|
|
37
|
+
|
|
38
|
+
@line_color.setter
|
|
39
|
+
def line_color(self, value: ColorSurrogateVal) -> None:
|
|
40
|
+
"""Set the LineColor field to a wrapper."""
|
|
41
|
+
self._proto_message.LineColor.CopyFrom(value.to_proto())
|
|
42
|
+
# Update the cached wrapper if it exists
|
|
43
|
+
if hasattr(self, '_line_color_wrapper'):
|
|
44
|
+
self._line_color_wrapper._proto_message.CopyFrom(self._proto_message.LineColor)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def line_width(self) -> int:
|
|
49
|
+
"""Get the LineWidth field value."""
|
|
50
|
+
return self._proto_message.LineWidth
|
|
51
|
+
|
|
52
|
+
@line_width.setter
|
|
53
|
+
def line_width(self, value: int) -> None:
|
|
54
|
+
"""Set the LineWidth field value."""
|
|
55
|
+
self._proto_message.LineWidth = value
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# Utility methods
|
|
59
|
+
|
|
60
|
+
def to_proto(self):
|
|
61
|
+
"""Get the underlying protobuf message."""
|
|
62
|
+
return self._proto_message
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_proto(cls, proto_message):
|
|
66
|
+
"""Create wrapper from existing protobuf message."""
|
|
67
|
+
wrapper = cls()
|
|
68
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
69
|
+
return wrapper
|
|
70
|
+
|
|
71
|
+
def copy(self):
|
|
72
|
+
"""Create a copy of this wrapper."""
|
|
73
|
+
new_wrapper = self.__class__()
|
|
74
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
75
|
+
return new_wrapper
|
|
76
|
+
|
|
77
|
+
def __str__(self) -> str:
|
|
78
|
+
"""String representation."""
|
|
79
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
80
|
+
|
|
81
|
+
def __repr__(self) -> str:
|
|
82
|
+
"""Detailed string representation."""
|
|
83
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from . import DipsAPI_pb2_grpc
|
|
3
|
+
from . import DipsAPI_pb2
|
|
4
|
+
from .LineIntersectionCalculatorToolEntityInfoVal import LineIntersectionCalculatorToolEntityInfoVal
|
|
5
|
+
from .LineIntersectionCalculatorToolEntityInfoVal import LineIntersectionCalculatorToolEntityInfoVal
|
|
6
|
+
from .ValidatableResultVal import ValidatableResultVal
|
|
7
|
+
|
|
8
|
+
class LineIntersectionCalculatorToolEntityInfoRef:
|
|
9
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_LineIntersectionCalculatorToolEntityInfo):
|
|
10
|
+
self.__modelRef = ref
|
|
11
|
+
self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
|
|
12
|
+
self.__channelToConnectOn = channelToConnectOn
|
|
13
|
+
self.__EntityServicesStubLocal = DipsAPI_pb2_grpc.EntityServicesStub(channelToConnectOn)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def GetValue(self) -> LineIntersectionCalculatorToolEntityInfoVal:
|
|
17
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
18
|
+
ret = DipsAPI_pb2.LineIntersectionCalculatorToolEntityInfo()
|
|
19
|
+
ret.MergeFromString(bytes.data)
|
|
20
|
+
return LineIntersectionCalculatorToolEntityInfoVal.from_proto(ret)
|
|
21
|
+
|
|
22
|
+
def get_model_ref(self):
|
|
23
|
+
"""Get the underlying model reference for direct protobuf operations."""
|
|
24
|
+
return self.__modelRef
|
|
25
|
+
|
|
26
|
+
def RemoveLineIntersectionCalculatorTool(self):
|
|
27
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_LineIntersectionCalculatorToolEntityInfo(This=self.__modelRef)
|
|
28
|
+
ret = self.__EntityServicesStubLocal.RemoveLineIntersectionCalculatorTool(functionParam)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def SetLineIntersectionCalculatorToolVisibility(self, Boolean: bool):
|
|
32
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_LineIntersectionCalculatorToolEntityInfo_Boolean(This=self.__modelRef, Input1=Boolean)
|
|
33
|
+
ret = self.__EntityServicesStubLocal.SetLineIntersectionCalculatorToolVisibility(functionParam)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def UpdateLineIntersectionCalculatorTool(self, LineIntersectionCalculatorToolEntityInfo: LineIntersectionCalculatorToolEntityInfoVal) -> ValidatableResultVal:
|
|
37
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_LineIntersectionCalculatorToolEntityInfo_LineIntersectionCalculatorToolEntityInfo(This=self.__modelRef, Input1=(LineIntersectionCalculatorToolEntityInfo.to_proto() if hasattr(LineIntersectionCalculatorToolEntityInfo, 'to_proto') else LineIntersectionCalculatorToolEntityInfo))
|
|
38
|
+
ret = self.__EntityServicesStubLocal.UpdateLineIntersectionCalculatorTool(functionParam)
|
|
39
|
+
|
|
40
|
+
return ValidatableResultVal.from_proto(ret)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""Generated wrapper for LineIntersectionCalculatorToolEntityInfo 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 .ColorSurrogateVal import ColorSurrogateVal
|
|
9
|
+
from .TrendPlungeVal import TrendPlungeVal
|
|
10
|
+
|
|
11
|
+
class LineIntersectionCalculatorToolEntityInfoVal:
|
|
12
|
+
"""Simple wrapper for LineIntersectionCalculatorToolEntityInfo with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.LineIntersectionCalculatorToolEntityInfo
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, color: Optional[ColorSurrogateVal] = None, pole1: Optional[TrendPlungeVal] = None, pole2: Optional[TrendPlungeVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the LineIntersectionCalculatorToolEntityInfo 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
|
+
if color is not None:
|
|
26
|
+
self._proto_message.Color.CopyFrom(color.to_proto())
|
|
27
|
+
self._color_wrapper = color
|
|
28
|
+
if pole1 is not None:
|
|
29
|
+
self._proto_message.Pole1.CopyFrom(pole1.to_proto())
|
|
30
|
+
self._pole1_wrapper = pole1
|
|
31
|
+
if pole2 is not None:
|
|
32
|
+
self._proto_message.Pole2.CopyFrom(pole2.to_proto())
|
|
33
|
+
self._pole2_wrapper = pole2
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Properties
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def is_visible(self) -> bool:
|
|
40
|
+
"""Get the IsVisible field value."""
|
|
41
|
+
return self._proto_message.IsVisible
|
|
42
|
+
|
|
43
|
+
@is_visible.setter
|
|
44
|
+
def is_visible(self, value: bool) -> None:
|
|
45
|
+
"""Set the IsVisible field value."""
|
|
46
|
+
self._proto_message.IsVisible = value
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def name(self) -> str:
|
|
51
|
+
"""Get the Name field value."""
|
|
52
|
+
return self._proto_message.Name
|
|
53
|
+
|
|
54
|
+
@name.setter
|
|
55
|
+
def name(self, value: str) -> None:
|
|
56
|
+
"""Set the Name field value."""
|
|
57
|
+
self._proto_message.Name = value
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def color(self) -> ColorSurrogateVal:
|
|
62
|
+
"""Get the Color field as a wrapper."""
|
|
63
|
+
if not hasattr(self, '_color_wrapper'):
|
|
64
|
+
self._color_wrapper = ColorSurrogateVal(proto_message=self._proto_message.Color)
|
|
65
|
+
return self._color_wrapper
|
|
66
|
+
|
|
67
|
+
@color.setter
|
|
68
|
+
def color(self, value: ColorSurrogateVal) -> None:
|
|
69
|
+
"""Set the Color field to a wrapper."""
|
|
70
|
+
self._proto_message.Color.CopyFrom(value.to_proto())
|
|
71
|
+
# Update the cached wrapper if it exists
|
|
72
|
+
if hasattr(self, '_color_wrapper'):
|
|
73
|
+
self._color_wrapper._proto_message.CopyFrom(self._proto_message.Color)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def pole1(self) -> TrendPlungeVal:
|
|
78
|
+
"""Get the Pole1 field as a wrapper."""
|
|
79
|
+
if not hasattr(self, '_pole1_wrapper'):
|
|
80
|
+
self._pole1_wrapper = TrendPlungeVal(proto_message=self._proto_message.Pole1)
|
|
81
|
+
return self._pole1_wrapper
|
|
82
|
+
|
|
83
|
+
@pole1.setter
|
|
84
|
+
def pole1(self, value: TrendPlungeVal) -> None:
|
|
85
|
+
"""Set the Pole1 field to a wrapper."""
|
|
86
|
+
self._proto_message.Pole1.CopyFrom(value.to_proto())
|
|
87
|
+
# Update the cached wrapper if it exists
|
|
88
|
+
if hasattr(self, '_pole1_wrapper'):
|
|
89
|
+
self._pole1_wrapper._proto_message.CopyFrom(self._proto_message.Pole1)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def pole2(self) -> TrendPlungeVal:
|
|
94
|
+
"""Get the Pole2 field as a wrapper."""
|
|
95
|
+
if not hasattr(self, '_pole2_wrapper'):
|
|
96
|
+
self._pole2_wrapper = TrendPlungeVal(proto_message=self._proto_message.Pole2)
|
|
97
|
+
return self._pole2_wrapper
|
|
98
|
+
|
|
99
|
+
@pole2.setter
|
|
100
|
+
def pole2(self, value: TrendPlungeVal) -> None:
|
|
101
|
+
"""Set the Pole2 field to a wrapper."""
|
|
102
|
+
self._proto_message.Pole2.CopyFrom(value.to_proto())
|
|
103
|
+
# Update the cached wrapper if it exists
|
|
104
|
+
if hasattr(self, '_pole2_wrapper'):
|
|
105
|
+
self._pole2_wrapper._proto_message.CopyFrom(self._proto_message.Pole2)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# Utility methods
|
|
109
|
+
|
|
110
|
+
def to_proto(self):
|
|
111
|
+
"""Get the underlying protobuf message."""
|
|
112
|
+
return self._proto_message
|
|
113
|
+
|
|
114
|
+
@classmethod
|
|
115
|
+
def from_proto(cls, proto_message):
|
|
116
|
+
"""Create wrapper from existing protobuf message."""
|
|
117
|
+
wrapper = cls()
|
|
118
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
119
|
+
return wrapper
|
|
120
|
+
|
|
121
|
+
def copy(self):
|
|
122
|
+
"""Create a copy of this wrapper."""
|
|
123
|
+
new_wrapper = self.__class__()
|
|
124
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
125
|
+
return new_wrapper
|
|
126
|
+
|
|
127
|
+
def __str__(self) -> str:
|
|
128
|
+
"""String representation."""
|
|
129
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
130
|
+
|
|
131
|
+
def __repr__(self) -> str:
|
|
132
|
+
"""Detailed string representation."""
|
|
133
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from . import DipsAPI_pb2_grpc
|
|
3
|
+
from . import DipsAPI_pb2
|
|
4
|
+
from .LineToolEntityInfoVal import LineToolEntityInfoVal
|
|
5
|
+
from .LineToolEntityInfoVal import LineToolEntityInfoVal
|
|
6
|
+
from .ValidatableResultVal import ValidatableResultVal
|
|
7
|
+
|
|
8
|
+
class LineToolEntityInfoRef:
|
|
9
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_LineToolEntityInfo):
|
|
10
|
+
self.__modelRef = ref
|
|
11
|
+
self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
|
|
12
|
+
self.__channelToConnectOn = channelToConnectOn
|
|
13
|
+
self.__EntityServicesStubLocal = DipsAPI_pb2_grpc.EntityServicesStub(channelToConnectOn)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def GetValue(self) -> LineToolEntityInfoVal:
|
|
17
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
18
|
+
ret = DipsAPI_pb2.LineToolEntityInfo()
|
|
19
|
+
ret.MergeFromString(bytes.data)
|
|
20
|
+
return LineToolEntityInfoVal.from_proto(ret)
|
|
21
|
+
|
|
22
|
+
def get_model_ref(self):
|
|
23
|
+
"""Get the underlying model reference for direct protobuf operations."""
|
|
24
|
+
return self.__modelRef
|
|
25
|
+
|
|
26
|
+
def RemoveLineTool(self):
|
|
27
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_LineToolEntityInfo(This=self.__modelRef)
|
|
28
|
+
ret = self.__EntityServicesStubLocal.RemoveLineTool(functionParam)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def SetLineToolVisibility(self, Boolean: bool):
|
|
32
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_LineToolEntityInfo_Boolean(This=self.__modelRef, Input1=Boolean)
|
|
33
|
+
ret = self.__EntityServicesStubLocal.SetLineToolVisibility(functionParam)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def UpdateLineTool(self, LineToolEntityInfo: LineToolEntityInfoVal) -> ValidatableResultVal:
|
|
37
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_LineToolEntityInfo_LineToolEntityInfo(This=self.__modelRef, Input1=(LineToolEntityInfo.to_proto() if hasattr(LineToolEntityInfo, 'to_proto') else LineToolEntityInfo))
|
|
38
|
+
ret = self.__EntityServicesStubLocal.UpdateLineTool(functionParam)
|
|
39
|
+
|
|
40
|
+
return ValidatableResultVal.from_proto(ret)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|