Class ScrollAdaptor

Class to perform computations for scrolling, called up by external interfaces

Hierarchy

  • ScrollAdaptor

Index

Constructors

constructor

Properties

datasetextentsindirection

datasetextentsindirection: number = 0

Private renderEngine

renderEngine: RenderEngineContext3D

Private renderParams

renderParams: RenderParams3D = null

Private scrollData

scrollData: ScrollAdaptorData

Private zVectorindirection

zVectorindirection: Vector = null

Methods

init

  • Call this function to initialize the adaptor called during mouse down and computes certain values like spacing in arbitrary direction, total number of slices

    Parameters

    Returns void

Private maxminPointOnPlaneDistance

  • maxminPointOnPlaneDistance(viewplane: Plane, volumeBoxPoints: Vector[], zVector: Vector): object
  • Parameters

    Returns object

    • maxDistance: number
    • minDistance: number

scroll

  • Call this function to perform the scroll put in the distance value If scaling is required for distance, input function should scale it

    Parameters

    • distance: number

    Returns RenderParams3D