VivoQuant 5.4.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TileViewTimeSeriesOperator Class Reference

Object to interact with the Time Series operator on Tile View when it is active. More...

#include <TileViewTimeSeriesOperator.h>

Public Member Functions

float getSingleFrameDuration (int frameNumber)
 Retrieves the duration (in seconds) for a single frame at the specified frame number.
 
bool setSingleFrameDuration (int frameNumber, float frameDuration)
 Sets the duration (in seconds) of a single frame at the specified frame number.
 
string getFrameDuration ()
 Retrieves the duration for all frames.
 
bool setUniformFrameDuration (float frameDuration)
 Sets the duration (in seconds) for all frames.
 
bool setVariableFrameDuration (string functionName)
 Sets a Variable Frame Duration Function.
 
void setSingleFrameROI (int frameNumber, bool enabled)
 Sets the visibility of the Region of Interest (ROI) for a given frame number.
 
bool isSingleFrameROIEnabled (int frameNumber)
 Checks if the Region of Interest (ROI) is enabled for a given frame number.
 
void setShowROI (bool enabled)
 Sets the visibility of the Region of Interest (ROI) for all frames.
 
int getShowROIState ()
 Checks if the Region of Interest (ROI) is enabled, partially enabled or disabled.
 
void setViewType (int viewType)
 Set view type to show.
 

Detailed Description

Object to interact with the Time Series operator on Tile View when it is active.

See also ScriptMaster::currentOp() to obtain this object.

Member Function Documentation

◆ getFrameDuration()

string getFrameDuration ( )

Retrieves the duration for all frames.

Returns
The duration (in seconds) or the Variable Frame Duration function used.

◆ getShowROIState()

int getShowROIState ( )

Checks if the Region of Interest (ROI) is enabled, partially enabled or disabled.

Returns
Returns 0 if the ROI is Disabled
Returns 1 if the ROI is Partially Enabled
Returns 2 if the ROI is Enabled

◆ getSingleFrameDuration()

float getSingleFrameDuration ( int  frameNumber)

Retrieves the duration (in seconds) for a single frame at the specified frame number.

Parameters
frameNumberThe frame number for which to retrieve the duration.
Returns
The duration (in seconds) for the specified frame.

◆ isSingleFrameROIEnabled()

bool isSingleFrameROIEnabled ( int  frameNumber)

Checks if the Region of Interest (ROI) is enabled for a given frame number.

Parameters
frameNumberThe frame number for which to check the ROI status.
Returns
true if the ROI is enabled for the specified frame, otherwise false.

◆ setShowROI()

void setShowROI ( bool  enabled)

Sets the visibility of the Region of Interest (ROI) for all frames.

Parameters
enabledtrue to enable the ROI, false to disable it.

◆ setSingleFrameDuration()

bool setSingleFrameDuration ( int  frameNumber,
float  frameDuration 
)

Sets the duration (in seconds) of a single frame at the specified frame number.

Parameters
frameNumberThe frame number for which to set the duration.
frameDurationThe duration (in seconds) for the specified frame.
Returns
true if can set the frame duration, otherwise false.

◆ setSingleFrameROI()

void setSingleFrameROI ( int  frameNumber,
bool  enabled 
)

Sets the visibility of the Region of Interest (ROI) for a given frame number.

Parameters
frameNumberThe frame number for which to set the ROI visibility.
enabledtrue to enable the ROI, false to disable it.

◆ setUniformFrameDuration()

bool setUniformFrameDuration ( float  frameDuration)

Sets the duration (in seconds) for all frames.

Parameters
frameDurationThe duration (in seconds).
Returns
true if can set the duration, otherwise false.

◆ setVariableFrameDuration()

bool setVariableFrameDuration ( string  functionName)

Sets a Variable Frame Duration Function.

Parameters
functionNameThe duration function (it must be one of the existing functions)
Returns
true if can set the frame duration function, otherwise false.

◆ setViewType()

void setViewType ( int  viewType)

Set view type to show.

Parameters
viewTypeThe view to show (eg: 0 = Sagittal, 1 = Coronal, 2 = Transversal)