Skip to main content

class RARegionsOfInterestCollection

Rocky PrePost Scripting wrapper for the collection of Regions of Interest in a project. This wrapper corresponds to the “Regions Of Interest” item in the project’s data tree. To retrieve the RARegionsOfInterestCollection from a RAStudy, use:
roi_collection = study.GetRegionsOfInterestCollection()
Instances of the RARegionsOfInterestCollection class act as regular Python lists, and can be iterated on, accessed via index, etc: Methods:

AddCube(name: str | None = None)

Add a new Cube. Returns the newly created item.

AddCylinder(name: str | None = None)

Add a new Cylinder. Returns the newly created item.

Clear()

Remove all items from the list.

New()

Add a new item. Returns the newly created item.

Remove(item: T)

Remove an item from the list.