Class CircleAnnotationAdaptor

description

Edit the selected circle annotation Captures and processing the specific mouse and keyboard events over the annotations, Contains methods to render the edited annotations

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private circleAnnotation

circleAnnotation: CircleGraphicAnnotation = null

Protected frameNumber

frameNumber: number

Protected graphicLayerPrefix

graphicLayerPrefix: string = "FOVIA"

Protected htmlViewportGroup

htmlViewportGroup: HTMLViewportGroup

Protected is2D

is2D: boolean

Protected isMeasuring

isMeasuring: boolean = false

Protected linearMeasureDelta

linearMeasureDelta: number = 5

Protected processingMouseOp

processingMouseOp: any

Protected renderEngine

renderEngine: any

Protected showAnnotations

showAnnotations: boolean = true

Protected showCadMarkings

showCadMarkings: boolean = true

Protected sopInstanceUid

sopInstanceUid: string

Private startPoint

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

Protected viewport

viewport: HTMLViewport2D

Protected visualAttribute

visualAttribute: VisualAttribute = new Fovia.Util.VisualAttribute()

Protected volumeDataContext

volumeDataContext: any

Methods

Protected addCircleAnnotation

Protected addEllipseAnnotation

Protected addLineAnnotation

  • description

    Add the given LineGraphicAnnotaion into renderEngine that will be rendered later

    Parameters

    Returns boolean

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

Protected addPointAnnotation

  • description

    Add the given PointGraphicAnnotation into renderEngine that will be rendered later

    Parameters

    Returns boolean

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

Protected addTextAnnotation

  • description

    Add the given TextGraphicAnnotation into renderEngine that will be rendered later

    Parameters

    Returns boolean

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

displayAnnotations

  • displayAnnotations(showAnnotations?: boolean): void

displayCadMarkings

  • displayCadMarkings(showCadMarkings?: boolean): void
  • description

    Set the flag, based on that cad markers will be hide or render

    Parameters

    • Default value showCadMarkings: boolean = true

      true for render, false for hide

    Returns void

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

down2D

  • down2D(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

move

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

    called when the user is moving or dragging 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

move2D

  • move2D(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

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

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

render

  • render(foviaHTMLViewport2D: any, canvas: any, width: any, height: any, imageTags: any): void
  • description

    Fetch circle annotations for the given imageTag, call the render2D to render them

    Parameters

    • foviaHTMLViewport2D: any

      view port instance where the circle annotation to be render

    • canvas: any

      canvas instance where to be render

    • width: any

      view port width

    • height: any

      view port height

    • imageTags: any

      DicomImageTag for that circle annotations to be fetched and rendered

    Returns void

render2D

  • render2D(foviaHTMLViewport2D: any, canvas: any, width: any, height: any, imageTags: any, annotations: any): void
  • description

    Render the given circle annotation array

    Parameters

    • foviaHTMLViewport2D: any

      view port instance where the circle annotation to be render

    • canvas: any

      canvas instance where to be render

    • width: any

      view port width

    • height: any

      view port height

    • imageTags: any

      DicomImageTag for that circle annotations to be fetched and rendered

    • annotations: any

    Returns void

Protected renderTextObjects

  • renderTextObjects(context: any, textObjects?: Array<TextObject>, color: string, isSelected?: boolean, isPointSelected?: boolean, isFreeText?: boolean): void
  • description

    Renders the given text objects on the given context

    Parameters

    • context: any

      Context object that is fetched from canvas

    • Default value textObjects: Array<TextObject> = []

      Text objects to be rendered

    • color: string

      Color of the text to be rendered

    • Default value isSelected: boolean = false

      flag that Specifies whether the text annotation is selected currently

    • Default value isPointSelected: boolean = false

      flag that Specifies whether the graphic point is selected currently

    • Default value isFreeText: boolean = false

      flag that specifies whether the text object is a label or free text, false for lable, true for free text

    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

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

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