VivoQuant 6.5.0
Loading...
Searching...
No Matches
MModeSegmentationDialog Class Reference

Description

Object to access the MMode Segmentation Dialog.

See also VQ.getMModeSegmentationTool() to obtain this object.

Public Member Functions

void startSegmentation (bool quiet=false)
 Starts placing seed points for a new segmentation, after clearing the current one.
bool clearSegmentation (bool quiet=false)
 Clears the segmentation lines and measurements.
bool isSegmentationValid ()
 Returns true if the segmentation is complete (all 4 lines exist).
void saveSegmentation (string filename=string())
 Saves the segmentation lines and measurements to a CSV file.
void loadSegmentation (string filename=string())
 Loads segmentation lines (and measurements, if the file has them) saved by saveSegmentation().
bool submitSegmentation (bool quiet=false)
 Submits the segmentation lines (and the LV trace) of the selected image to iPACS.
string lastSubmitError ()
 Why the last submission to iPACS did not complete, or an empty string if it did.
void saveSnapshot (string filename=string())
 Saves the image shown in the tool, with its lines and measurements, as a picture.
void setAlignedMeasurements (bool aligned)
 Turns the tool's "align measurements" option on or off, and updates the measurements.
void show ()
 Shows the tool. Any segmentation or edit in progress is cancelled first.
void hide ()
 Hides the tool. Any segmentation or edit in progress is cancelled first.
void click (unsigned int x, unsigned int y)
 Clicks on the tool's image, as the user would with the left mouse button.

Member Function Documentation

◆ clearSegmentation()

bool clearSegmentation ( bool quiet = false)

Clears the segmentation lines and measurements.

Parameters
quiettrue to clear without asking the user first
Returns
false if the user chose not to clear, true otherwise

◆ click()

void click ( unsigned int x,
unsigned int y )

Clicks on the tool's image, as the user would with the left mouse button.

Parameters
xHorizontal position on the displayed image, in pixels
yVertical position on the displayed image, in pixels
Note
Use it after startSegmentation() to place the seed points.

◆ loadSegmentation()

void loadSegmentation ( string filename = string())

Loads segmentation lines (and measurements, if the file has them) saved by saveSegmentation().

Parameters
filenameFile to load. If empty, the user is asked for one.
Note
The current segmentation is cleared first, without asking. The file must hold 4 lines; otherwise a warning is shown.

◆ saveSegmentation()

void saveSegmentation ( string filename = string())

Saves the segmentation lines and measurements to a CSV file.

Parameters
filenameOutput file. If empty, the user is asked for one.
Note
The LV trace is also saved, next to it, as name_LVTrace.csv. If the segmentation is not complete, a warning is shown and nothing is saved.

◆ saveSnapshot()

void saveSnapshot ( string filename = string())

Saves the image shown in the tool, with its lines and measurements, as a picture.

Parameters
filenameOutput image (.png, .jpeg or .bmp). If empty, the user is asked for one.

◆ setAlignedMeasurements()

void setAlignedMeasurements ( bool aligned)

Turns the tool's "align measurements" option on or off, and updates the measurements.

Parameters
alignedtrue to align the measurements

◆ startSegmentation()

void startSegmentation ( bool quiet = false)

Starts placing seed points for a new segmentation, after clearing the current one.

Parameters
quiettrue to clear the current segmentation without asking the user first
Note
Does nothing if no valid data is selected. If a segmentation is already being placed, this cancels it instead. Place the seed points with click().

◆ submitSegmentation()

bool submitSegmentation ( bool quiet = false)

Submits the segmentation lines (and the LV trace) of the selected image to iPACS.

Parameters
quietSet to true to avoid the confirmation message
Returns
true if everything was stored; otherwise the reason is in lastSubmitError()