Class AnnotationEditAdaptor

description

Edits the selected annotation, Captures and processing the specific mouse and keyboard events over the annotations, hold all edit annotation adapters to process further, contains selected annotation reference to edit

Hierarchy

  • AnnotationEditAdaptor

Implements

Index

Constructors

constructor

Properties

Private circleAnnotationEditProcessor

circleAnnotationEditProcessor: CircleAnnotationEditProcessor = null

Private ellipseAnnotationEditProcessor

ellipseAnnotationEditProcessor: EllipseAnnotationEditProcessor = null

Private frameNumber

frameNumber: number

Protected htmlViewportGroup

htmlViewportGroup: HTMLViewportGroup

Protected is2D

is2D: boolean

Protected isMeasuring

isMeasuring: boolean = false

Private lineAnnotationEditProcessor

lineAnnotationEditProcessor: LineAnnotationEditProcessor = null

Private pointAnnotationEditProcessor

pointAnnotationEditProcessor: PointAnnotationEditProcessor = null

Protected renderEngine

renderEngine: any

Private selectedAnnotation

selectedAnnotation: GraphicAnnotation = null

Private selectedCadObject

selectedCadObject: GraphicAnnotation = null

Private sopInstanceUid

sopInstanceUid: string

Private textAnnotationEditProcessor

textAnnotationEditProcessor: TextAnnotationEditProcessor = null

Protected viewport

viewport: HTMLViewport

Methods

down

  • down(event: MouseEvent, cachedRenderParams: RenderParams3D): boolean
  • description

    called when the user pressed the mouse down

    Parameters

    • event: MouseEvent

      captured mouse event's instance

    • cachedRenderParams: RenderParams3D

      render parameters that to be applied

    Returns boolean

    true will be returned in success case, or else false will be returned

getSelectedAnnotation

  • description

    Get the selected annotation for edit purpose

    Returns GraphicAnnotation

    Returns the selected graphic annotation

keyUp

  • keyUp(event: KeyboardEvent): boolean
  • description

    Handle key up events. Delete key tp delete the selected annotation

    Parameters

    • event: KeyboardEvent

      captured key board event's instance

    Returns boolean

    true will be returned in success case, or else false will be returned

move

  • move(event: MouseEvent, cachedRenderParams: RenderParams3D): boolean
  • description

    called when the user is moving or dragging the mouse, If measuring is still active, the currently selected annotation will be moved. Else, detect annotation based on mouse points

    Parameters

    • event: MouseEvent

      captured mouse event's instance

    • cachedRenderParams: RenderParams3D

      render parameters that to be applied

    Returns boolean

    true will be returned in success case, or else false will be returned

postRender

  • postRender(htmlViewport: any, renderParams: any): void
  • description

    called after an image is returned from the server; useful during navigation when you need to know when the rendering is complete

    Parameters

    • htmlViewport: any

      Specifies view port instance

    • renderParams: any

      render parameters that to be applied

    Returns void

press

  • press(event: KeyboardEvent): boolean
  • description

    called when user release the key

    Parameters

    • event: KeyboardEvent

      captured key board event's instance

    Returns boolean

    true will be returned in success case, or else false will be returned

Private processSelection

  • processSelection(currentPoint: Point): boolean
  • description

    selects annotations on the current mouse point, and process them using their corresponding edit adapter

    Parameters

    • currentPoint: Point

      current mouse point location

    Returns boolean

    true will be returned in success case, or else false will be returned

reset

  • reset(): void
  • description

    Reset all the edit adapters to initial state

    Returns void

up

  • description

    called when the user releases the mouse

    Parameters

    • event: MouseEvent

      captured mouse event's instance

    • cachedRenderParams: RenderParams3D

      render parameters that to be applied

    Returns boolean

    true will be returned in success case, or else false will be returned

wheel

  • wheel(event: MouseEvent, cachedRenderParams: RenderParams3D): boolean
  • description

    called when the user is moving the wheeel of the mouse

    Parameters

    • event: MouseEvent

      captured mouse event's instance

    • cachedRenderParams: RenderParams3D

      render parameters that to be applied

    Returns boolean

    true will be returned in success case, or else false will be returned