Class VolumeDataContext

The VolumeDataContext directly cooresponds to the native-level VDC, and contains the minimal information needed to construct and render a volume.

The SeriesDataContext field will be populated with the DICOM information if this object was created through loadDICOMDir with readStandardDICOMTag=true or it was created using loadVolumeFromSeries

Hierarchy

  • VolumeDataContext

Index

Constructors

constructor

  • new VolumeDataContext(vdc: any): VolumeDataContext
  • new VolumeDataContext(volID: number, dim: Vector, spacing: Vector, imagePositionPatient: Vector, imageOrientationPatientX: Vector, imageOrientationPatientY: Vector, orientation: Matrix, window: number, level: number, rescaleSlope: number, rescaleIntercept: number, studyName: string, relevantBits: number, modality: string): VolumeDataContext
  • Parameters

    • vdc: any

    Returns VolumeDataContext

  • Parameters

    • volID: number
    • dim: Vector
    • spacing: Vector
    • imagePositionPatient: Vector
    • imageOrientationPatientX: Vector
    • imageOrientationPatientY: Vector
    • orientation: Matrix
    • window: number
    • level: number
    • rescaleSlope: number
    • rescaleIntercept: number
    • studyName: string
    • relevantBits: number
    • modality: string

    Returns VolumeDataContext

Properties

Private b_flipZ

b_flipZ: Boolean = true

Private centerOffset

centerOffset: Vector = new Fovia.Util.Vector(1, 1, 1)

dim

dim: Vector

level

level: number

modality

modality: string

octreeContext

octreeContext: OctreeContext

orientation

orientation: Matrix

relevantBits

relevantBits: number

rescaleIntercept

rescaleIntercept: number

rescaleSlope

rescaleSlope: number

Private sdc

sdc: SeriesDataContext = null

spacing

spacing: Vector

studyName

studyName: string

volID

volID: number

volumeOrientationXVector

volumeOrientationXVector: Vector

volumeOrientationYVector

volumeOrientationYVector: Vector

volumeOrientationZVector

volumeOrientationZVector: Vector

volumePosition

volumePosition: Vector

window

window: number

Methods

clear

  • clear(): void
  • Delete OctreeContext and SeriesDataContext objects

    Returns void

flipZVector

  • flipZVector(flipFlag: Boolean): void
  • description

    set the boolean flag, based on that volume orientation's z vector will be fliped

    Parameters

    • flipFlag: Boolean

      trur for flip and false for not flipping

    Returns void

getCurrentAxial4Corners

  • getCurrentAxial4Corners(inputVector: any): Vector[]
  • description

    Get the axial corners

    Parameters

    • inputVector: any

      current camera position

    Returns Vector[]

    array of vectors of in Fovia Volume standard coordinates of the four corners of the image for the axial view

getCurrentCoronal4Corners

  • getCurrentCoronal4Corners(inputVector: any): Vector[]
  • description

    Get the current coronal corners

    Parameters

    • inputVector: any

      current camera position

    Returns Vector[]

    array of vectors of in Fovia Volume standard coordinates of the four corners of the image for the coronal view

getCurrentSagittal4Corners

  • getCurrentSagittal4Corners(inputVector: any): Vector[]
  • description

    Get the sagital corners

    Parameters

    • inputVector: any

      current camera position

    Returns Vector[]

    array of vectors of in Fovia Volume standard coordinates of the four corners of the image for the sagittal view

getHistogram

  • getHistogram(callbackFunc?: any): any
  • description

    Get the histogram instance

    Parameters

    • Optional callbackFunc: any

      Call back method that to be called on success and failure case

    Returns any

    This is an asynchronous method that returns a Promise as follows:

    Promise .then(void) .catch (err: ReturnCode )

getOctreeContext

  • description

    get OctreeContext

    Returns OctreeContext

    OctreeContext

getSeriesDataContext

getVolumeID

  • getVolumeID(): number
  • description

    get volume id

    Returns number

    volume id

mapFovia3DFromFrameOfReference

  • mapFovia3DFromFrameOfReference(inputVector: any): Vector
  • description

    synchronous call that maps a point from 3D location in 3D Patient Space (mm's) using the DICOM Frame of Reference origin, to the Fovia Volume standard coordinates (meaning 0,0,0 is the "center" of the volume and mm's)

    Parameters

    • inputVector: any

      DICOM image point

    Returns Vector

    Fovia Volume standard coordinates (mm's)

mapFovia3DToFrameOfReference

  • mapFovia3DToFrameOfReference(inputVector: any): Vector
  • description

    Synchronous call that maps a point from the Fovia Volume standard coordinates (meaning 0,0,0 is the "center" of the volume and mm's) to a 3D location in 3D Patient Space (mm's) using the DICOM Frame of Reference origin.

    Parameters

    • inputVector: any

      Fovia Volume standard coordinates (mm's)

    Returns Vector

    DICOM image point (mm's)

releaseSessionResources

  • releaseSessionResources(callbackFunc?: any): any

setOctreeContext

  • description

    Set OctreeContext

    Parameters

    Returns void

setSeriesDataContext

  • description

    Set seriesDataContext of any series for that 3Dable volume data context is needed

    Parameters

    Returns void