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,84 @@
|
|
|
1
|
+
"""Generated wrapper for PoleEntityOptions 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 PoleEntityOptionsVal:
|
|
9
|
+
"""Simple wrapper for PoleEntityOptions with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.PoleEntityOptions
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the PoleEntityOptions 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 pole_mode(self) -> Any:
|
|
28
|
+
"""Get the PoleMode field value."""
|
|
29
|
+
return self._proto_message.PoleMode
|
|
30
|
+
|
|
31
|
+
@pole_mode.setter
|
|
32
|
+
def pole_mode(self, value: Any) -> None:
|
|
33
|
+
"""Set the PoleMode field value."""
|
|
34
|
+
self._proto_message.PoleMode = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def show_pole_planes(self) -> bool:
|
|
39
|
+
"""Get the ShowPolePlanes field value."""
|
|
40
|
+
return self._proto_message.ShowPolePlanes
|
|
41
|
+
|
|
42
|
+
@show_pole_planes.setter
|
|
43
|
+
def show_pole_planes(self, value: bool) -> None:
|
|
44
|
+
"""Set the ShowPolePlanes field value."""
|
|
45
|
+
self._proto_message.ShowPolePlanes = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def show_pole_vector_lines(self) -> bool:
|
|
50
|
+
"""Get the ShowPoleVectorLines field value."""
|
|
51
|
+
return self._proto_message.ShowPoleVectorLines
|
|
52
|
+
|
|
53
|
+
@show_pole_vector_lines.setter
|
|
54
|
+
def show_pole_vector_lines(self, value: bool) -> None:
|
|
55
|
+
"""Set the ShowPoleVectorLines field value."""
|
|
56
|
+
self._proto_message.ShowPoleVectorLines = 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,83 @@
|
|
|
1
|
+
"""Generated wrapper for PoleEntityVisibility 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 .PoleEntityOptionsVal import PoleEntityOptionsVal
|
|
9
|
+
|
|
10
|
+
class PoleEntityVisibilityVal:
|
|
11
|
+
"""Simple wrapper for PoleEntityVisibility with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.PoleEntityVisibility
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, options: Optional[PoleEntityOptionsVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the PoleEntityVisibility 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 options is not None:
|
|
25
|
+
self._proto_message.Options.CopyFrom(options.to_proto())
|
|
26
|
+
self._options_wrapper = 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 options(self) -> PoleEntityOptionsVal:
|
|
44
|
+
"""Get the Options field as a wrapper."""
|
|
45
|
+
if not hasattr(self, '_options_wrapper'):
|
|
46
|
+
self._options_wrapper = PoleEntityOptionsVal(proto_message=self._proto_message.Options)
|
|
47
|
+
return self._options_wrapper
|
|
48
|
+
|
|
49
|
+
@options.setter
|
|
50
|
+
def options(self, value: PoleEntityOptionsVal) -> None:
|
|
51
|
+
"""Set the Options field to a wrapper."""
|
|
52
|
+
self._proto_message.Options.CopyFrom(value.to_proto())
|
|
53
|
+
# Update the cached wrapper if it exists
|
|
54
|
+
if hasattr(self, '_options_wrapper'):
|
|
55
|
+
self._options_wrapper._proto_message.CopyFrom(self._proto_message.Options)
|
|
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 .PolygonToolEntityInfoVal import PolygonToolEntityInfoVal
|
|
5
|
+
from .PolygonToolEntityInfoVal import PolygonToolEntityInfoVal
|
|
6
|
+
from .ValidatableResultVal import ValidatableResultVal
|
|
7
|
+
|
|
8
|
+
class PolygonToolEntityInfoRef:
|
|
9
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_PolygonToolEntityInfo):
|
|
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) -> PolygonToolEntityInfoVal:
|
|
17
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
18
|
+
ret = DipsAPI_pb2.PolygonToolEntityInfo()
|
|
19
|
+
ret.MergeFromString(bytes.data)
|
|
20
|
+
return PolygonToolEntityInfoVal.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 RemovePolygonTool(self):
|
|
27
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_PolygonToolEntityInfo(This=self.__modelRef)
|
|
28
|
+
ret = self.__EntityServicesStubLocal.RemovePolygonTool(functionParam)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def SetPolygonToolVisibility(self, Boolean: bool):
|
|
32
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_PolygonToolEntityInfo_Boolean(This=self.__modelRef, Input1=Boolean)
|
|
33
|
+
ret = self.__EntityServicesStubLocal.SetPolygonToolVisibility(functionParam)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def UpdatePolygonTool(self, PolygonToolEntityInfo: PolygonToolEntityInfoVal) -> ValidatableResultVal:
|
|
37
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_PolygonToolEntityInfo_PolygonToolEntityInfo(This=self.__modelRef, Input1=(PolygonToolEntityInfo.to_proto() if hasattr(PolygonToolEntityInfo, 'to_proto') else PolygonToolEntityInfo))
|
|
38
|
+
ret = self.__EntityServicesStubLocal.UpdatePolygonTool(functionParam)
|
|
39
|
+
|
|
40
|
+
return ValidatableResultVal.from_proto(ret)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"""Generated wrapper for PolygonToolEntityInfo 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 .FillFormatVal import FillFormatVal
|
|
9
|
+
from .LineFormatVal import LineFormatVal
|
|
10
|
+
from .Vector2DVal import Vector2DVal
|
|
11
|
+
|
|
12
|
+
class PolygonToolEntityInfoVal:
|
|
13
|
+
"""Simple wrapper for PolygonToolEntityInfo with Pythonic getters and setters."""
|
|
14
|
+
|
|
15
|
+
_proto_class = DipsAPI_pb2.PolygonToolEntityInfo
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def __init__(self, line_format: Optional[LineFormatVal] = None, fill_format: Optional[FillFormatVal] = None, proto_message: Optional[Any] = None):
|
|
19
|
+
"""Initialize the PolygonToolEntityInfo wrapper."""
|
|
20
|
+
# Initialize the protobuf message
|
|
21
|
+
if proto_message is not None:
|
|
22
|
+
self._proto_message = proto_message
|
|
23
|
+
else:
|
|
24
|
+
self._proto_message = self._proto_class()
|
|
25
|
+
|
|
26
|
+
if line_format is not None:
|
|
27
|
+
self._proto_message.LineFormat.CopyFrom(line_format.to_proto())
|
|
28
|
+
self._line_format_wrapper = line_format
|
|
29
|
+
if fill_format is not None:
|
|
30
|
+
self._proto_message.FillFormat.CopyFrom(fill_format.to_proto())
|
|
31
|
+
self._fill_format_wrapper = fill_format
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Properties
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def is_visible(self) -> bool:
|
|
38
|
+
"""Get the IsVisible field value."""
|
|
39
|
+
return self._proto_message.IsVisible
|
|
40
|
+
|
|
41
|
+
@is_visible.setter
|
|
42
|
+
def is_visible(self, value: bool) -> None:
|
|
43
|
+
"""Set the IsVisible field value."""
|
|
44
|
+
self._proto_message.IsVisible = value
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def name(self) -> str:
|
|
49
|
+
"""Get the Name field value."""
|
|
50
|
+
return self._proto_message.Name
|
|
51
|
+
|
|
52
|
+
@name.setter
|
|
53
|
+
def name(self, value: str) -> None:
|
|
54
|
+
"""Set the Name field value."""
|
|
55
|
+
self._proto_message.Name = value
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def line_format(self) -> LineFormatVal:
|
|
60
|
+
"""Get the LineFormat field as a wrapper."""
|
|
61
|
+
if not hasattr(self, '_line_format_wrapper'):
|
|
62
|
+
self._line_format_wrapper = LineFormatVal(proto_message=self._proto_message.LineFormat)
|
|
63
|
+
return self._line_format_wrapper
|
|
64
|
+
|
|
65
|
+
@line_format.setter
|
|
66
|
+
def line_format(self, value: LineFormatVal) -> None:
|
|
67
|
+
"""Set the LineFormat field to a wrapper."""
|
|
68
|
+
self._proto_message.LineFormat.CopyFrom(value.to_proto())
|
|
69
|
+
# Update the cached wrapper if it exists
|
|
70
|
+
if hasattr(self, '_line_format_wrapper'):
|
|
71
|
+
self._line_format_wrapper._proto_message.CopyFrom(self._proto_message.LineFormat)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def fill_format(self) -> FillFormatVal:
|
|
76
|
+
"""Get the FillFormat field as a wrapper."""
|
|
77
|
+
if not hasattr(self, '_fill_format_wrapper'):
|
|
78
|
+
self._fill_format_wrapper = FillFormatVal(proto_message=self._proto_message.FillFormat)
|
|
79
|
+
return self._fill_format_wrapper
|
|
80
|
+
|
|
81
|
+
@fill_format.setter
|
|
82
|
+
def fill_format(self, value: FillFormatVal) -> None:
|
|
83
|
+
"""Set the FillFormat field to a wrapper."""
|
|
84
|
+
self._proto_message.FillFormat.CopyFrom(value.to_proto())
|
|
85
|
+
# Update the cached wrapper if it exists
|
|
86
|
+
if hasattr(self, '_fill_format_wrapper'):
|
|
87
|
+
self._fill_format_wrapper._proto_message.CopyFrom(self._proto_message.FillFormat)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def points(self) -> List[Vector2DVal]:
|
|
92
|
+
"""Get the Points field as a list of wrappers."""
|
|
93
|
+
return _ProtobufListWrapper(self._proto_message.Points, Vector2DVal)
|
|
94
|
+
|
|
95
|
+
@points.setter
|
|
96
|
+
def points(self, value: List[Vector2DVal]) -> None:
|
|
97
|
+
"""Set the Points field to a list of wrappers."""
|
|
98
|
+
if not isinstance(value, (list, tuple)):
|
|
99
|
+
raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
|
|
100
|
+
# Clear the repeated field using slice assignment
|
|
101
|
+
self._proto_message.Points[:] = []
|
|
102
|
+
for item in value:
|
|
103
|
+
self._proto_message.Points.append(item.to_proto())
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# Utility methods
|
|
107
|
+
|
|
108
|
+
def to_proto(self):
|
|
109
|
+
"""Get the underlying protobuf message."""
|
|
110
|
+
return self._proto_message
|
|
111
|
+
|
|
112
|
+
@classmethod
|
|
113
|
+
def from_proto(cls, proto_message):
|
|
114
|
+
"""Create wrapper from existing protobuf message."""
|
|
115
|
+
wrapper = cls()
|
|
116
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
117
|
+
return wrapper
|
|
118
|
+
|
|
119
|
+
def copy(self):
|
|
120
|
+
"""Create a copy of this wrapper."""
|
|
121
|
+
new_wrapper = self.__class__()
|
|
122
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
123
|
+
return new_wrapper
|
|
124
|
+
|
|
125
|
+
def __str__(self) -> str:
|
|
126
|
+
"""String representation."""
|
|
127
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
128
|
+
|
|
129
|
+
def __repr__(self) -> str:
|
|
130
|
+
"""Detailed string representation."""
|
|
131
|
+
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 .PolylineToolEntityInfoVal import PolylineToolEntityInfoVal
|
|
5
|
+
from .PolylineToolEntityInfoVal import PolylineToolEntityInfoVal
|
|
6
|
+
from .ValidatableResultVal import ValidatableResultVal
|
|
7
|
+
|
|
8
|
+
class PolylineToolEntityInfoRef:
|
|
9
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_PolylineToolEntityInfo):
|
|
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) -> PolylineToolEntityInfoVal:
|
|
17
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
18
|
+
ret = DipsAPI_pb2.PolylineToolEntityInfo()
|
|
19
|
+
ret.MergeFromString(bytes.data)
|
|
20
|
+
return PolylineToolEntityInfoVal.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 RemovePolylineTool(self):
|
|
27
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_PolylineToolEntityInfo(This=self.__modelRef)
|
|
28
|
+
ret = self.__EntityServicesStubLocal.RemovePolylineTool(functionParam)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def SetPolylineToolVisibility(self, Boolean: bool):
|
|
32
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_PolylineToolEntityInfo_Boolean(This=self.__modelRef, Input1=Boolean)
|
|
33
|
+
ret = self.__EntityServicesStubLocal.SetPolylineToolVisibility(functionParam)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def UpdatePolylineTool(self, PolylineToolEntityInfo: PolylineToolEntityInfoVal) -> ValidatableResultVal:
|
|
37
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_PolylineToolEntityInfo_PolylineToolEntityInfo(This=self.__modelRef, Input1=(PolylineToolEntityInfo.to_proto() if hasattr(PolylineToolEntityInfo, 'to_proto') else PolylineToolEntityInfo))
|
|
38
|
+
ret = self.__EntityServicesStubLocal.UpdatePolylineTool(functionParam)
|
|
39
|
+
|
|
40
|
+
return ValidatableResultVal.from_proto(ret)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"""Generated wrapper for PolylineToolEntityInfo 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 .LineFormatVal import LineFormatVal
|
|
9
|
+
from .Vector2DVal import Vector2DVal
|
|
10
|
+
|
|
11
|
+
class PolylineToolEntityInfoVal:
|
|
12
|
+
"""Simple wrapper for PolylineToolEntityInfo with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.PolylineToolEntityInfo
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, line_format: Optional[LineFormatVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the PolylineToolEntityInfo 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 line_format is not None:
|
|
26
|
+
self._proto_message.LineFormat.CopyFrom(line_format.to_proto())
|
|
27
|
+
self._line_format_wrapper = line_format
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Properties
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def is_visible(self) -> bool:
|
|
34
|
+
"""Get the IsVisible field value."""
|
|
35
|
+
return self._proto_message.IsVisible
|
|
36
|
+
|
|
37
|
+
@is_visible.setter
|
|
38
|
+
def is_visible(self, value: bool) -> None:
|
|
39
|
+
"""Set the IsVisible field value."""
|
|
40
|
+
self._proto_message.IsVisible = value
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def name(self) -> str:
|
|
45
|
+
"""Get the Name field value."""
|
|
46
|
+
return self._proto_message.Name
|
|
47
|
+
|
|
48
|
+
@name.setter
|
|
49
|
+
def name(self, value: str) -> None:
|
|
50
|
+
"""Set the Name field value."""
|
|
51
|
+
self._proto_message.Name = value
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def line_format(self) -> LineFormatVal:
|
|
56
|
+
"""Get the LineFormat field as a wrapper."""
|
|
57
|
+
if not hasattr(self, '_line_format_wrapper'):
|
|
58
|
+
self._line_format_wrapper = LineFormatVal(proto_message=self._proto_message.LineFormat)
|
|
59
|
+
return self._line_format_wrapper
|
|
60
|
+
|
|
61
|
+
@line_format.setter
|
|
62
|
+
def line_format(self, value: LineFormatVal) -> None:
|
|
63
|
+
"""Set the LineFormat field to a wrapper."""
|
|
64
|
+
self._proto_message.LineFormat.CopyFrom(value.to_proto())
|
|
65
|
+
# Update the cached wrapper if it exists
|
|
66
|
+
if hasattr(self, '_line_format_wrapper'):
|
|
67
|
+
self._line_format_wrapper._proto_message.CopyFrom(self._proto_message.LineFormat)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def points(self) -> List[Vector2DVal]:
|
|
72
|
+
"""Get the Points field as a list of wrappers."""
|
|
73
|
+
return _ProtobufListWrapper(self._proto_message.Points, Vector2DVal)
|
|
74
|
+
|
|
75
|
+
@points.setter
|
|
76
|
+
def points(self, value: List[Vector2DVal]) -> None:
|
|
77
|
+
"""Set the Points field to a list of wrappers."""
|
|
78
|
+
if not isinstance(value, (list, tuple)):
|
|
79
|
+
raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
|
|
80
|
+
# Clear the repeated field using slice assignment
|
|
81
|
+
self._proto_message.Points[:] = []
|
|
82
|
+
for item in value:
|
|
83
|
+
self._proto_message.Points.append(item.to_proto())
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Utility methods
|
|
87
|
+
|
|
88
|
+
def to_proto(self):
|
|
89
|
+
"""Get the underlying protobuf message."""
|
|
90
|
+
return self._proto_message
|
|
91
|
+
|
|
92
|
+
@classmethod
|
|
93
|
+
def from_proto(cls, proto_message):
|
|
94
|
+
"""Create wrapper from existing protobuf message."""
|
|
95
|
+
wrapper = cls()
|
|
96
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
97
|
+
return wrapper
|
|
98
|
+
|
|
99
|
+
def copy(self):
|
|
100
|
+
"""Create a copy of this wrapper."""
|
|
101
|
+
new_wrapper = self.__class__()
|
|
102
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
103
|
+
return new_wrapper
|
|
104
|
+
|
|
105
|
+
def __str__(self) -> str:
|
|
106
|
+
"""String representation."""
|
|
107
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
108
|
+
|
|
109
|
+
def __repr__(self) -> str:
|
|
110
|
+
"""Detailed string representation."""
|
|
111
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
dips/ProcessedDataVal.py
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"""Generated wrapper for ProcessedData 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 .TrendPlungeVal import TrendPlungeVal
|
|
9
|
+
|
|
10
|
+
class ProcessedDataVal:
|
|
11
|
+
"""Simple wrapper for ProcessedData with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.ProcessedData
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, orientation: Optional[TrendPlungeVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the ProcessedData 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 orientation is not None:
|
|
25
|
+
self._proto_message.Orientation.CopyFrom(orientation.to_proto())
|
|
26
|
+
self._orientation_wrapper = orientation
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def orientation(self) -> TrendPlungeVal:
|
|
33
|
+
"""Get the Orientation field as a wrapper."""
|
|
34
|
+
if not hasattr(self, '_orientation_wrapper'):
|
|
35
|
+
self._orientation_wrapper = TrendPlungeVal(proto_message=self._proto_message.Orientation)
|
|
36
|
+
return self._orientation_wrapper
|
|
37
|
+
|
|
38
|
+
@orientation.setter
|
|
39
|
+
def orientation(self, value: TrendPlungeVal) -> None:
|
|
40
|
+
"""Set the Orientation field to a wrapper."""
|
|
41
|
+
self._proto_message.Orientation.CopyFrom(value.to_proto())
|
|
42
|
+
# Update the cached wrapper if it exists
|
|
43
|
+
if hasattr(self, '_orientation_wrapper'):
|
|
44
|
+
self._orientation_wrapper._proto_message.CopyFrom(self._proto_message.Orientation)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def weight(self) -> float:
|
|
49
|
+
"""Get the Weight field value."""
|
|
50
|
+
return self._proto_message.Weight
|
|
51
|
+
|
|
52
|
+
@weight.setter
|
|
53
|
+
def weight(self, value: float) -> None:
|
|
54
|
+
"""Set the Weight field value."""
|
|
55
|
+
self._proto_message.Weight = value
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def quantity(self) -> float:
|
|
60
|
+
"""Get the Quantity field value."""
|
|
61
|
+
return self._proto_message.Quantity
|
|
62
|
+
|
|
63
|
+
@quantity.setter
|
|
64
|
+
def quantity(self, value: float) -> None:
|
|
65
|
+
"""Set the Quantity field value."""
|
|
66
|
+
self._proto_message.Quantity = value
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# Utility methods
|
|
70
|
+
|
|
71
|
+
def to_proto(self):
|
|
72
|
+
"""Get the underlying protobuf message."""
|
|
73
|
+
return self._proto_message
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_proto(cls, proto_message):
|
|
77
|
+
"""Create wrapper from existing protobuf message."""
|
|
78
|
+
wrapper = cls()
|
|
79
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
80
|
+
return wrapper
|
|
81
|
+
|
|
82
|
+
def copy(self):
|
|
83
|
+
"""Create a copy of this wrapper."""
|
|
84
|
+
new_wrapper = self.__class__()
|
|
85
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
86
|
+
return new_wrapper
|
|
87
|
+
|
|
88
|
+
def __str__(self) -> str:
|
|
89
|
+
"""String representation."""
|
|
90
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
91
|
+
|
|
92
|
+
def __repr__(self) -> str:
|
|
93
|
+
"""Detailed string representation."""
|
|
94
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|