RegionSetStore
Index
Constructors
Properties
Accessors
Methods
- addAnnCompassRegion
- addAnnEllipticalRegion
- addAnnLineRegion
- addAnnPointRegion
- addAnnPolygonalRegion
- addAnnPolylineRegion
- addAnnRectangularRegion
- addAnnRulerRegion
- addAnnTextRegion
- addAnnVectorRegion
- addEllipticalRegion
- addExistingRegion
- addLineRegion
- addPointRegion
- addPolygonalRegion
- addPolylineRegion
- addRectangularRegion
- addRegionAsync
- deleteRegion
- deselectRegion
- migrateRegionsFromExistingSet
- selectRegion
- selectRegionByIndex
- setIsHover
- setLocked
- setMode
- setNewRegionType
- setOpacity
- toggleMode
- updateCursorRegionPosition
Constructors
constructor
Parameters
frame: FrameStore
preference: PreferenceStore
backendService: BackendService
Returns RegionSetStore
Properties
isHoverImage
locked
mode
newRegionType
opacity
regions
selectedRegion
Accessors
isNewRegionAnnotation
Returns boolean
regionList
Returns { id: number; type: RegionType }[]
regionMap
Returns a map associating region IDs with their corresponding RegionStore instances.
Returns Map<number, RegionStore>
regionsAndAnnotationsForRender
Returns RegionStore[]
Methods
addAnnCompassRegion
Parameters
point: Point2D
length: number
temporary: boolean = false
Returns RegionStore
addAnnEllipticalRegion
Parameters
center: Point2D
semiMajor: number
semiMinor: number
temporary: boolean = false
Returns RegionStore
addAnnLineRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addAnnPointRegion
Parameters
center: Point2D
shape: PointAnnotationShape
cursorRegion: boolean = false
Returns RegionStore
addAnnPolygonalRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addAnnPolylineRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addAnnRectangularRegion
Parameters
center: Point2D
width: number
height: number
temporary: boolean = false
Returns RegionStore
addAnnRulerRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addAnnTextRegion
Parameters
center: Point2D
width: number
height: number
temporary: boolean = false
Returns RegionStore
addAnnVectorRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addEllipticalRegion
Parameters
center: Point2D
semiMajor: number
semiMinor: number
temporary: boolean = false
Returns RegionStore
addExistingRegion
Parameters
points: Point2D[]
rotation: number
regionType: RegionType
regionId: number
name: string
color: string
lineWidth: number
dashes: number[]
temporary: boolean = true
optionalannotationStyles: any
Returns RegionStore
addLineRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addPointRegion
Parameters
center: Point2D
cursorRegion: boolean = false
Returns RegionStore
addPolygonalRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addPolylineRegion
Parameters
points: Point2D[]
temporary: boolean = false
Returns RegionStore
addRectangularRegion
Parameters
center: Point2D
width: number
height: number
temporary: boolean = false
Returns RegionStore
addRegionAsync
Adds a new region and returns the corresponding RegionStore object.
Parameters
regionType: RegionType
Type of the region.
points: Point2D[]
Points defining the shape of the region. For rectangles, ellipses, text annotations, and compass annotations, provide [center, size]; for other types, provide an array of positions.
rotation: number = 0
Rotation angle of the region in degrees. Only applicable for rectangles, ellipses, and text annotations.
regionName: string = ""
Optional name for the region. If it is not provided or is an empty string, a default name will be applied.
Returns Promise<RegionStore>
A promise that resolves to the RegionStore object representing the added region.
deleteRegion
Parameters
region: RegionStore
Returns void
deselectRegion
Returns void
migrateRegionsFromExistingSet
Parameters
sourceRegionSet: RegionSetStore
spatialTransformAST: Mapping
forward: boolean = false
Returns void
selectRegion
Parameters
region: RegionStore
Returns void
selectRegionByIndex
Parameters
index: number
Returns void
setIsHover
Parameters
bool: boolean
Returns void
setLocked
Parameters
optionallocked: boolean
Returns void
setMode
Parameters
mode: any
Returns void
setNewRegionType
Parameters
type: RegionType
Returns void
setOpacity
Parameters
opacity: RegionsOpacity
Returns void
toggleMode
Returns void
publicupdateCursorRegionPosition
Parameters
pos: Point2D
Returns void
Returns an array of region IDs and types in the region set.