added typecaster for slsdefs::ROI and added setter and getter for ROI

This commit is contained in:
2025-11-14 10:20:56 +01:00
parent f32fcf1e88
commit ec11ba5a54
3 changed files with 412 additions and 353 deletions

View File

@@ -301,6 +301,28 @@ class Detector(CppDetectorApi):
def rx_arping(self, value):
ut.set_using_dict(self.setRxArping, value)
@property
def rx_roi(self):
"""Gets the list of ROIs configured in the receiver.
Note
-----
Each ROI is represented as a tuple of (x_start, y_start, x_end, y_end). \n
If no ROIs are configured, returns an empty list.
"""
return self.getRxROI() #vector of Roi structs how represented?
@rx_roi.setter
def rx_roi(self, rois):
"""Sets the list of ROIs in the receiver.
Note
-----
Each ROI should be represented as a tuple of (x_start, y_start, x_end, y_end). \n
Example: [(0, 100, 50, 100)] \n
"""
self.setRxROI(rois)
@property
@element