Class CircleAnnotationEditProcessor

description

This class is the utility to edit the Line Annotaion

Hierarchy

  • CircleAnnotationEditProcessor

Index

Constructors

constructor

Properties

Private circleEditMode

circleEditMode: CircleEditMode = Fovia.UI.CircleEditMode.none

Protected renderEngine

renderEngine: any

Private selectedAnnotation

selectedAnnotation: CircleGraphicAnnotation = null

Private selectedPoint

selectedPoint: Point = new Fovia.Util.Point(0, 0)

Protected viewport

viewport: HTMLViewport

Methods

processSelection

  • description

    Updates the Circle annotation to edit process if the current point is selected from Line annotation

    Parameters

    • selectedAnnotation: CircleGraphicAnnotation

      Specifies the reference to Circle Annotation to edit

    • currentPoint: Point

      Specifies the current mouse point location

    Returns boolean

    Returns true in success case false will be returned in failure case

reset

  • reset(): void
  • description

    Reset the Line annotation to be edit to null

    Returns void

updateAnnotation

  • updateAnnotation(currentPoint: Point): void
  • description

    move the annotation to given current point

    Parameters

    • currentPoint: Point

      current mouse point

    Returns void

Private updateCircleEditMode

  • updateCircleEditMode(): void
  • description

    update the circle edit mode from the selected annotation

    Returns void