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,106 @@
|
|
|
1
|
+
"""Generated wrapper for FoldEntityOptions 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 FoldEntityOptionsVal:
|
|
9
|
+
"""Simple wrapper for FoldEntityOptions with Pythonic getters and setters."""
|
|
10
|
+
|
|
11
|
+
_proto_class = DipsAPI_pb2.FoldEntityOptions
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
15
|
+
"""Initialize the FoldEntityOptions 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 show_plane(self) -> bool:
|
|
28
|
+
"""Get the ShowPlane field value."""
|
|
29
|
+
return self._proto_message.ShowPlane
|
|
30
|
+
|
|
31
|
+
@show_plane.setter
|
|
32
|
+
def show_plane(self, value: bool) -> None:
|
|
33
|
+
"""Set the ShowPlane field value."""
|
|
34
|
+
self._proto_message.ShowPlane = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def show_marker_ticks(self) -> bool:
|
|
39
|
+
"""Get the ShowMarkerTicks field value."""
|
|
40
|
+
return self._proto_message.ShowMarkerTicks
|
|
41
|
+
|
|
42
|
+
@show_marker_ticks.setter
|
|
43
|
+
def show_marker_ticks(self, value: bool) -> None:
|
|
44
|
+
"""Set the ShowMarkerTicks field value."""
|
|
45
|
+
self._proto_message.ShowMarkerTicks = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def show_pole(self) -> bool:
|
|
50
|
+
"""Get the ShowPole field value."""
|
|
51
|
+
return self._proto_message.ShowPole
|
|
52
|
+
|
|
53
|
+
@show_pole.setter
|
|
54
|
+
def show_pole(self, value: bool) -> None:
|
|
55
|
+
"""Set the ShowPole field value."""
|
|
56
|
+
self._proto_message.ShowPole = value
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def show_pole_label(self) -> bool:
|
|
61
|
+
"""Get the ShowPoleLabel field value."""
|
|
62
|
+
return self._proto_message.ShowPoleLabel
|
|
63
|
+
|
|
64
|
+
@show_pole_label.setter
|
|
65
|
+
def show_pole_label(self, value: bool) -> None:
|
|
66
|
+
"""Set the ShowPoleLabel field value."""
|
|
67
|
+
self._proto_message.ShowPoleLabel = value
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def show_plane_label(self) -> bool:
|
|
72
|
+
"""Get the ShowPlaneLabel field value."""
|
|
73
|
+
return self._proto_message.ShowPlaneLabel
|
|
74
|
+
|
|
75
|
+
@show_plane_label.setter
|
|
76
|
+
def show_plane_label(self, value: bool) -> None:
|
|
77
|
+
"""Set the ShowPlaneLabel field value."""
|
|
78
|
+
self._proto_message.ShowPlaneLabel = value
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Utility methods
|
|
82
|
+
|
|
83
|
+
def to_proto(self):
|
|
84
|
+
"""Get the underlying protobuf message."""
|
|
85
|
+
return self._proto_message
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_proto(cls, proto_message):
|
|
89
|
+
"""Create wrapper from existing protobuf message."""
|
|
90
|
+
wrapper = cls()
|
|
91
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
92
|
+
return wrapper
|
|
93
|
+
|
|
94
|
+
def copy(self):
|
|
95
|
+
"""Create a copy of this wrapper."""
|
|
96
|
+
new_wrapper = self.__class__()
|
|
97
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
98
|
+
return new_wrapper
|
|
99
|
+
|
|
100
|
+
def __str__(self) -> str:
|
|
101
|
+
"""String representation."""
|
|
102
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
103
|
+
|
|
104
|
+
def __repr__(self) -> str:
|
|
105
|
+
"""Detailed string representation."""
|
|
106
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from . import DipsAPI_pb2_grpc
|
|
3
|
+
from . import DipsAPI_pb2
|
|
4
|
+
from .FoldEntityVisibilityVal import FoldEntityVisibilityVal
|
|
5
|
+
from .FoldEntityVisibilityVal import FoldEntityVisibilityVal
|
|
6
|
+
from .ValidatableResultVal import ValidatableResultVal
|
|
7
|
+
|
|
8
|
+
class FoldEntityVisibilityRef:
|
|
9
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_FoldEntityVisibility):
|
|
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) -> FoldEntityVisibilityVal:
|
|
17
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
18
|
+
ret = DipsAPI_pb2.FoldEntityVisibility()
|
|
19
|
+
ret.MergeFromString(bytes.data)
|
|
20
|
+
return FoldEntityVisibilityVal.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 SetFoldEntityOptions(self, FoldEntityVisibility: FoldEntityVisibilityVal) -> ValidatableResultVal:
|
|
27
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_FoldEntityVisibility_FoldEntityVisibility(This=self.__modelRef, Input1=(FoldEntityVisibility.to_proto() if hasattr(FoldEntityVisibility, 'to_proto') else FoldEntityVisibility))
|
|
28
|
+
ret = self.__EntityServicesStubLocal.SetFoldEntityOptions(functionParam)
|
|
29
|
+
|
|
30
|
+
return ValidatableResultVal.from_proto(ret)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def SetFoldEntityVisibility(self, Boolean: bool):
|
|
34
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_FoldEntityVisibility_Boolean(This=self.__modelRef, Input1=Boolean)
|
|
35
|
+
ret = self.__EntityServicesStubLocal.SetFoldEntityVisibility(functionParam)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""Generated wrapper for FoldEntityVisibility 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 .FoldEntityOptionsVal import FoldEntityOptionsVal
|
|
9
|
+
from .FoldEntityInfoRef import FoldEntityInfoRef
|
|
10
|
+
|
|
11
|
+
class FoldEntityVisibilityVal:
|
|
12
|
+
"""Simple wrapper for FoldEntityVisibility with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.FoldEntityVisibility
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, options: Optional[FoldEntityOptionsVal] = None, fold_entity_reference: Optional[FoldEntityInfoRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
|
|
18
|
+
"""Initialize the FoldEntityVisibility 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 options is not None:
|
|
29
|
+
self._proto_message.Options.CopyFrom(options.to_proto())
|
|
30
|
+
self._options_wrapper = options
|
|
31
|
+
if fold_entity_reference is not None:
|
|
32
|
+
self.fold_entity_reference = fold_entity_reference
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Properties
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def is_visible(self) -> bool:
|
|
39
|
+
"""Get the IsVisible field value."""
|
|
40
|
+
return self._proto_message.IsVisible
|
|
41
|
+
|
|
42
|
+
@is_visible.setter
|
|
43
|
+
def is_visible(self, value: bool) -> None:
|
|
44
|
+
"""Set the IsVisible field value."""
|
|
45
|
+
self._proto_message.IsVisible = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def options(self) -> FoldEntityOptionsVal:
|
|
50
|
+
"""Get the Options field as a wrapper."""
|
|
51
|
+
if not hasattr(self, '_options_wrapper'):
|
|
52
|
+
self._options_wrapper = FoldEntityOptionsVal(proto_message=self._proto_message.Options)
|
|
53
|
+
return self._options_wrapper
|
|
54
|
+
|
|
55
|
+
@options.setter
|
|
56
|
+
def options(self, value: FoldEntityOptionsVal) -> None:
|
|
57
|
+
"""Set the Options field to a wrapper."""
|
|
58
|
+
self._proto_message.Options.CopyFrom(value.to_proto())
|
|
59
|
+
# Update the cached wrapper if it exists
|
|
60
|
+
if hasattr(self, '_options_wrapper'):
|
|
61
|
+
self._options_wrapper._proto_message.CopyFrom(self._proto_message.Options)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def fold_entity_reference(self) -> FoldEntityInfoRef:
|
|
66
|
+
"""Get the FoldEntityReference field as a reference."""
|
|
67
|
+
return FoldEntityInfoRef(self.__channelToConnectOn, self._proto_message.FoldEntityReference)
|
|
68
|
+
|
|
69
|
+
@fold_entity_reference.setter
|
|
70
|
+
def fold_entity_reference(self, value: FoldEntityInfoRef) -> None:
|
|
71
|
+
"""Set the FoldEntityReference field to a reference."""
|
|
72
|
+
self._proto_message.FoldEntityReference.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,92 @@
|
|
|
1
|
+
"""Generated wrapper for FoldWindowEntityInfo 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 .WrappedFreehandWindowVal import WrappedFreehandWindowVal
|
|
10
|
+
|
|
11
|
+
class FoldWindowEntityInfoVal:
|
|
12
|
+
"""Simple wrapper for FoldWindowEntityInfo with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.FoldWindowEntityInfo
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, color: Optional[ColorSurrogateVal] = None, wrapped_freehand_fold_window: Optional[WrappedFreehandWindowVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the FoldWindowEntityInfo 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 wrapped_freehand_fold_window is not None:
|
|
29
|
+
self._proto_message.WrappedFreehandFoldWindow.CopyFrom(wrapped_freehand_fold_window.to_proto())
|
|
30
|
+
self._wrapped_freehand_fold_window_wrapper = wrapped_freehand_fold_window
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Properties
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def color(self) -> ColorSurrogateVal:
|
|
37
|
+
"""Get the Color field as a wrapper."""
|
|
38
|
+
if not hasattr(self, '_color_wrapper'):
|
|
39
|
+
self._color_wrapper = ColorSurrogateVal(proto_message=self._proto_message.Color)
|
|
40
|
+
return self._color_wrapper
|
|
41
|
+
|
|
42
|
+
@color.setter
|
|
43
|
+
def color(self, value: ColorSurrogateVal) -> None:
|
|
44
|
+
"""Set the Color field to a wrapper."""
|
|
45
|
+
self._proto_message.Color.CopyFrom(value.to_proto())
|
|
46
|
+
# Update the cached wrapper if it exists
|
|
47
|
+
if hasattr(self, '_color_wrapper'):
|
|
48
|
+
self._color_wrapper._proto_message.CopyFrom(self._proto_message.Color)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def wrapped_freehand_fold_window(self) -> WrappedFreehandWindowVal:
|
|
53
|
+
"""Get the WrappedFreehandFoldWindow field as a wrapper."""
|
|
54
|
+
if not hasattr(self, '_wrapped_freehand_fold_window_wrapper'):
|
|
55
|
+
self._wrapped_freehand_fold_window_wrapper = WrappedFreehandWindowVal(proto_message=self._proto_message.WrappedFreehandFoldWindow)
|
|
56
|
+
return self._wrapped_freehand_fold_window_wrapper
|
|
57
|
+
|
|
58
|
+
@wrapped_freehand_fold_window.setter
|
|
59
|
+
def wrapped_freehand_fold_window(self, value: WrappedFreehandWindowVal) -> None:
|
|
60
|
+
"""Set the WrappedFreehandFoldWindow field to a wrapper."""
|
|
61
|
+
self._proto_message.WrappedFreehandFoldWindow.CopyFrom(value.to_proto())
|
|
62
|
+
# Update the cached wrapper if it exists
|
|
63
|
+
if hasattr(self, '_wrapped_freehand_fold_window_wrapper'):
|
|
64
|
+
self._wrapped_freehand_fold_window_wrapper._proto_message.CopyFrom(self._proto_message.WrappedFreehandFoldWindow)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# Utility methods
|
|
68
|
+
|
|
69
|
+
def to_proto(self):
|
|
70
|
+
"""Get the underlying protobuf message."""
|
|
71
|
+
return self._proto_message
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_proto(cls, proto_message):
|
|
75
|
+
"""Create wrapper from existing protobuf message."""
|
|
76
|
+
wrapper = cls()
|
|
77
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
78
|
+
return wrapper
|
|
79
|
+
|
|
80
|
+
def copy(self):
|
|
81
|
+
"""Create a copy of this wrapper."""
|
|
82
|
+
new_wrapper = self.__class__()
|
|
83
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
84
|
+
return new_wrapper
|
|
85
|
+
|
|
86
|
+
def __str__(self) -> str:
|
|
87
|
+
"""String representation."""
|
|
88
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
89
|
+
|
|
90
|
+
def __repr__(self) -> str:
|
|
91
|
+
"""Detailed string representation."""
|
|
92
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from . import DipsAPI_pb2_grpc
|
|
3
|
+
from . import DipsAPI_pb2
|
|
4
|
+
from .FoldWindowEntityVisibilityVal import FoldWindowEntityVisibilityVal
|
|
5
|
+
|
|
6
|
+
class FoldWindowEntityVisibilityRef:
|
|
7
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_FoldWindowEntityVisibility):
|
|
8
|
+
self.__modelRef = ref
|
|
9
|
+
self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
|
|
10
|
+
self.__channelToConnectOn = channelToConnectOn
|
|
11
|
+
self.__EntityServicesStubLocal = DipsAPI_pb2_grpc.EntityServicesStub(channelToConnectOn)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def GetValue(self) -> FoldWindowEntityVisibilityVal:
|
|
15
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
16
|
+
ret = DipsAPI_pb2.FoldWindowEntityVisibility()
|
|
17
|
+
ret.MergeFromString(bytes.data)
|
|
18
|
+
return FoldWindowEntityVisibilityVal.from_proto(ret)
|
|
19
|
+
|
|
20
|
+
def get_model_ref(self):
|
|
21
|
+
"""Get the underlying model reference for direct protobuf operations."""
|
|
22
|
+
return self.__modelRef
|
|
23
|
+
|
|
24
|
+
def SetFoldWindowEntityVisibility(self, Boolean: bool):
|
|
25
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_FoldWindowEntityVisibility_Boolean(This=self.__modelRef, Input1=Boolean)
|
|
26
|
+
ret = self.__EntityServicesStubLocal.SetFoldWindowEntityVisibility(functionParam)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Generated wrapper for FoldWindowEntityVisibility 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 .FoldEntityInfoRef import FoldEntityInfoRef
|
|
9
|
+
|
|
10
|
+
class FoldWindowEntityVisibilityVal:
|
|
11
|
+
"""Simple wrapper for FoldWindowEntityVisibility with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.FoldWindowEntityVisibility
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, fold_entity_reference: Optional[FoldEntityInfoRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
|
|
17
|
+
"""Initialize the FoldWindowEntityVisibility 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
|
+
# Store channel for reference types
|
|
25
|
+
self.__channelToConnectOn = channel_to_connect_on
|
|
26
|
+
|
|
27
|
+
if fold_entity_reference is not None:
|
|
28
|
+
self.fold_entity_reference = fold_entity_reference
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Properties
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def is_visible(self) -> bool:
|
|
35
|
+
"""Get the IsVisible field value."""
|
|
36
|
+
return self._proto_message.IsVisible
|
|
37
|
+
|
|
38
|
+
@is_visible.setter
|
|
39
|
+
def is_visible(self, value: bool) -> None:
|
|
40
|
+
"""Set the IsVisible field value."""
|
|
41
|
+
self._proto_message.IsVisible = value
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def fold_entity_reference(self) -> FoldEntityInfoRef:
|
|
46
|
+
"""Get the FoldEntityReference field as a reference."""
|
|
47
|
+
return FoldEntityInfoRef(self.__channelToConnectOn, self._proto_message.FoldEntityReference)
|
|
48
|
+
|
|
49
|
+
@fold_entity_reference.setter
|
|
50
|
+
def fold_entity_reference(self, value: FoldEntityInfoRef) -> None:
|
|
51
|
+
"""Set the FoldEntityReference field to a reference."""
|
|
52
|
+
self._proto_message.FoldEntityReference.CopyFrom(value.get_model_ref())
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Utility methods
|
|
56
|
+
|
|
57
|
+
def to_proto(self):
|
|
58
|
+
"""Get the underlying protobuf message."""
|
|
59
|
+
return self._proto_message
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_proto(cls, proto_message):
|
|
63
|
+
"""Create wrapper from existing protobuf message."""
|
|
64
|
+
wrapper = cls()
|
|
65
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
66
|
+
return wrapper
|
|
67
|
+
|
|
68
|
+
def copy(self):
|
|
69
|
+
"""Create a copy of this wrapper."""
|
|
70
|
+
new_wrapper = self.__class__()
|
|
71
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
72
|
+
return new_wrapper
|
|
73
|
+
|
|
74
|
+
def __str__(self) -> str:
|
|
75
|
+
"""String representation."""
|
|
76
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
77
|
+
|
|
78
|
+
def __repr__(self) -> str:
|
|
79
|
+
"""Detailed string representation."""
|
|
80
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Generated wrapper for FreehandWindow 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 FreehandWindowVal:
|
|
11
|
+
"""Simple wrapper for FreehandWindow with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.FreehandWindow
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the FreehandWindow 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
|
+
|
|
25
|
+
|
|
26
|
+
# Properties
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def polygon(self) -> List[TrendPlungeVal]:
|
|
30
|
+
"""Get the Polygon field as a list of wrappers."""
|
|
31
|
+
return _ProtobufListWrapper(self._proto_message.Polygon, TrendPlungeVal)
|
|
32
|
+
|
|
33
|
+
@polygon.setter
|
|
34
|
+
def polygon(self, value: List[TrendPlungeVal]) -> None:
|
|
35
|
+
"""Set the Polygon field to a list of wrappers."""
|
|
36
|
+
if not isinstance(value, (list, tuple)):
|
|
37
|
+
raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
|
|
38
|
+
# Clear the repeated field using slice assignment
|
|
39
|
+
self._proto_message.Polygon[:] = []
|
|
40
|
+
for item in value:
|
|
41
|
+
self._proto_message.Polygon.append(item.to_proto())
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def is_wrapped(self) -> bool:
|
|
46
|
+
"""Get the IsWrapped field value."""
|
|
47
|
+
return self._proto_message.IsWrapped
|
|
48
|
+
|
|
49
|
+
@is_wrapped.setter
|
|
50
|
+
def is_wrapped(self, value: bool) -> None:
|
|
51
|
+
"""Set the IsWrapped field value."""
|
|
52
|
+
self._proto_message.IsWrapped = value
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Utility methods
|
|
56
|
+
|
|
57
|
+
def to_proto(self):
|
|
58
|
+
"""Get the underlying protobuf message."""
|
|
59
|
+
return self._proto_message
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_proto(cls, proto_message):
|
|
63
|
+
"""Create wrapper from existing protobuf message."""
|
|
64
|
+
wrapper = cls()
|
|
65
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
66
|
+
return wrapper
|
|
67
|
+
|
|
68
|
+
def copy(self):
|
|
69
|
+
"""Create a copy of this wrapper."""
|
|
70
|
+
new_wrapper = self.__class__()
|
|
71
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
72
|
+
return new_wrapper
|
|
73
|
+
|
|
74
|
+
def __str__(self) -> str:
|
|
75
|
+
"""String representation."""
|
|
76
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
77
|
+
|
|
78
|
+
def __repr__(self) -> str:
|
|
79
|
+
"""Detailed string representation."""
|
|
80
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"""Generated wrapper for FullDataFormat 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 .DataDescriptorVal import DataDescriptorVal
|
|
9
|
+
from .DataFormatterVal import DataFormatterVal
|
|
10
|
+
|
|
11
|
+
class FullDataFormatVal:
|
|
12
|
+
"""Simple wrapper for FullDataFormat with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.FullDataFormat
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, descriptor: Optional[DataDescriptorVal] = None, format: Optional[DataFormatterVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the FullDataFormat 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 descriptor is not None:
|
|
26
|
+
self._proto_message.Descriptor.CopyFrom(descriptor.to_proto())
|
|
27
|
+
self._descriptor_wrapper = descriptor
|
|
28
|
+
if format is not None:
|
|
29
|
+
self._proto_message.Format.CopyFrom(format.to_proto())
|
|
30
|
+
self._format_wrapper = format
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# Properties
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def descriptor(self) -> DataDescriptorVal:
|
|
37
|
+
"""Get the Descriptor field as a wrapper."""
|
|
38
|
+
if not hasattr(self, '_descriptor_wrapper'):
|
|
39
|
+
self._descriptor_wrapper = DataDescriptorVal(proto_message=self._proto_message.Descriptor)
|
|
40
|
+
return self._descriptor_wrapper
|
|
41
|
+
|
|
42
|
+
@descriptor.setter
|
|
43
|
+
def descriptor(self, value: DataDescriptorVal) -> None:
|
|
44
|
+
"""Set the Descriptor field to a wrapper."""
|
|
45
|
+
self._proto_message.Descriptor.CopyFrom(value.to_proto())
|
|
46
|
+
# Update the cached wrapper if it exists
|
|
47
|
+
if hasattr(self, '_descriptor_wrapper'):
|
|
48
|
+
self._descriptor_wrapper._proto_message.CopyFrom(self._proto_message.Descriptor)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def format(self) -> DataFormatterVal:
|
|
53
|
+
"""Get the Format field as a wrapper."""
|
|
54
|
+
if not hasattr(self, '_format_wrapper'):
|
|
55
|
+
self._format_wrapper = DataFormatterVal(proto_message=self._proto_message.Format)
|
|
56
|
+
return self._format_wrapper
|
|
57
|
+
|
|
58
|
+
@format.setter
|
|
59
|
+
def format(self, value: DataFormatterVal) -> None:
|
|
60
|
+
"""Set the Format field to a wrapper."""
|
|
61
|
+
self._proto_message.Format.CopyFrom(value.to_proto())
|
|
62
|
+
# Update the cached wrapper if it exists
|
|
63
|
+
if hasattr(self, '_format_wrapper'):
|
|
64
|
+
self._format_wrapper._proto_message.CopyFrom(self._proto_message.Format)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# Utility methods
|
|
68
|
+
|
|
69
|
+
def to_proto(self):
|
|
70
|
+
"""Get the underlying protobuf message."""
|
|
71
|
+
return self._proto_message
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_proto(cls, proto_message):
|
|
75
|
+
"""Create wrapper from existing protobuf message."""
|
|
76
|
+
wrapper = cls()
|
|
77
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
78
|
+
return wrapper
|
|
79
|
+
|
|
80
|
+
def copy(self):
|
|
81
|
+
"""Create a copy of this wrapper."""
|
|
82
|
+
new_wrapper = self.__class__()
|
|
83
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
84
|
+
return new_wrapper
|
|
85
|
+
|
|
86
|
+
def __str__(self) -> str:
|
|
87
|
+
"""String representation."""
|
|
88
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
89
|
+
|
|
90
|
+
def __repr__(self) -> str:
|
|
91
|
+
"""Detailed string representation."""
|
|
92
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|