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,193 @@
|
|
|
1
|
+
"""Generated wrapper for ContourOptions 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 .CustomRangeVal import CustomRangeVal
|
|
10
|
+
|
|
11
|
+
class ContourOptionsVal:
|
|
12
|
+
"""Simple wrapper for ContourOptions with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.ContourOptions
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, custom_range: Optional[CustomRangeVal] = None, min_color: Optional[ColorSurrogateVal] = None, max_color: Optional[ColorSurrogateVal] = None, proto_message: Optional[Any] = None):
|
|
18
|
+
"""Initialize the ContourOptions 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 custom_range is not None:
|
|
26
|
+
self._proto_message.CustomRange.CopyFrom(custom_range.to_proto())
|
|
27
|
+
self._custom_range_wrapper = custom_range
|
|
28
|
+
if min_color is not None:
|
|
29
|
+
self._proto_message.MinColor.CopyFrom(min_color.to_proto())
|
|
30
|
+
self._min_color_wrapper = min_color
|
|
31
|
+
if max_color is not None:
|
|
32
|
+
self._proto_message.MaxColor.CopyFrom(max_color.to_proto())
|
|
33
|
+
self._max_color_wrapper = max_color
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Properties
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def custom_range(self) -> CustomRangeVal:
|
|
40
|
+
"""Get the CustomRange field as a wrapper."""
|
|
41
|
+
if not hasattr(self, '_custom_range_wrapper'):
|
|
42
|
+
self._custom_range_wrapper = CustomRangeVal(proto_message=self._proto_message.CustomRange)
|
|
43
|
+
return self._custom_range_wrapper
|
|
44
|
+
|
|
45
|
+
@custom_range.setter
|
|
46
|
+
def custom_range(self, value: CustomRangeVal) -> None:
|
|
47
|
+
"""Set the CustomRange field to a wrapper."""
|
|
48
|
+
self._proto_message.CustomRange.CopyFrom(value.to_proto())
|
|
49
|
+
# Update the cached wrapper if it exists
|
|
50
|
+
if hasattr(self, '_custom_range_wrapper'):
|
|
51
|
+
self._custom_range_wrapper._proto_message.CopyFrom(self._proto_message.CustomRange)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def intervals(self) -> int:
|
|
56
|
+
"""Get the Intervals field value."""
|
|
57
|
+
return self._proto_message.Intervals
|
|
58
|
+
|
|
59
|
+
@intervals.setter
|
|
60
|
+
def intervals(self, value: int) -> None:
|
|
61
|
+
"""Set the Intervals field value."""
|
|
62
|
+
self._proto_message.Intervals = value
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def contour_mode(self) -> Any:
|
|
67
|
+
"""Get the ContourMode field value."""
|
|
68
|
+
return self._proto_message.ContourMode
|
|
69
|
+
|
|
70
|
+
@contour_mode.setter
|
|
71
|
+
def contour_mode(self, value: Any) -> None:
|
|
72
|
+
"""Set the ContourMode field value."""
|
|
73
|
+
self._proto_message.ContourMode = value
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def min_color(self) -> ColorSurrogateVal:
|
|
78
|
+
"""Get the MinColor field as a wrapper."""
|
|
79
|
+
if not hasattr(self, '_min_color_wrapper'):
|
|
80
|
+
self._min_color_wrapper = ColorSurrogateVal(proto_message=self._proto_message.MinColor)
|
|
81
|
+
return self._min_color_wrapper
|
|
82
|
+
|
|
83
|
+
@min_color.setter
|
|
84
|
+
def min_color(self, value: ColorSurrogateVal) -> None:
|
|
85
|
+
"""Set the MinColor field to a wrapper."""
|
|
86
|
+
self._proto_message.MinColor.CopyFrom(value.to_proto())
|
|
87
|
+
# Update the cached wrapper if it exists
|
|
88
|
+
if hasattr(self, '_min_color_wrapper'):
|
|
89
|
+
self._min_color_wrapper._proto_message.CopyFrom(self._proto_message.MinColor)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def max_color(self) -> ColorSurrogateVal:
|
|
94
|
+
"""Get the MaxColor field as a wrapper."""
|
|
95
|
+
if not hasattr(self, '_max_color_wrapper'):
|
|
96
|
+
self._max_color_wrapper = ColorSurrogateVal(proto_message=self._proto_message.MaxColor)
|
|
97
|
+
return self._max_color_wrapper
|
|
98
|
+
|
|
99
|
+
@max_color.setter
|
|
100
|
+
def max_color(self, value: ColorSurrogateVal) -> None:
|
|
101
|
+
"""Set the MaxColor field to a wrapper."""
|
|
102
|
+
self._proto_message.MaxColor.CopyFrom(value.to_proto())
|
|
103
|
+
# Update the cached wrapper if it exists
|
|
104
|
+
if hasattr(self, '_max_color_wrapper'):
|
|
105
|
+
self._max_color_wrapper._proto_message.CopyFrom(self._proto_message.MaxColor)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def color_interpolation_method(self) -> Any:
|
|
110
|
+
"""Get the ColorInterpolationMethod field value."""
|
|
111
|
+
return self._proto_message.ColorInterpolationMethod
|
|
112
|
+
|
|
113
|
+
@color_interpolation_method.setter
|
|
114
|
+
def color_interpolation_method(self, value: Any) -> None:
|
|
115
|
+
"""Set the ColorInterpolationMethod field value."""
|
|
116
|
+
self._proto_message.ColorInterpolationMethod = value
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def fill_below_minimum(self) -> bool:
|
|
121
|
+
"""Get the FillBelowMinimum field value."""
|
|
122
|
+
return self._proto_message.FillBelowMinimum
|
|
123
|
+
|
|
124
|
+
@fill_below_minimum.setter
|
|
125
|
+
def fill_below_minimum(self, value: bool) -> None:
|
|
126
|
+
"""Set the FillBelowMinimum field value."""
|
|
127
|
+
self._proto_message.FillBelowMinimum = value
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def fill_above_maximum(self) -> bool:
|
|
132
|
+
"""Get the FillAboveMaximum field value."""
|
|
133
|
+
return self._proto_message.FillAboveMaximum
|
|
134
|
+
|
|
135
|
+
@fill_above_maximum.setter
|
|
136
|
+
def fill_above_maximum(self, value: bool) -> None:
|
|
137
|
+
"""Set the FillAboveMaximum field value."""
|
|
138
|
+
self._proto_message.FillAboveMaximum = value
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def custom_colors(self) -> List[ColorSurrogateVal]:
|
|
143
|
+
"""Get the CustomColors field as a list of wrappers."""
|
|
144
|
+
return _ProtobufListWrapper(self._proto_message.CustomColors, ColorSurrogateVal)
|
|
145
|
+
|
|
146
|
+
@custom_colors.setter
|
|
147
|
+
def custom_colors(self, value: List[ColorSurrogateVal]) -> None:
|
|
148
|
+
"""Set the CustomColors field to a list of wrappers."""
|
|
149
|
+
if not isinstance(value, (list, tuple)):
|
|
150
|
+
raise TypeError(f"Expected list or tuple, got {type(value).__name__}")
|
|
151
|
+
# Clear the repeated field using slice assignment
|
|
152
|
+
self._proto_message.CustomColors[:] = []
|
|
153
|
+
for item in value:
|
|
154
|
+
self._proto_message.CustomColors.append(item.to_proto())
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def contour_color_table_method(self) -> Any:
|
|
159
|
+
"""Get the ContourColorTableMethod field value."""
|
|
160
|
+
return self._proto_message.ContourColorTableMethod
|
|
161
|
+
|
|
162
|
+
@contour_color_table_method.setter
|
|
163
|
+
def contour_color_table_method(self, value: Any) -> None:
|
|
164
|
+
"""Set the ContourColorTableMethod field value."""
|
|
165
|
+
self._proto_message.ContourColorTableMethod = value
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# Utility methods
|
|
169
|
+
|
|
170
|
+
def to_proto(self):
|
|
171
|
+
"""Get the underlying protobuf message."""
|
|
172
|
+
return self._proto_message
|
|
173
|
+
|
|
174
|
+
@classmethod
|
|
175
|
+
def from_proto(cls, proto_message):
|
|
176
|
+
"""Create wrapper from existing protobuf message."""
|
|
177
|
+
wrapper = cls()
|
|
178
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
179
|
+
return wrapper
|
|
180
|
+
|
|
181
|
+
def copy(self):
|
|
182
|
+
"""Create a copy of this wrapper."""
|
|
183
|
+
new_wrapper = self.__class__()
|
|
184
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
185
|
+
return new_wrapper
|
|
186
|
+
|
|
187
|
+
def __str__(self) -> str:
|
|
188
|
+
"""String representation."""
|
|
189
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
190
|
+
|
|
191
|
+
def __repr__(self) -> str:
|
|
192
|
+
"""Detailed string representation."""
|
|
193
|
+
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 .CumulativeChartViewVal import CumulativeChartViewVal
|
|
5
|
+
from .DataFilterRef import DataFilterRef as DataFilter_RefType
|
|
6
|
+
|
|
7
|
+
class CumulativeChartViewRef:
|
|
8
|
+
def __init__(self, channelToConnectOn, ref: DipsAPI_pb2.ProtoReference_CumulativeChartView):
|
|
9
|
+
self.__modelRef = ref
|
|
10
|
+
self.__refManagerStub = DipsAPI_pb2_grpc.nSameModuleReferenceAccessorStub(channelToConnectOn)
|
|
11
|
+
self.__channelToConnectOn = channelToConnectOn
|
|
12
|
+
self.__CumulativeChartServicesStubLocal = DipsAPI_pb2_grpc.CumulativeChartServicesStub(channelToConnectOn)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def GetValue(self) -> CumulativeChartViewVal:
|
|
16
|
+
bytes = self.__refManagerStub.GetValue(self.__modelRef.ID)
|
|
17
|
+
ret = DipsAPI_pb2.CumulativeChartView()
|
|
18
|
+
ret.MergeFromString(bytes.data)
|
|
19
|
+
return CumulativeChartViewVal.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 CloseCumulativeChartView(self):
|
|
26
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_CumulativeChartView(This=self.__modelRef)
|
|
27
|
+
ret = self.__CumulativeChartServicesStubLocal.CloseCumulativeChartView(functionParam)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def GetActiveDataFilter(self) -> DataFilter_RefType:
|
|
31
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_CumulativeChartView(This=self.__modelRef)
|
|
32
|
+
ret = self.__CumulativeChartServicesStubLocal.GetActiveDataFilter(functionParam)
|
|
33
|
+
|
|
34
|
+
return DataFilter_RefType(self.__channelToConnectOn, ret)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def SetActiveDataFilter(self, DataFilter: DataFilter_RefType):
|
|
38
|
+
functionParam = DipsAPI_pb2.ProtoMemberFunction_ProtoReference_CumulativeChartView_ProtoReference_DataFilter(This=self.__modelRef, Input1=DataFilter.get_model_ref())
|
|
39
|
+
ret = self.__CumulativeChartServicesStubLocal.SetActiveDataFilter(functionParam)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""Generated wrapper for CumulativeChartView 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 .CumulativePlotSettingsVal import CumulativePlotSettingsVal
|
|
9
|
+
from .DataFilterRef import DataFilterRef
|
|
10
|
+
|
|
11
|
+
class CumulativeChartViewVal:
|
|
12
|
+
"""Simple wrapper for CumulativeChartView with Pythonic getters and setters."""
|
|
13
|
+
|
|
14
|
+
_proto_class = DipsAPI_pb2.CumulativeChartView
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __init__(self, cumulative_plot_settings: Optional[CumulativePlotSettingsVal] = None, active_filter: Optional[DataFilterRef] = None, proto_message: Optional[Any] = None, channel_to_connect_on: Optional[Any] = None):
|
|
18
|
+
"""Initialize the CumulativeChartView 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 cumulative_plot_settings is not None:
|
|
29
|
+
self._proto_message.CumulativePlotSettings.CopyFrom(cumulative_plot_settings.to_proto())
|
|
30
|
+
self._cumulative_plot_settings_wrapper = cumulative_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 cumulative_plot_settings(self) -> CumulativePlotSettingsVal:
|
|
50
|
+
"""Get the CumulativePlotSettings field as a wrapper."""
|
|
51
|
+
if not hasattr(self, '_cumulative_plot_settings_wrapper'):
|
|
52
|
+
self._cumulative_plot_settings_wrapper = CumulativePlotSettingsVal(proto_message=self._proto_message.CumulativePlotSettings)
|
|
53
|
+
return self._cumulative_plot_settings_wrapper
|
|
54
|
+
|
|
55
|
+
@cumulative_plot_settings.setter
|
|
56
|
+
def cumulative_plot_settings(self, value: CumulativePlotSettingsVal) -> None:
|
|
57
|
+
"""Set the CumulativePlotSettings field to a wrapper."""
|
|
58
|
+
self._proto_message.CumulativePlotSettings.CopyFrom(value.to_proto())
|
|
59
|
+
# Update the cached wrapper if it exists
|
|
60
|
+
if hasattr(self, '_cumulative_plot_settings_wrapper'):
|
|
61
|
+
self._cumulative_plot_settings_wrapper._proto_message.CopyFrom(self._proto_message.CumulativePlotSettings)
|
|
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,94 @@
|
|
|
1
|
+
"""Generated wrapper for CumulativePlotSettings 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
|
+
|
|
10
|
+
class CumulativePlotSettingsVal:
|
|
11
|
+
"""Simple wrapper for CumulativePlotSettings with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.CumulativePlotSettings
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, selected_column: Optional[DataDescriptorVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the CumulativePlotSettings 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 selected_column is not None:
|
|
25
|
+
self._proto_message.SelectedColumn.CopyFrom(selected_column.to_proto())
|
|
26
|
+
self._selected_column_wrapper = selected_column
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Properties
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def selected_column(self) -> DataDescriptorVal:
|
|
33
|
+
"""Get the SelectedColumn field as a wrapper."""
|
|
34
|
+
if not hasattr(self, '_selected_column_wrapper'):
|
|
35
|
+
self._selected_column_wrapper = DataDescriptorVal(proto_message=self._proto_message.SelectedColumn)
|
|
36
|
+
return self._selected_column_wrapper
|
|
37
|
+
|
|
38
|
+
@selected_column.setter
|
|
39
|
+
def selected_column(self, value: DataDescriptorVal) -> None:
|
|
40
|
+
"""Set the SelectedColumn field to a wrapper."""
|
|
41
|
+
self._proto_message.SelectedColumn.CopyFrom(value.to_proto())
|
|
42
|
+
# Update the cached wrapper if it exists
|
|
43
|
+
if hasattr(self, '_selected_column_wrapper'):
|
|
44
|
+
self._selected_column_wrapper._proto_message.CopyFrom(self._proto_message.SelectedColumn)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def num_bins(self) -> int:
|
|
49
|
+
"""Get the NumBins field value."""
|
|
50
|
+
return self._proto_message.NumBins
|
|
51
|
+
|
|
52
|
+
@num_bins.setter
|
|
53
|
+
def num_bins(self, value: int) -> None:
|
|
54
|
+
"""Set the NumBins field value."""
|
|
55
|
+
self._proto_message.NumBins = value
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def is_weighted(self) -> bool:
|
|
60
|
+
"""Get the IsWeighted field value."""
|
|
61
|
+
return self._proto_message.IsWeighted
|
|
62
|
+
|
|
63
|
+
@is_weighted.setter
|
|
64
|
+
def is_weighted(self, value: bool) -> None:
|
|
65
|
+
"""Set the IsWeighted field value."""
|
|
66
|
+
self._proto_message.IsWeighted = 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})"
|
dips/CurvedWindowVal.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"""Generated wrapper for CurvedWindow 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 CurvedWindowVal:
|
|
11
|
+
"""Simple wrapper for CurvedWindow with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.CurvedWindow
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, first_corner: Optional[TrendPlungeVal] = None, second_corner: Optional[TrendPlungeVal] = None, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the CurvedWindow 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 first_corner is not None:
|
|
25
|
+
self._proto_message.FirstCorner.CopyFrom(first_corner.to_proto())
|
|
26
|
+
self._first_corner_wrapper = first_corner
|
|
27
|
+
if second_corner is not None:
|
|
28
|
+
self._proto_message.SecondCorner.CopyFrom(second_corner.to_proto())
|
|
29
|
+
self._second_corner_wrapper = second_corner
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Properties
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def id(self) -> str:
|
|
36
|
+
"""Get the ID field value."""
|
|
37
|
+
return self._proto_message.ID
|
|
38
|
+
|
|
39
|
+
@id.setter
|
|
40
|
+
def id(self, value: str) -> None:
|
|
41
|
+
"""Set the ID field value."""
|
|
42
|
+
self._proto_message.ID = value
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def first_corner(self) -> TrendPlungeVal:
|
|
47
|
+
"""Get the FirstCorner field as a wrapper."""
|
|
48
|
+
if not hasattr(self, '_first_corner_wrapper'):
|
|
49
|
+
self._first_corner_wrapper = TrendPlungeVal(proto_message=self._proto_message.FirstCorner)
|
|
50
|
+
return self._first_corner_wrapper
|
|
51
|
+
|
|
52
|
+
@first_corner.setter
|
|
53
|
+
def first_corner(self, value: TrendPlungeVal) -> None:
|
|
54
|
+
"""Set the FirstCorner field to a wrapper."""
|
|
55
|
+
self._proto_message.FirstCorner.CopyFrom(value.to_proto())
|
|
56
|
+
# Update the cached wrapper if it exists
|
|
57
|
+
if hasattr(self, '_first_corner_wrapper'):
|
|
58
|
+
self._first_corner_wrapper._proto_message.CopyFrom(self._proto_message.FirstCorner)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def second_corner(self) -> TrendPlungeVal:
|
|
63
|
+
"""Get the SecondCorner field as a wrapper."""
|
|
64
|
+
if not hasattr(self, '_second_corner_wrapper'):
|
|
65
|
+
self._second_corner_wrapper = TrendPlungeVal(proto_message=self._proto_message.SecondCorner)
|
|
66
|
+
return self._second_corner_wrapper
|
|
67
|
+
|
|
68
|
+
@second_corner.setter
|
|
69
|
+
def second_corner(self, value: TrendPlungeVal) -> None:
|
|
70
|
+
"""Set the SecondCorner field to a wrapper."""
|
|
71
|
+
self._proto_message.SecondCorner.CopyFrom(value.to_proto())
|
|
72
|
+
# Update the cached wrapper if it exists
|
|
73
|
+
if hasattr(self, '_second_corner_wrapper'):
|
|
74
|
+
self._second_corner_wrapper._proto_message.CopyFrom(self._proto_message.SecondCorner)
|
|
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})"
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Generated wrapper for CustomColumnCollection 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 .FullDataFormatVal import FullDataFormatVal
|
|
9
|
+
|
|
10
|
+
class CustomColumnCollectionVal:
|
|
11
|
+
"""Simple wrapper for CustomColumnCollection with Pythonic getters and setters."""
|
|
12
|
+
|
|
13
|
+
_proto_class = DipsAPI_pb2.CustomColumnCollection
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __init__(self, proto_message: Optional[Any] = None):
|
|
17
|
+
"""Initialize the CustomColumnCollection 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 custom_columns(self) -> List[FullDataFormatVal]:
|
|
30
|
+
"""Get the CustomColumns field as a list of wrappers."""
|
|
31
|
+
return _ProtobufListWrapper(self._proto_message.CustomColumns, FullDataFormatVal)
|
|
32
|
+
|
|
33
|
+
@custom_columns.setter
|
|
34
|
+
def custom_columns(self, value: List[FullDataFormatVal]) -> None:
|
|
35
|
+
"""Set the CustomColumns 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.CustomColumns[:] = []
|
|
40
|
+
for item in value:
|
|
41
|
+
self._proto_message.CustomColumns.append(item.to_proto())
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# Utility methods
|
|
45
|
+
|
|
46
|
+
def to_proto(self):
|
|
47
|
+
"""Get the underlying protobuf message."""
|
|
48
|
+
return self._proto_message
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_proto(cls, proto_message):
|
|
52
|
+
"""Create wrapper from existing protobuf message."""
|
|
53
|
+
wrapper = cls()
|
|
54
|
+
wrapper._proto_message.CopyFrom(proto_message)
|
|
55
|
+
return wrapper
|
|
56
|
+
|
|
57
|
+
def copy(self):
|
|
58
|
+
"""Create a copy of this wrapper."""
|
|
59
|
+
new_wrapper = self.__class__()
|
|
60
|
+
new_wrapper._proto_message.CopyFrom(self._proto_message)
|
|
61
|
+
return new_wrapper
|
|
62
|
+
|
|
63
|
+
def __str__(self) -> str:
|
|
64
|
+
"""String representation."""
|
|
65
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|
|
66
|
+
|
|
67
|
+
def __repr__(self) -> str:
|
|
68
|
+
"""Detailed string representation."""
|
|
69
|
+
return f"{self.__class__.__name__}({self._proto_message})"
|