Class LineAnnotationEditProcessor

description

This class is the utility to edit the Line Annotaion

Hierarchy

  • LineAnnotationEditProcessor

Index

Constructors

constructor

  • description

    Constructs a new object. This constructor should only called internal to the API.

    Parameters

    • viewport: any

      Specifies the view port instance

    Returns LineAnnotationEditProcessor

    This is a synchronous method that returns the newly created instance LineAnnotationEditProcessor

Properties

Private endPoint

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

Private isFreeLine

isFreeLine: boolean = false

Private lineEditMode

lineEditMode: LineEditMode = Fovia.UI.LineEditMode.none

Private pixelSpacing

pixelSpacing: string

Protected renderEngine

renderEngine: any

Private selectedAnnotation

selectedAnnotation: PolylineGraphicAnnotation = null

Private startPoint

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

Protected viewport

viewport: HTMLViewport

Methods

Private convertToRenderPixel

  • convertToRenderPixel(graphicData: Array<Point>): Array<Point>
  • description

    Converts the dicom image pixel to render image pixel

    Parameters

    • graphicData: Array<Point>

      Specifies graphic object to be converted to render pixel

    Returns Array<Point>

    Returns Render pixel data array

moveLine

  • moveLine(currentPoint: Point): void
  • description

    Move the line annoation to the current mouse point

    Parameters

    • currentPoint: Point

      Specifies current mouse point

    Returns void

processSelection

  • description

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

    Parameters

    • selectedAnnotation: PolylineGraphicAnnotation

      Specifies the reference to Line 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

Private updateLineEditMode

  • updateLineEditMode(currentPoint: Point): void
  • description

    Set the flag based on whether the whole line selected or any end points selected

    Parameters

    • currentPoint: Point

      Specifies the current mouse point location

    Returns void