RARegionOfInterestCube#
- class ansys.rocky.app.ra_region_of_interest_cube.RARegionOfInterestCube#
Bases:
ansys.rocky.app.ra_grid_process_element.RAGridProcessElementItem,ansys.rocky.app.motion._with_movement_mixin._WithMovementMixin,ansys.rocky.app._ra_orientation_mixin._RAOrientationMixinRocky PrePost Scripting wrapper for a single Cube geometry.
This wrapper class corresponds to an individual entry under the “Regions Of Interest” item on the project’s data tree. Regions Of Interest can be retrieved from the
RAStudyor theRARegionsOfInterestCollectionvia:roi_cube_1 = study.GetElement('Cube <1>')
Overview#
Import detail#
from ansys.rocky.app.ra_region_of_interest_cube import RARegionOfInterestCube
Method detail#
- RARegionOfInterestCube.GetCenterAfterMovement(timestep: int) rocky30.base_types.Tuple3F#
Get the Region of Interest center taking motion in account.
- RARegionOfInterestCube.GetCenter(unit: str | None = None) list[float]#
Get the value of “Center”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RARegionOfInterestCube.SetCenter(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Center”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RARegionOfInterestCube.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RARegionOfInterestCube.GetSize(unit: str | None = None) list[float]#
Get the value of “Size”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RARegionOfInterestCube.SetSize(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Size”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.