VivoQuant 6.4.0
Loading...
Searching...
No Matches
SliceViewer Class Reference

Description

Manipulate the display within the slice view.

Select this view with VQ.mainWin().setViewMode(), then obtain it with VQ.currentView().

VQ.mainWin().setViewMode("Slice View"); // switch to the slice view mode
var sliceView = VQ.currentView();

Public Slots

void updateDisplay ()
 Update all views and set palette.
void updateDisplay (int i)
 Update single view and don't update palette.
void toggleShowReference ()
 Toggle the visibility of the reference dataset.
void toggleShowInput1 ()
 Toggle the visibility of the first input dataset.
void toggleShowInput2 ()
 Toggle the visibility of the second input dataset.

Public Member Functions

virtual QSharedPointer< QImage > getImageByType (int type, int colBarType=0, QSize &size=QSize(128, 512), float magnification=1.f, QSize *preColorBar=nullptr, Dim3D &inSetDim={}) override
 Creates a copy of the image specified by 'type'. The image will match the current state in VQ, so the caller may want to consider whether corner labels and crosshairs showing is desirable.

Member Function Documentation

◆ getImageByType()

virtual QSharedPointer< QImage > getImageByType ( int type,
int colBarType = 0,
QSize & size = QSize(128, 512),
float magnification = 1.f,
QSize * preColorBar = nullptr,
Dim3D & inSetDim = {} )
overridevirtual

Creates a copy of the image specified by 'type'. The image will match the current state in VQ, so the caller may want to consider whether corner labels and crosshairs showing is desirable.

The caller should clean up the data later.

Parameters
type
colBarType
size
magnification
preColorBar
inSetDim
Returns
a pointer to a copy of the image.

◆ toggleShowInput1

void toggleShowInput1 ( )
slot

Toggle the visibility of the first input dataset.

Switches the visibility state of Input1 between shown and hidden.

◆ toggleShowInput2

void toggleShowInput2 ( )
slot

Toggle the visibility of the second input dataset.

Switches the visibility state of Input2 between shown and hidden.

◆ toggleShowReference

void toggleShowReference ( )
slot

Toggle the visibility of the reference dataset.

Switches the visibility state of the reference dataset between shown and hidden.

◆ updateDisplay

void updateDisplay ( int i)
slot

Update single view and don't update palette.

Parameters
ithe view index to update