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,86 @@
|
|
|
1
|
+
"""Generated wrapper for ValidatableResult_ProtoReference_TextToolEntityInfo 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 .ValidationErrorVal import ValidationErrorVal
|
|
9
|
+
from .TextToolEntityInfoRef import TextToolEntityInfoRef
|
|
10
|
+
|
|
11
|
+
class ValidatableResult_ProtoReference_TextToolEntityInfoVal:
|
|
12
|
+
"""Simple wrapper for ValidatableResult_ProtoReference_TextToolEntityInfo with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.ValidatableResult_ProtoReference_TextToolEntityInfo
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, result: Optional[TextToolEntityInfoRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
|
|
18
|
+
"""Initialize the ValidatableResult_ProtoReference_TextToolEntityInfo 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 result is not None:
|
|
29
|
+
self.result = result
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Properties
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def errors(self) -> List[ValidationErrorVal]:
|
|
36
|
+
"""Get the Errors field as a list of wrappers."""
|
|
37
|
+
return _ProtobufListWrapper(self._proto_message.Errors, ValidationErrorVal)
|
|
38
|
+
|
|
39
|
+
@errors.setter
|
|
40
|
+
def errors(self, value: List[ValidationErrorVal]) -> None:
|
|
41
|
+
"""Set the Errors field to a list of wrappers."""
|
|
42
|
+
if not isinstance(value, (list, tuple)):
|
|
43
|
+
raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
|
|
44
|
+
# Clear the repeated field using slice assignment
|
|
45
|
+
self._proto_message.Errors[:] = []
|
|
46
|
+
for item in value:
|
|
47
|
+
self._proto_message.Errors.append(item.to_proto())
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def result(self) -> TextToolEntityInfoRef:
|
|
52
|
+
"""Get the Result field as a reference."""
|
|
53
|
+
return TextToolEntityInfoRef(self.__channelToConnectOn, self._proto_message.Result)
|
|
54
|
+
|
|
55
|
+
@result.setter
|
|
56
|
+
def result(self, value: TextToolEntityInfoRef) -> None:
|
|
57
|
+
"""Set the Result field to a reference."""
|
|
58
|
+
self._proto_message.Result.CopyFrom(value.get_model_ref())
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Utility methods
|
|
62
|
+
|
|
63
|
+
def to_proto(self):
|
|
64
|
+
"""Get the underlying protobuf message."""
|
|
65
|
+
return self._proto_message
|
|
66
|
+
|
|
67
|
+
@classmethod
|
|
68
|
+
def from_proto(cls, proto_message):
|
|
69
|
+
"""Create wrapper from existing protobuf message."""
|
|
70
|
+
wrapper = cls()
|
|
71
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
72
|
+
return wrapper
|
|
73
|
+
|
|
74
|
+
def copy(self):
|
|
75
|
+
"""Create a copy of this wrapper."""
|
|
76
|
+
new_wrapper = self.__class__()
|
|
77
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
78
|
+
return new_wrapper
|
|
79
|
+
|
|
80
|
+
def __str__(self) -> str:
|
|
81
|
+
"""String representation."""
|
|
82
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""Detailed string representation."""
|
|
86
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""Generated wrapper for ValidatableResult_ProtoReference_TrendLineToolEntityInfo 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 .ValidationErrorVal import ValidationErrorVal
|
|
9
|
+
from .TrendLineToolEntityInfoRef import TrendLineToolEntityInfoRef
|
|
10
|
+
|
|
11
|
+
class ValidatableResult_ProtoReference_TrendLineToolEntityInfoVal:
|
|
12
|
+
"""Simple wrapper for ValidatableResult_ProtoReference_TrendLineToolEntityInfo with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.ValidatableResult_ProtoReference_TrendLineToolEntityInfo
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, result: Optional[TrendLineToolEntityInfoRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
|
|
18
|
+
"""Initialize the ValidatableResult_ProtoReference_TrendLineToolEntityInfo 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 result is not None:
|
|
29
|
+
self.result = result
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Properties
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def errors(self) -> List[ValidationErrorVal]:
|
|
36
|
+
"""Get the Errors field as a list of wrappers."""
|
|
37
|
+
return _ProtobufListWrapper(self._proto_message.Errors, ValidationErrorVal)
|
|
38
|
+
|
|
39
|
+
@errors.setter
|
|
40
|
+
def errors(self, value: List[ValidationErrorVal]) -> None:
|
|
41
|
+
"""Set the Errors field to a list of wrappers."""
|
|
42
|
+
if not isinstance(value, (list, tuple)):
|
|
43
|
+
raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
|
|
44
|
+
# Clear the repeated field using slice assignment
|
|
45
|
+
self._proto_message.Errors[:] = []
|
|
46
|
+
for item in value:
|
|
47
|
+
self._proto_message.Errors.append(item.to_proto())
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def result(self) -> TrendLineToolEntityInfoRef:
|
|
52
|
+
"""Get the Result field as a reference."""
|
|
53
|
+
return TrendLineToolEntityInfoRef(self.__channelToConnectOn, self._proto_message.Result)
|
|
54
|
+
|
|
55
|
+
@result.setter
|
|
56
|
+
def result(self, value: TrendLineToolEntityInfoRef) -> None:
|
|
57
|
+
"""Set the Result field to a reference."""
|
|
58
|
+
self._proto_message.Result.CopyFrom(value.get_model_ref())
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Utility methods
|
|
62
|
+
|
|
63
|
+
def to_proto(self):
|
|
64
|
+
"""Get the underlying protobuf message."""
|
|
65
|
+
return self._proto_message
|
|
66
|
+
|
|
67
|
+
@classmethod
|
|
68
|
+
def from_proto(cls, proto_message):
|
|
69
|
+
"""Create wrapper from existing protobuf message."""
|
|
70
|
+
wrapper = cls()
|
|
71
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
72
|
+
return wrapper
|
|
73
|
+
|
|
74
|
+
def copy(self):
|
|
75
|
+
"""Create a copy of this wrapper."""
|
|
76
|
+
new_wrapper = self.__class__()
|
|
77
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
78
|
+
return new_wrapper
|
|
79
|
+
|
|
80
|
+
def __str__(self) -> str:
|
|
81
|
+
"""String representation."""
|
|
82
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""Detailed string representation."""
|
|
86
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Generated wrapper for ValidationError 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 ValidationErrorVal:
|
|
9
|
+
"""Simple wrapper for ValidationError with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.ValidationError
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the ValidationError 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 property_name(self) -> str:
|
|
28
|
+
"""Get the PropertyName field value."""
|
|
29
|
+
return self._proto_message.PropertyName
|
|
30
|
+
|
|
31
|
+
@property_name.setter
|
|
32
|
+
def property_name(self, value: str) -> None:
|
|
33
|
+
"""Set the PropertyName field value."""
|
|
34
|
+
self._proto_message.PropertyName = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def error_message(self) -> str:
|
|
39
|
+
"""Get the ErrorMessage field value."""
|
|
40
|
+
return self._proto_message.ErrorMessage
|
|
41
|
+
|
|
42
|
+
@error_message.setter
|
|
43
|
+
def error_message(self, value: str) -> None:
|
|
44
|
+
"""Set the ErrorMessage field value."""
|
|
45
|
+
self._proto_message.ErrorMessage = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Utility methods
|
|
49
|
+
|
|
50
|
+
def to_proto(self):
|
|
51
|
+
"""Get the underlying protobuf message."""
|
|
52
|
+
return self._proto_message
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_proto(cls, proto_message):
|
|
56
|
+
"""Create wrapper from existing protobuf message."""
|
|
57
|
+
wrapper = cls()
|
|
58
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
59
|
+
return wrapper
|
|
60
|
+
|
|
61
|
+
def copy(self):
|
|
62
|
+
"""Create a copy of this wrapper."""
|
|
63
|
+
new_wrapper = self.__class__()
|
|
64
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
65
|
+
return new_wrapper
|
|
66
|
+
|
|
67
|
+
def __str__(self) -> str:
|
|
68
|
+
"""String representation."""
|
|
69
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
70
|
+
|
|
71
|
+
def __repr__(self) -> str:
|
|
72
|
+
"""Detailed string representation."""
|
|
73
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/Vector2DVal.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Generated wrapper for Vector2D 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 Vector2DVal:
|
|
9
|
+
"""Simple wrapper for Vector2D with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.Vector2D
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the Vector2D 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 x(self) -> float:
|
|
28
|
+
"""Get the X field value."""
|
|
29
|
+
return self._proto_message.X
|
|
30
|
+
|
|
31
|
+
@x.setter
|
|
32
|
+
def x(self, value: float) -> None:
|
|
33
|
+
"""Set the X field value."""
|
|
34
|
+
self._proto_message.X = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def y(self) -> float:
|
|
39
|
+
"""Get the Y field value."""
|
|
40
|
+
return self._proto_message.Y
|
|
41
|
+
|
|
42
|
+
@y.setter
|
|
43
|
+
def y(self, value: float) -> None:
|
|
44
|
+
"""Set the Y field value."""
|
|
45
|
+
self._proto_message.Y = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Utility methods
|
|
49
|
+
|
|
50
|
+
def to_proto(self):
|
|
51
|
+
"""Get the underlying protobuf message."""
|
|
52
|
+
return self._proto_message
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_proto(cls, proto_message):
|
|
56
|
+
"""Create wrapper from existing protobuf message."""
|
|
57
|
+
wrapper = cls()
|
|
58
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
59
|
+
return wrapper
|
|
60
|
+
|
|
61
|
+
def copy(self):
|
|
62
|
+
"""Create a copy of this wrapper."""
|
|
63
|
+
new_wrapper = self.__class__()
|
|
64
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
65
|
+
return new_wrapper
|
|
66
|
+
|
|
67
|
+
def __str__(self) -> str:
|
|
68
|
+
"""String representation."""
|
|
69
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
70
|
+
|
|
71
|
+
def __repr__(self) -> str:
|
|
72
|
+
"""Detailed string representation."""
|
|
73
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/Vector3Val.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Generated wrapper for Vector3 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 Vector3Val:
|
|
9
|
+
"""Simple wrapper for Vector3 with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.Vector3
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the Vector3 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 x(self) -> float:
|
|
28
|
+
"""Get the X field value."""
|
|
29
|
+
return self._proto_message.X
|
|
30
|
+
|
|
31
|
+
@x.setter
|
|
32
|
+
def x(self, value: float) -> None:
|
|
33
|
+
"""Set the X field value."""
|
|
34
|
+
self._proto_message.X = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def y(self) -> float:
|
|
39
|
+
"""Get the Y field value."""
|
|
40
|
+
return self._proto_message.Y
|
|
41
|
+
|
|
42
|
+
@y.setter
|
|
43
|
+
def y(self, value: float) -> None:
|
|
44
|
+
"""Set the Y field value."""
|
|
45
|
+
self._proto_message.Y = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def z(self) -> float:
|
|
50
|
+
"""Get the Z field value."""
|
|
51
|
+
return self._proto_message.Z
|
|
52
|
+
|
|
53
|
+
@z.setter
|
|
54
|
+
def z(self, value: float) -> None:
|
|
55
|
+
"""Set the Z field value."""
|
|
56
|
+
self._proto_message.Z = 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})"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""Generated wrapper for VectorDensityContourSettings 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 VectorDensityContourSettingsVal:
|
|
9
|
+
"""Simple wrapper for VectorDensityContourSettings with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.VectorDensityContourSettings
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the VectorDensityContourSettings 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 density_distribution(self) -> Any:
|
|
28
|
+
"""Get the DensityDistribution field value."""
|
|
29
|
+
return self._proto_message.DensityDistribution
|
|
30
|
+
|
|
31
|
+
@density_distribution.setter
|
|
32
|
+
def density_distribution(self, value: Any) -> None:
|
|
33
|
+
"""Set the DensityDistribution field value."""
|
|
34
|
+
self._proto_message.DensityDistribution = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def count_circle_size_percent(self) -> float:
|
|
39
|
+
"""Get the CountCircleSizePercent field value."""
|
|
40
|
+
return self._proto_message.CountCircleSizePercent
|
|
41
|
+
|
|
42
|
+
@count_circle_size_percent.setter
|
|
43
|
+
def count_circle_size_percent(self, value: float) -> None:
|
|
44
|
+
"""Set the CountCircleSizePercent field value."""
|
|
45
|
+
self._proto_message.CountCircleSizePercent = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Utility methods
|
|
49
|
+
|
|
50
|
+
def to_proto(self):
|
|
51
|
+
"""Get the underlying protobuf message."""
|
|
52
|
+
return self._proto_message
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_proto(cls, proto_message):
|
|
56
|
+
"""Create wrapper from existing protobuf message."""
|
|
57
|
+
wrapper = cls()
|
|
58
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
59
|
+
return wrapper
|
|
60
|
+
|
|
61
|
+
def copy(self):
|
|
62
|
+
"""Create a copy of this wrapper."""
|
|
63
|
+
new_wrapper = self.__class__()
|
|
64
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
65
|
+
return new_wrapper
|
|
66
|
+
|
|
67
|
+
def __str__(self) -> str:
|
|
68
|
+
"""String representation."""
|
|
69
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
70
|
+
|
|
71
|
+
def __repr__(self) -> str:
|
|
72
|
+
"""Detailed string representation."""
|
|
73
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"""Generated wrapper for WeightingSettings 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 WeightingSettingsVal:
|
|
11
|
+
"""Simple wrapper for WeightingSettings with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.WeightingSettings
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, minimum_bias_angle: Optional[AngleDataVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the WeightingSettings 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 minimum_bias_angle is not None:
|
|
25
|
+
self._proto_message.MinimumBiasAngle.CopyFrom(minimum_bias_angle.to_proto())
|
|
26
|
+
self._minimum_bias_angle_wrapper = minimum_bias_angle
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def weighting_option(self) -> Any:
|
|
33
|
+
"""Get the WeightingOption field value."""
|
|
34
|
+
return self._proto_message.WeightingOption
|
|
35
|
+
|
|
36
|
+
@weighting_option.setter
|
|
37
|
+
def weighting_option(self, value: Any) -> None:
|
|
38
|
+
"""Set the WeightingOption field value."""
|
|
39
|
+
self._proto_message.WeightingOption = value
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def minimum_bias_angle(self) -> AngleDataVal:
|
|
44
|
+
"""Get the MinimumBiasAngle field as a wrapper."""
|
|
45
|
+
if not hasattr(self, '_minimum_bias_angle_wrapper'):
|
|
46
|
+
self._minimum_bias_angle_wrapper = AngleDataVal(proto_message=self._proto_message.MinimumBiasAngle)
|
|
47
|
+
return self._minimum_bias_angle_wrapper
|
|
48
|
+
|
|
49
|
+
@minimum_bias_angle.setter
|
|
50
|
+
def minimum_bias_angle(self, value: AngleDataVal) -> None:
|
|
51
|
+
"""Set the MinimumBiasAngle field to a wrapper."""
|
|
52
|
+
self._proto_message.MinimumBiasAngle.CopyFrom(value.to_proto())
|
|
53
|
+
# Update the cached wrapper if it exists
|
|
54
|
+
if hasattr(self, '_minimum_bias_angle_wrapper'):
|
|
55
|
+
self._minimum_bias_angle_wrapper._proto_message.CopyFrom(self._proto_message.MinimumBiasAngle)
|
|
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,102 @@
|
|
|
1
|
+
"""Generated wrapper for WrappedFreehandWindow 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 .FreehandWindowVal import FreehandWindowVal
|
|
9
|
+
|
|
10
|
+
class WrappedFreehandWindowVal:
|
|
11
|
+
"""Simple wrapper for WrappedFreehandWindow with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.WrappedFreehandWindow
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, primary_window: Optional[FreehandWindowVal] = None, secondary_window: Optional[FreehandWindowVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the WrappedFreehandWindow 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 primary_window is not None:
|
|
25
|
+
self._proto_message.PrimaryWindow.CopyFrom(primary_window.to_proto())
|
|
26
|
+
self._primary_window_wrapper = primary_window
|
|
27
|
+
if secondary_window is not None:
|
|
28
|
+
self._proto_message.SecondaryWindow.CopyFrom(secondary_window.to_proto())
|
|
29
|
+
self._secondary_window_wrapper = secondary_window
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Properties
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def id(self) -> str:
|
|
36
|
+
"""Get the ID field value."""
|
|
37
|
+
return self._proto_message.ID
|
|
38
|
+
|
|
39
|
+
@id.setter
|
|
40
|
+
def id(self, value: str) -> None:
|
|
41
|
+
"""Set the ID field value."""
|
|
42
|
+
self._proto_message.ID = value
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def primary_window(self) -> FreehandWindowVal:
|
|
47
|
+
"""Get the PrimaryWindow field as a wrapper."""
|
|
48
|
+
if not hasattr(self, '_primary_window_wrapper'):
|
|
49
|
+
self._primary_window_wrapper = FreehandWindowVal(proto_message=self._proto_message.PrimaryWindow)
|
|
50
|
+
return self._primary_window_wrapper
|
|
51
|
+
|
|
52
|
+
@primary_window.setter
|
|
53
|
+
def primary_window(self, value: FreehandWindowVal) -> None:
|
|
54
|
+
"""Set the PrimaryWindow field to a wrapper."""
|
|
55
|
+
self._proto_message.PrimaryWindow.CopyFrom(value.to_proto())
|
|
56
|
+
# Update the cached wrapper if it exists
|
|
57
|
+
if hasattr(self, '_primary_window_wrapper'):
|
|
58
|
+
self._primary_window_wrapper._proto_message.CopyFrom(self._proto_message.PrimaryWindow)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def secondary_window(self) -> FreehandWindowVal:
|
|
63
|
+
"""Get the SecondaryWindow field as a wrapper."""
|
|
64
|
+
if not hasattr(self, '_secondary_window_wrapper'):
|
|
65
|
+
self._secondary_window_wrapper = FreehandWindowVal(proto_message=self._proto_message.SecondaryWindow)
|
|
66
|
+
return self._secondary_window_wrapper
|
|
67
|
+
|
|
68
|
+
@secondary_window.setter
|
|
69
|
+
def secondary_window(self, value: FreehandWindowVal) -> None:
|
|
70
|
+
"""Set the SecondaryWindow field to a wrapper."""
|
|
71
|
+
self._proto_message.SecondaryWindow.CopyFrom(value.to_proto())
|
|
72
|
+
# Update the cached wrapper if it exists
|
|
73
|
+
if hasattr(self, '_secondary_window_wrapper'):
|
|
74
|
+
self._secondary_window_wrapper._proto_message.CopyFrom(self._proto_message.SecondaryWindow)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
# Utility methods
|
|
78
|
+
|
|
79
|
+
def to_proto(self):
|
|
80
|
+
"""Get the underlying protobuf message."""
|
|
81
|
+
return self._proto_message
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_proto(cls, proto_message):
|
|
85
|
+
"""Create wrapper from existing protobuf message."""
|
|
86
|
+
wrapper = cls()
|
|
87
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
88
|
+
return wrapper
|
|
89
|
+
|
|
90
|
+
def copy(self):
|
|
91
|
+
"""Create a copy of this wrapper."""
|
|
92
|
+
new_wrapper = self.__class__()
|
|
93
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
94
|
+
return new_wrapper
|
|
95
|
+
|
|
96
|
+
def __str__(self) -> str:
|
|
97
|
+
"""String representation."""
|
|
98
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
99
|
+
|
|
100
|
+
def __repr__(self) -> str:
|
|
101
|
+
"""Detailed string representation."""
|
|
102
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Dips Python API
|
|
3
|
+
|
|
4
|
+
Public API for interacting with Dips application via gRPC.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
# Main application interface
|
|
8
|
+
from .DipsApp import DipsApp
|
|
9
|
+
|
|
10
|
+
# Built-in data formatters and descriptors
|
|
11
|
+
from .BuiltInDataFormatters import *
|
|
12
|
+
from .BuiltInDataDescriptors import *
|
|
13
|
+
|
|
14
|
+
# Re-export commonly used protobuf modules for convenience
|
|
15
|
+
from . import DipsAPI_pb2
|
|
16
|
+
from . import DipsAPI_pb2_grpc
|
|
17
|
+
|
|
18
|
+
# Optionally expose commonly used classes - uncomment if desired
|
|
19
|
+
# from .ProjStubRef import ProjStubRef
|
|
20
|
+
# from .OrientationDataSetRef import OrientationDataSetRef
|
|
21
|
+
# from .SetEntityInfoRef import SetEntityInfoRef
|
|
22
|
+
# etc.
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
'DipsApp',
|
|
26
|
+
'DipsAPI_pb2',
|
|
27
|
+
'DipsAPI_pb2_grpc',
|
|
28
|
+
# Add other public exports here
|
|
29
|
+
]
|