PointAnnotationStore
Hierarchy
- RegionStore
- PointAnnotationStore
Index
Constructors
Properties
Accessors
Methods
- beginCreating
- beginEditing
- endCreating
- endEditing
- focusCenter
- getAnnotationStyles
- getAnnotationStylesForExport
- getRegionApproximation
- initializeStyles
- setCenter
- setColor
- setControlPoint
- setControlPoints
- setCoordinate
- setDashLength
- setLineWidth
- setLocked
- setName
- setPointShape
- setPointWidth
- 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
pointShape: PointAnnotationShape = CARTA.PointAnnotationShape.SQUARE
pointWidth: number = 6
Returns PointAnnotationStore
Properties
activeFrame
color
controlPoints
coordinate
creating
dashLength
editing
readonlyfileId
isSimplePolygon
lineRegionSampleWidth
lineWidth
locked
publicmodifiedTimestamp
name
pointShape
pointWidth
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
wcsSize
Returns Point2D
Methods
beginCreating
Returns void
beginEditing
Returns void
endCreating
Returns Generator<Promise<ISetRegionAck>, void, unknown>
endEditing
Returns void
focusCenter
Returns void
publicgetAnnotationStyles
Returns { pointShape: PointAnnotationShape; pointWidth: number }
pointShape: PointAnnotationShape
pointWidth: number
publicgetAnnotationStylesForExport
Returns { pointShape: PointAnnotationShape; pointWidth: number }
pointShape: PointAnnotationShape
pointWidth: number
publicgetRegionApproximation
Parameters
astTransform: Mapping
Returns Point2D[] | { eastApproximatePoints: number[]; northApproximatePoints: number[] } | { hypotenuseApproximatePoints: number[]; xApproximatePoints: number[]; yApproximatePoints: number[] }
publicinitializeStyles
Parameters
annotationStyles: { pointShape: PointAnnotationShape; pointWidth: number }
Returns void
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
setPointShape
Parameters
pointShape: PointAnnotationShape
Returns void
setPointWidth
Parameters
width: number
Returns void
setRegionId
Parameters
id: number
Returns void
setRotation
Parameters
angle: number
skipUpdate: boolean = false
Returns void
setSize
Parameters
p: Point2D
skipUpdate: boolean = false
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 IconName | CustomIconName
publicstaticRegionTypeString
Parameters
regionType: RegionType
Returns string