RulerAnnotationStore
Hierarchy
- RegionStore
- RulerAnnotationStore
Index
Constructors
Properties
- activeFrame
- auxiliaryLineDashLength
- auxiliaryLineVisible
- color
- controlPoints
- coordinate
- creating
- dashLength
- editing
- fileId
- font
- fontSize
- fontStyle
- isSimplePolygon
- lineRegionSampleWidth
- lineWidth
- locked
- modifiedTimestamp
- name
- regionId
- regionType
- rotation
- textOffset
- AVAILABLE_ANNOTATION_TYPES
- AVAILABLE_REGION_TYPES
- MAX_DASH_LENGTH
- MAX_LINE_WIDTH
- MIN_LINE_WIDTH
- TARGET_VERTEX_COUNT
Accessors
Methods
- beginCreating
- beginEditing
- endCreating
- endEditing
- focusCenter
- getAnnotationStyles
- getAnnotationStylesForExport
- getRegionApproximation
- initializeStyles
- setAuxiliaryLineDashLength
- setAuxiliaryLineVisible
- setCenter
- setColor
- setControlPoint
- setControlPoints
- setCoordinate
- setDashLength
- setFont
- setFontSize
- setFontStyle
- setLineWidth
- setLocked
- setName
- setRegionId
- setRotation
- setSize
- setTextOffset
- 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 RulerAnnotationStore
Properties
activeFrame
auxiliaryLineDashLength
auxiliaryLineVisible
color
controlPoints
coordinate
creating
dashLength
editing
readonlyfileId
font
fontSize
fontStyle
isSimplePolygon
lineRegionSampleWidth
lineWidth
locked
publicmodifiedTimestamp
name
regionId
regionType
rotation
textOffset
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 { auxiliaryLineDashLength: number; auxiliaryLineVisible: boolean; font: Font; fontSize: number; fontStyle: FontStyle; textOffset: Point2D }
auxiliaryLineDashLength: number
auxiliaryLineVisible: boolean
font: Font
fontSize: number
fontStyle: FontStyle
textOffset: Point2D
publicgetAnnotationStylesForExport
Returns { coordinateSystem: string; font: Font; fontSize: number; fontStyle: FontStyle }
coordinateSystem: string
font: Font
fontSize: number
fontStyle: FontStyle
publicgetRegionApproximation
Parameters
astTransform: any
optionalspatiallyMatched: boolean
Returns { hypotenuseApproximatePoints: number[]; xApproximatePoints: number[]; yApproximatePoints: number[] }
hypotenuseApproximatePoints: number[]
xApproximatePoints: number[]
yApproximatePoints: number[]
publicinitializeStyles
Parameters
annotationStyles: { auxiliaryLineDashLength: number; auxiliaryLineVisible: boolean; font: Font; fontSize: number; fontStyle: FontStyle; textOffset: Point2D }
Returns void
setAuxiliaryLineDashLength
Parameters
length: number
Returns void
setAuxiliaryLineVisible
Parameters
isVisible: boolean
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
setFont
Parameters
font: Font
Returns void
setFontSize
Parameters
fontSize: number
Returns void
setFontStyle
Parameters
fontStyle: string
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
Parameters
p: Point2D
skipUpdate: boolean = false
Returns void
setTextOffset
Parameters
offset: number
isX: boolean
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