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,103 @@
|
|
|
1
|
+
"""Generated wrapper for GlobalPlaneEntityVisibility 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 .PlaneOptionsVal import PlaneOptionsVal
|
|
10
|
+
|
|
11
|
+
class GlobalPlaneEntityVisibilityVal:
|
|
12
|
+
"""Simple wrapper for GlobalPlaneEntityVisibility with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.GlobalPlaneEntityVisibility
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, color: Optional[ColorSurrogateVal] = None, plane_options: Optional[PlaneOptionsVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the GlobalPlaneEntityVisibility 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 plane_options is not None:
|
|
29
|
+
self._proto_message.PlaneOptions.CopyFrom(plane_options.to_proto())
|
|
30
|
+
self._plane_options_wrapper = plane_options
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Properties
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def is_visible(self) -> bool:
|
|
37
|
+
"""Get the IsVisible field value."""
|
|
38
|
+
return self._proto_message.IsVisible
|
|
39
|
+
|
|
40
|
+
@is_visible.setter
|
|
41
|
+
def is_visible(self, value: bool) -> None:
|
|
42
|
+
"""Set the IsVisible field value."""
|
|
43
|
+
self._proto_message.IsVisible = value
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def color(self) -> ColorSurrogateVal:
|
|
48
|
+
"""Get the Color field as a wrapper."""
|
|
49
|
+
if not hasattr(self, '_color_wrapper'):
|
|
50
|
+
self._color_wrapper = ColorSurrogateVal(proto_message=self._proto_message.Color)
|
|
51
|
+
return self._color_wrapper
|
|
52
|
+
|
|
53
|
+
@color.setter
|
|
54
|
+
def color(self, value: ColorSurrogateVal) -> None:
|
|
55
|
+
"""Set the Color field to a wrapper."""
|
|
56
|
+
self._proto_message.Color.CopyFrom(value.to_proto())
|
|
57
|
+
# Update the cached wrapper if it exists
|
|
58
|
+
if hasattr(self, '_color_wrapper'):
|
|
59
|
+
self._color_wrapper._proto_message.CopyFrom(self._proto_message.Color)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def plane_options(self) -> PlaneOptionsVal:
|
|
64
|
+
"""Get the PlaneOptions field as a wrapper."""
|
|
65
|
+
if not hasattr(self, '_plane_options_wrapper'):
|
|
66
|
+
self._plane_options_wrapper = PlaneOptionsVal(proto_message=self._proto_message.PlaneOptions)
|
|
67
|
+
return self._plane_options_wrapper
|
|
68
|
+
|
|
69
|
+
@plane_options.setter
|
|
70
|
+
def plane_options(self, value: PlaneOptionsVal) -> None:
|
|
71
|
+
"""Set the PlaneOptions field to a wrapper."""
|
|
72
|
+
self._proto_message.PlaneOptions.CopyFrom(value.to_proto())
|
|
73
|
+
# Update the cached wrapper if it exists
|
|
74
|
+
if hasattr(self, '_plane_options_wrapper'):
|
|
75
|
+
self._plane_options_wrapper._proto_message.CopyFrom(self._proto_message.PlaneOptions)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# Utility methods
|
|
79
|
+
|
|
80
|
+
def to_proto(self):
|
|
81
|
+
"""Get the underlying protobuf message."""
|
|
82
|
+
return self._proto_message
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_proto(cls, proto_message):
|
|
86
|
+
"""Create wrapper from existing protobuf message."""
|
|
87
|
+
wrapper = cls()
|
|
88
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
89
|
+
return wrapper
|
|
90
|
+
|
|
91
|
+
def copy(self):
|
|
92
|
+
"""Create a copy of this wrapper."""
|
|
93
|
+
new_wrapper = self.__class__()
|
|
94
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
95
|
+
return new_wrapper
|
|
96
|
+
|
|
97
|
+
def __str__(self) -> str:
|
|
98
|
+
"""String representation."""
|
|
99
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
100
|
+
|
|
101
|
+
def __repr__(self) -> str:
|
|
102
|
+
"""Detailed string representation."""
|
|
103
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from . import DipsAPI_pb2_grpc
|
|
3
|
+
from . import DipsAPI_pb2
|
|
4
|
+
from .HistogramChartViewVal import HistogramChartViewVal
|
|
5
|
+
from .DataFilterRef import DataFilterRef as DataFilter_RefType
|
|
6
|
+
|
|
7
|
+
class HistogramChartViewRef:
|
|
8
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_HistogramChartView):
|
|
9
|
+
self.__modelRef = ref
|
|
10
|
+
self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
|
|
11
|
+
self.__channelToConnectOn = channelToConnectOn
|
|
12
|
+
self.__HistogramServicesStubLocal = DipsAPI_pb2_grpc.HistogramServicesStub(channelToConnectOn)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def GetValue(self) -> HistogramChartViewVal:
|
|
16
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
17
|
+
ret = DipsAPI_pb2.HistogramChartView()
|
|
18
|
+
ret.MergeFromString(bytes.data)
|
|
19
|
+
return HistogramChartViewVal.from_proto(ret)
|
|
20
|
+
|
|
21
|
+
def get_model_ref(self):
|
|
22
|
+
"""Get the underlying model reference for direct protobuf operations."""
|
|
23
|
+
return self.__modelRef
|
|
24
|
+
|
|
25
|
+
def CloseHistogramView(self):
|
|
26
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_HistogramChartView(This=self.__modelRef)
|
|
27
|
+
ret = self.__HistogramServicesStubLocal.CloseHistogramView(functionParam)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def GetActivePoleDataFilter(self) -> DataFilter_RefType:
|
|
31
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_HistogramChartView(This=self.__modelRef)
|
|
32
|
+
ret = self.__HistogramServicesStubLocal.GetActivePoleDataFilter(functionParam)
|
|
33
|
+
|
|
34
|
+
return DataFilter_RefType(self.__channelToConnectOn, ret)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def SetActivePoleDataFilter(self, DataFilter: DataFilter_RefType):
|
|
38
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_HistogramChartView_ProtoReference_DataFilter(This=self.__modelRef, Input1=DataFilter.get_model_ref())
|
|
39
|
+
ret = self.__HistogramServicesStubLocal.SetActivePoleDataFilter(functionParam)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""Generated wrapper for HistogramChartView 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 .HistogramPlotSettingsVal import HistogramPlotSettingsVal
|
|
9
|
+
from .DataFilterRef import DataFilterRef
|
|
10
|
+
|
|
11
|
+
class HistogramChartViewVal:
|
|
12
|
+
"""Simple wrapper for HistogramChartView with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.HistogramChartView
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, histogram_plot_settings: Optional[HistogramPlotSettingsVal] = None, active_filter: Optional[DataFilterRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
|
|
18
|
+
"""Initialize the HistogramChartView 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 histogram_plot_settings is not None:
|
|
29
|
+
self._proto_message.HistogramPlotSettings.CopyFrom(histogram_plot_settings.to_proto())
|
|
30
|
+
self._histogram_plot_settings_wrapper = histogram_plot_settings
|
|
31
|
+
if active_filter is not None:
|
|
32
|
+
self.active_filter = active_filter
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Properties
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def view_name(self) -> str:
|
|
39
|
+
"""Get the ViewName field value."""
|
|
40
|
+
return self._proto_message.ViewName
|
|
41
|
+
|
|
42
|
+
@view_name.setter
|
|
43
|
+
def view_name(self, value: str) -> None:
|
|
44
|
+
"""Set the ViewName field value."""
|
|
45
|
+
self._proto_message.ViewName = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def histogram_plot_settings(self) -> HistogramPlotSettingsVal:
|
|
50
|
+
"""Get the HistogramPlotSettings field as a wrapper."""
|
|
51
|
+
if not hasattr(self, '_histogram_plot_settings_wrapper'):
|
|
52
|
+
self._histogram_plot_settings_wrapper = HistogramPlotSettingsVal(proto_message=self._proto_message.HistogramPlotSettings)
|
|
53
|
+
return self._histogram_plot_settings_wrapper
|
|
54
|
+
|
|
55
|
+
@histogram_plot_settings.setter
|
|
56
|
+
def histogram_plot_settings(self, value: HistogramPlotSettingsVal) -> None:
|
|
57
|
+
"""Set the HistogramPlotSettings field to a wrapper."""
|
|
58
|
+
self._proto_message.HistogramPlotSettings.CopyFrom(value.to_proto())
|
|
59
|
+
# Update the cached wrapper if it exists
|
|
60
|
+
if hasattr(self, '_histogram_plot_settings_wrapper'):
|
|
61
|
+
self._histogram_plot_settings_wrapper._proto_message.CopyFrom(self._proto_message.HistogramPlotSettings)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def active_filter(self) -> DataFilterRef:
|
|
66
|
+
"""Get the ActiveFilter field as a reference."""
|
|
67
|
+
return DataFilterRef(self.__channelToConnectOn, self._proto_message.ActiveFilter)
|
|
68
|
+
|
|
69
|
+
@active_filter.setter
|
|
70
|
+
def active_filter(self, value: DataFilterRef) -> None:
|
|
71
|
+
"""Set the ActiveFilter field to a reference."""
|
|
72
|
+
self._proto_message.ActiveFilter.CopyFrom(value.get_model_ref())
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# Utility methods
|
|
76
|
+
|
|
77
|
+
def to_proto(self):
|
|
78
|
+
"""Get the underlying protobuf message."""
|
|
79
|
+
return self._proto_message
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_proto(cls, proto_message):
|
|
83
|
+
"""Create wrapper from existing protobuf message."""
|
|
84
|
+
wrapper = cls()
|
|
85
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
86
|
+
return wrapper
|
|
87
|
+
|
|
88
|
+
def copy(self):
|
|
89
|
+
"""Create a copy of this wrapper."""
|
|
90
|
+
new_wrapper = self.__class__()
|
|
91
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
92
|
+
return new_wrapper
|
|
93
|
+
|
|
94
|
+
def __str__(self) -> str:
|
|
95
|
+
"""String representation."""
|
|
96
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
97
|
+
|
|
98
|
+
def __repr__(self) -> str:
|
|
99
|
+
"""Detailed string representation."""
|
|
100
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"""Generated wrapper for HistogramPlotSettings 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 .CustomHistogramOptionsVal import CustomHistogramOptionsVal
|
|
9
|
+
from .DataDescriptorVal import DataDescriptorVal
|
|
10
|
+
|
|
11
|
+
class HistogramPlotSettingsVal:
|
|
12
|
+
"""Simple wrapper for HistogramPlotSettings with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.HistogramPlotSettings
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, selected_column: Optional[DataDescriptorVal] = None, custom_options: Optional[CustomHistogramOptionsVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the HistogramPlotSettings 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 selected_column is not None:
|
|
26
|
+
self._proto_message.SelectedColumn.CopyFrom(selected_column.to_proto())
|
|
27
|
+
self._selected_column_wrapper = selected_column
|
|
28
|
+
if custom_options is not None:
|
|
29
|
+
self._proto_message.CustomOptions.CopyFrom(custom_options.to_proto())
|
|
30
|
+
self._custom_options_wrapper = custom_options
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Properties
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def selected_column(self) -> DataDescriptorVal:
|
|
37
|
+
"""Get the SelectedColumn field as a wrapper."""
|
|
38
|
+
if not hasattr(self, '_selected_column_wrapper'):
|
|
39
|
+
self._selected_column_wrapper = DataDescriptorVal(proto_message=self._proto_message.SelectedColumn)
|
|
40
|
+
return self._selected_column_wrapper
|
|
41
|
+
|
|
42
|
+
@selected_column.setter
|
|
43
|
+
def selected_column(self, value: DataDescriptorVal) -> None:
|
|
44
|
+
"""Set the SelectedColumn field to a wrapper."""
|
|
45
|
+
self._proto_message.SelectedColumn.CopyFrom(value.to_proto())
|
|
46
|
+
# Update the cached wrapper if it exists
|
|
47
|
+
if hasattr(self, '_selected_column_wrapper'):
|
|
48
|
+
self._selected_column_wrapper._proto_message.CopyFrom(self._proto_message.SelectedColumn)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def num_bins(self) -> int:
|
|
53
|
+
"""Get the NumBins field value."""
|
|
54
|
+
return self._proto_message.NumBins
|
|
55
|
+
|
|
56
|
+
@num_bins.setter
|
|
57
|
+
def num_bins(self, value: int) -> None:
|
|
58
|
+
"""Set the NumBins field value."""
|
|
59
|
+
self._proto_message.NumBins = value
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def show_best_fit_distribution(self) -> bool:
|
|
64
|
+
"""Get the ShowBestFitDistribution field value."""
|
|
65
|
+
return self._proto_message.ShowBestFitDistribution
|
|
66
|
+
|
|
67
|
+
@show_best_fit_distribution.setter
|
|
68
|
+
def show_best_fit_distribution(self, value: bool) -> None:
|
|
69
|
+
"""Set the ShowBestFitDistribution field value."""
|
|
70
|
+
self._proto_message.ShowBestFitDistribution = value
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def show_relative_frequency(self) -> bool:
|
|
75
|
+
"""Get the ShowRelativeFrequency field value."""
|
|
76
|
+
return self._proto_message.ShowRelativeFrequency
|
|
77
|
+
|
|
78
|
+
@show_relative_frequency.setter
|
|
79
|
+
def show_relative_frequency(self, value: bool) -> None:
|
|
80
|
+
"""Set the ShowRelativeFrequency field value."""
|
|
81
|
+
self._proto_message.ShowRelativeFrequency = value
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def custom_options(self) -> CustomHistogramOptionsVal:
|
|
86
|
+
"""Get the CustomOptions field as a wrapper."""
|
|
87
|
+
if not hasattr(self, '_custom_options_wrapper'):
|
|
88
|
+
self._custom_options_wrapper = CustomHistogramOptionsVal(proto_message=self._proto_message.CustomOptions)
|
|
89
|
+
return self._custom_options_wrapper
|
|
90
|
+
|
|
91
|
+
@custom_options.setter
|
|
92
|
+
def custom_options(self, value: CustomHistogramOptionsVal) -> None:
|
|
93
|
+
"""Set the CustomOptions field to a wrapper."""
|
|
94
|
+
self._proto_message.CustomOptions.CopyFrom(value.to_proto())
|
|
95
|
+
# Update the cached wrapper if it exists
|
|
96
|
+
if hasattr(self, '_custom_options_wrapper'):
|
|
97
|
+
self._custom_options_wrapper._proto_message.CopyFrom(self._proto_message.CustomOptions)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def is_weighted(self) -> bool:
|
|
102
|
+
"""Get the IsWeighted field value."""
|
|
103
|
+
return self._proto_message.IsWeighted
|
|
104
|
+
|
|
105
|
+
@is_weighted.setter
|
|
106
|
+
def is_weighted(self, value: bool) -> None:
|
|
107
|
+
"""Set the IsWeighted field value."""
|
|
108
|
+
self._proto_message.IsWeighted = value
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# Utility methods
|
|
112
|
+
|
|
113
|
+
def to_proto(self):
|
|
114
|
+
"""Get the underlying protobuf message."""
|
|
115
|
+
return self._proto_message
|
|
116
|
+
|
|
117
|
+
@classmethod
|
|
118
|
+
def from_proto(cls, proto_message):
|
|
119
|
+
"""Create wrapper from existing protobuf message."""
|
|
120
|
+
wrapper = cls()
|
|
121
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
122
|
+
return wrapper
|
|
123
|
+
|
|
124
|
+
def copy(self):
|
|
125
|
+
"""Create a copy of this wrapper."""
|
|
126
|
+
new_wrapper = self.__class__()
|
|
127
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
128
|
+
return new_wrapper
|
|
129
|
+
|
|
130
|
+
def __str__(self) -> str:
|
|
131
|
+
"""String representation."""
|
|
132
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
133
|
+
|
|
134
|
+
def __repr__(self) -> str:
|
|
135
|
+
"""Detailed string representation."""
|
|
136
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"""Generated wrapper for IntersectionEntityVisibility 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 .IntersectionOptionsVal import IntersectionOptionsVal
|
|
9
|
+
|
|
10
|
+
class IntersectionEntityVisibilityVal:
|
|
11
|
+
"""Simple wrapper for IntersectionEntityVisibility with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.IntersectionEntityVisibility
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, intersection_options: Optional[IntersectionOptionsVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the IntersectionEntityVisibility 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 intersection_options is not None:
|
|
25
|
+
self._proto_message.IntersectionOptions.CopyFrom(intersection_options.to_proto())
|
|
26
|
+
self._intersection_options_wrapper = intersection_options
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def is_visible(self) -> bool:
|
|
33
|
+
"""Get the IsVisible field value."""
|
|
34
|
+
return self._proto_message.IsVisible
|
|
35
|
+
|
|
36
|
+
@is_visible.setter
|
|
37
|
+
def is_visible(self, value: bool) -> None:
|
|
38
|
+
"""Set the IsVisible field value."""
|
|
39
|
+
self._proto_message.IsVisible = value
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def intersection_options(self) -> IntersectionOptionsVal:
|
|
44
|
+
"""Get the IntersectionOptions field as a wrapper."""
|
|
45
|
+
if not hasattr(self, '_intersection_options_wrapper'):
|
|
46
|
+
self._intersection_options_wrapper = IntersectionOptionsVal(proto_message=self._proto_message.IntersectionOptions)
|
|
47
|
+
return self._intersection_options_wrapper
|
|
48
|
+
|
|
49
|
+
@intersection_options.setter
|
|
50
|
+
def intersection_options(self, value: IntersectionOptionsVal) -> None:
|
|
51
|
+
"""Set the IntersectionOptions field to a wrapper."""
|
|
52
|
+
self._proto_message.IntersectionOptions.CopyFrom(value.to_proto())
|
|
53
|
+
# Update the cached wrapper if it exists
|
|
54
|
+
if hasattr(self, '_intersection_options_wrapper'):
|
|
55
|
+
self._intersection_options_wrapper._proto_message.CopyFrom(self._proto_message.IntersectionOptions)
|
|
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,83 @@
|
|
|
1
|
+
"""Generated wrapper for IntersectionOptions 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 .SetVersusSetVal import SetVersusSetVal
|
|
9
|
+
|
|
10
|
+
class IntersectionOptionsVal:
|
|
11
|
+
"""Simple wrapper for IntersectionOptions with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.IntersectionOptions
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, set_versus_set: Optional[SetVersusSetVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the IntersectionOptions 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 set_versus_set is not None:
|
|
25
|
+
self._proto_message.SetVersusSet.CopyFrom(set_versus_set.to_proto())
|
|
26
|
+
self._set_versus_set_wrapper = set_versus_set
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def intersection_type(self) -> Any:
|
|
33
|
+
"""Get the IntersectionType field value."""
|
|
34
|
+
return self._proto_message.IntersectionType
|
|
35
|
+
|
|
36
|
+
@intersection_type.setter
|
|
37
|
+
def intersection_type(self, value: Any) -> None:
|
|
38
|
+
"""Set the IntersectionType field value."""
|
|
39
|
+
self._proto_message.IntersectionType = value
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def set_versus_set(self) -> SetVersusSetVal:
|
|
44
|
+
"""Get the SetVersusSet field as a wrapper."""
|
|
45
|
+
if not hasattr(self, '_set_versus_set_wrapper'):
|
|
46
|
+
self._set_versus_set_wrapper = SetVersusSetVal(proto_message=self._proto_message.SetVersusSet)
|
|
47
|
+
return self._set_versus_set_wrapper
|
|
48
|
+
|
|
49
|
+
@set_versus_set.setter
|
|
50
|
+
def set_versus_set(self, value: SetVersusSetVal) -> None:
|
|
51
|
+
"""Set the SetVersusSet field to a wrapper."""
|
|
52
|
+
self._proto_message.SetVersusSet.CopyFrom(value.to_proto())
|
|
53
|
+
# Update the cached wrapper if it exists
|
|
54
|
+
if hasattr(self, '_set_versus_set_wrapper'):
|
|
55
|
+
self._set_versus_set_wrapper._proto_message.CopyFrom(self._proto_message.SetVersusSet)
|
|
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/IntervalVal.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"""Generated wrapper for Interval 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 .LengthDataVal import LengthDataVal
|
|
9
|
+
|
|
10
|
+
class IntervalVal:
|
|
11
|
+
"""Simple wrapper for Interval with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.Interval
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, distance_interval: Optional[LengthDataVal] = None, distance_move_increment: Optional[LengthDataVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the Interval 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 distance_interval is not None:
|
|
25
|
+
self._proto_message.DistanceInterval.CopyFrom(distance_interval.to_proto())
|
|
26
|
+
self._distance_interval_wrapper = distance_interval
|
|
27
|
+
if distance_move_increment is not None:
|
|
28
|
+
self._proto_message.DistanceMoveIncrement.CopyFrom(distance_move_increment.to_proto())
|
|
29
|
+
self._distance_move_increment_wrapper = distance_move_increment
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Properties
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def interval_option(self) -> Any:
|
|
36
|
+
"""Get the IntervalOption field value."""
|
|
37
|
+
return self._proto_message.IntervalOption
|
|
38
|
+
|
|
39
|
+
@interval_option.setter
|
|
40
|
+
def interval_option(self, value: Any) -> None:
|
|
41
|
+
"""Set the IntervalOption field value."""
|
|
42
|
+
self._proto_message.IntervalOption = value
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def distance_interval(self) -> LengthDataVal:
|
|
47
|
+
"""Get the DistanceInterval field as a wrapper."""
|
|
48
|
+
if not hasattr(self, '_distance_interval_wrapper'):
|
|
49
|
+
self._distance_interval_wrapper = LengthDataVal(proto_message=self._proto_message.DistanceInterval)
|
|
50
|
+
return self._distance_interval_wrapper
|
|
51
|
+
|
|
52
|
+
@distance_interval.setter
|
|
53
|
+
def distance_interval(self, value: LengthDataVal) -> None:
|
|
54
|
+
"""Set the DistanceInterval field to a wrapper."""
|
|
55
|
+
self._proto_message.DistanceInterval.CopyFrom(value.to_proto())
|
|
56
|
+
# Update the cached wrapper if it exists
|
|
57
|
+
if hasattr(self, '_distance_interval_wrapper'):
|
|
58
|
+
self._distance_interval_wrapper._proto_message.CopyFrom(self._proto_message.DistanceInterval)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def distance_move_increment(self) -> LengthDataVal:
|
|
63
|
+
"""Get the DistanceMoveIncrement field as a wrapper."""
|
|
64
|
+
if not hasattr(self, '_distance_move_increment_wrapper'):
|
|
65
|
+
self._distance_move_increment_wrapper = LengthDataVal(proto_message=self._proto_message.DistanceMoveIncrement)
|
|
66
|
+
return self._distance_move_increment_wrapper
|
|
67
|
+
|
|
68
|
+
@distance_move_increment.setter
|
|
69
|
+
def distance_move_increment(self, value: LengthDataVal) -> None:
|
|
70
|
+
"""Set the DistanceMoveIncrement field to a wrapper."""
|
|
71
|
+
self._proto_message.DistanceMoveIncrement.CopyFrom(value.to_proto())
|
|
72
|
+
# Update the cached wrapper if it exists
|
|
73
|
+
if hasattr(self, '_distance_move_increment_wrapper'):
|
|
74
|
+
self._distance_move_increment_wrapper._proto_message.CopyFrom(self._proto_message.DistanceMoveIncrement)
|
|
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})"
|