RegionStore
Hierarchy
Index
Constructors
Properties
Accessors
Methods
- beginCreating
- beginEditing
- endCreating
- endEditing
- focusCenter
- getRegionApproximation
- setCenter
- setColor
- setControlPoint
- setControlPoints
- setCoordinate
- setDashLength
- setLineWidth
- setLocked
- setName
- setRegionId
- setRotation
- setSize
- toggleLock
- GetRegionProperties
- IsRegionCustomIcon
- IsRegionDashLengthValid
- IsRegionLineWidthValid
- IsRegionTypeValid
- RegionIconString
- RegionTypeString
Constructors
constructor
Parameters
backendService: BackendService
fileId: number
activeFrame: FrameStore
controlPoints: Point2D[]
regionType: RegionType
regionId: number = -1
rotation: number = 0
name: string = ""
color: string = Colors.TURQUOISE5
lineWidth: number = 2
dashLength: number = 0
Returns RegionStore
Properties
activeFrame
color
controlPoints
coordinate
creating
dashLength
editing
readonlyfileId
isSimplePolygon
lineRegionSampleWidth
lineWidth
locked
publicmodifiedTimestamp
name
regionId
regionType
rotation
staticreadonlyAVAILABLE_ANNOTATION_TYPES
staticreadonlyAVAILABLE_REGION_TYPES
staticreadonlyMAX_DASH_LENGTH
staticreadonlyMAX_LINE_WIDTH
staticreadonlyMIN_LINE_WIDTH
staticreadonlyTARGET_VERTEX_COUNT
Accessors
boundingBox
Returns Point2D
boundingBoxArea
Returns number
center
Returns Point2D
isAnnotation
Returns boolean
isClosedRegion
Returns boolean
isPreviewCut
Returns boolean
isTemporary
Returns boolean
isValid
Returns boolean
nameString
Returns string
regionProperties
Returns string
size
Returns Point2D
The x and y size components.
wcsSize
Returns Point2D
Methods
beginCreating
Returns void
beginEditing
Returns void
endCreating
Returns Generator<Promise<ISetRegionAck>, void, unknown>
endEditing
Returns void
focusCenter
Returns void
publicgetRegionApproximation
Parameters
astTransform: Mapping
Returns Point2D[]
setCenter
Parameters
p: Point2D
skipUpdate: boolean = false
Returns void
setColor
Parameters
color: string
Returns void
setControlPoint
Parameters
index: number
p: Point2D
skipUpdate: boolean = false
Returns void
setControlPoints
Parameters
points: Point2D[]
skipUpdate: boolean = false
shapeChanged: boolean = true
Returns void
setCoordinate
Parameters
coordinate: CoordinateMode
Returns void
setDashLength
Parameters
dashLength: number
Returns void
setLineWidth
Parameters
lineWidth: number
Returns void
setLocked
Parameters
locked: boolean
Returns void
setName
Parameters
name: string
Returns void
setRegionId
Parameters
id: number
Returns void
setRotation
Parameters
angle: number
skipUpdate: boolean = false
Returns void
setSize
Sets the size for regions and annotations
Parameters
p: Point2D
Specifies the x and y size components. For line regions and annotations, vector annotations, and ruler annotations, the function sets the new start and end positions while keeping the rotation within the same quadrant.
skipUpdate: boolean = false
Whether to update the changes with the backend.
Returns void
toggleLock
Returns void
publicstaticGetRegionProperties
Parameters
regionType: RegionType
controlPoints: Point2D[]
rotation: number
Returns string
publicstaticIsRegionCustomIcon
Parameters
regionType: RegionType
Returns boolean
publicstaticIsRegionDashLengthValid
Parameters
regionDashLength: number
Returns boolean
publicstaticIsRegionLineWidthValid
Parameters
regionLineWidth: number
Returns boolean
publicstaticIsRegionTypeValid
Parameters
regionType: RegionType
Returns boolean
publicstaticRegionIconString
Parameters
regionType: RegionType
Returns any
publicstaticRegionTypeString
Parameters
regionType: RegionType
Returns string
Returns the sizes of regions and annotations. For line regions and annotations, vector annotations, and ruler annotations, returns x and y absolute displacements.