Class PointAnnotationAdaptor

Creates point objects based on the user's movement down/move/up, and extends the AbstractAnnotationAdaptor

Hierarchy

Implements

Index

Constructors

constructor

Properties

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

Private pointAnnotation

pointAnnotation: PointGraphicAnnotation = null

Protected processingMouseOp

processingMouseOp: any

Protected renderEngine

renderEngine: any

Protected showAnnotations

showAnnotations: boolean = true

Protected showCadMarkings

showCadMarkings: boolean = true

Protected sopInstanceUid

sopInstanceUid: string

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

      Specifies MouseEvent instance

    • cachedRenderParams: RenderParams3D

      Specifies the RenderParam Instance

    Returns boolean

    Returns the value return by down2D method call

down2D

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

    called when the user pressed the mouse down

    Parameters

    • event: MouseEvent

      Specifies MouseEvent instance

    • cachedRenderParams: RenderParams3D

      Specifies the RenderParam Instance

    Returns boolean

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

move

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

    called when the user is moving or dragging the mouse

    Parameters

    • event: MouseEvent

      Specifies MouseEvent instance

    • cachedRenderParams: RenderParams3D

      Specifies the RenderParam Instance

    Returns boolean

    Returns the value return by move2D method call

move2D

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

    called when the user pressed the mouse down

    Parameters

    • event: MouseEvent

      Specifies MouseEvent instance

    • cachedRenderParams: RenderParams3D

      Specifies the RenderParam Instance

    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

      Specifies the RenderParam Instance

    Returns void

render

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

    Render the given point annotations for the given imageTag

    Parameters

    • foviaHTMLViewport2D: any

      Specifies the view port instance where the point annotation to be render

    • canvas: any

      Specifies the canvas instance where to be render

    • width: any

      Specifies the view port width

    • height: any

      Specifies the view port height

    • imageTags: any

      Specifies the imageTag for that point annotations to be rendered

    Returns void

render2D

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

    Render the point annotations for the given annotation array

    Parameters

    • foviaHTMLViewport2D: any

      Specifies view port

    • canvas: any

      Specifies the canvas instance where to render

    • width: any

      Specifies the width of the view port

    • height: any

      Specifies the height of the view port

    • imageTags: any

      Specifies the image tags

    • annotationArray: any

      Specifies the annotation array to be rendered

    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

      Specifies MouseEvent instance

    • cachedRenderParams: RenderParams3D

      Specifies the RenderParam Instance

    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

      Specifies MouseEvent instance

    • cachedRenderParams: RenderParams3D

      Specifies the RenderParam Instance

    Returns boolean

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