|
VivoQuant 6.0.1
|
Manipulate and control the display within the slice view. More...
#include <QSliceViewControl.h>
Public Member Functions | |
| void | setNumber (int dims[3]) |
| Set ranges for the slice view axes. If the current position is invalid in the new ranges, the position will be recentered. | |
| int | getMax (int i) |
| Get the maximum index of a slice in a given plane of view. | |
| int | getPos (int id, int a) |
| Get the index of the slice currently open in the view (usually shown by a crosshair.) | |
| int | getPos (int a) |
| Get the index of the slice currently open in the view (usually shown by a crosshair.) | |
| void | setPos (int *coordinates, int viewport_id) |
| Set the slice coordinates from an array for the given Viewport ID. | |
| void | setPos (int *coordinates) |
| Set the slice coordinates from an array for the current Viewport ID (See viewport_id for details). | |
| void | setPos (int plane, int pos, int viewport_id) |
| Set a single slice coordinate in a plane for the current Viewport ID. | |
| void | setPos (int plane, int pos) |
| Set a single slice coordinate in a plane for the current Viewport ID (See viewport_id for details). | |
| float | getIntensity (int viewport_id, int data_id) |
| Get the intensity of the view. | |
| float | getIntensity (int data_id) |
| Get the intensity of the view for the given Data ID in the current Viewport ID (See viewport_id for details). | |
| void | setIntensity (int data_id, float intensity, int viewport_id) |
| Set intensity component for a given Data and Viewport ID. | |
| void | setIntensity (int data_id, float intensity) |
| Set intensity component for a Data ID in the current Viewport ID (See viewport_id for details). | |
| bool | getActive (int viewport_id, int data_id) |
| Return whether the given data ID is active (visible) for the provided Viewport ID. | |
| bool | getActive (int data_id) |
| Return whether the given data ID is active (visible) for the current Viewport ID (See viewport_id for details). | |
| void | setActive (int data_id, bool visible, int viewport_id) |
| Sets the visibility of a dataset for the specified Data and Viewport ID. | |
| void | setActive (int data_id, bool visible) |
| Sets the visibility of a dataset for the specified ID for the current Viewport ID (See viewport_id for details). If Link Views is checked, it will be applied to all. | |
| bool | getShowROIs (int viewport_id) |
| Returns whether ROIs are shown for the given Viewport ID (See viewport_id for details). | |
| bool | getShowROIs () |
| Returns whether ROIs are shown for the current Viewport ID (See viewport_id for details). | |
| void | setShowROIs (bool toShow, int viewport_id) |
| Show/hide ROIs for the specified Viewport ID. | |
| bool | getShowAnnotations (int viewport_id) |
| Returns whether annotations are shown for the given Viewport ID. | |
| bool | getShowAnnotations () |
| Returns whether annotations are shown for the current Viewport ID (See viewport_id for details). | |
| void | setShowAnnotations (bool toShow, int id) |
| Show/hide annotations for all datasets. | |
| CropView | getCropStyle (int viewport_id) |
| Returns the crop style for the given Viewport ID. | |
| CropView | getCropStyle () |
| Returns the crop style (NONE=0, DASHED=1, FILLED=2) for the current Viewport ID (See viewport_id for details). | |
| void | setCropStyle (CropView style, int id) |
| Set the crop style for all datasets. | |
| bool | getShowFiducials (int viewport_id) |
| Returns whether fiducials are shown for the given Viewport ID. | |
| bool | getShowFiducials () |
| Returns whether fiducials are shown for the current Viewport ID (See viewport_id for details). | |
| void | setShowFiducials (bool toEnable, int viewport_id) |
| Sets whether fiducials should be displayed for the given Viewport ID. | |
| void | setShowFiducials (bool toEnable) |
| Sets whether fiducials should be displayed for the current Viewport ID (See viewport_id for details). | |
| bool | getLinkedState () |
| Returns whether view states are linked between viewports. | |
Manipulate and control the display within the slice view.
viewport_id: Uniquely identifies a viewport pane used to render a view into the data. For example: Slice View has 3 Viewport IDs where as TileView and MultiView can have many more. The ID corresponds to the position of the view in the list of views.
See also ScriptMaster::controller() to obtain this object.
|
inline |
Return whether the given data ID is active (visible) for the current Viewport ID (See viewport_id for details).
| data_id | Unique data identifier (Reference=0, Input1=1, Input2=2) |
| bool getActive | ( | int | viewport_id, |
| int | data_id | ||
| ) |
Return whether the given data ID is active (visible) for the provided Viewport ID.
| viewport_id | Viewport index. See viewport_id for details. |
| data_id | Unique data identifier (Reference=0, Input1=1, Input2=2) |
| CropView getCropStyle | ( | int | viewport_id | ) |
Returns the crop style for the given Viewport ID.
| viewport_id | Viewport index. See viewport_id for details. |
|
inline |
Get the intensity of the view for the given Data ID in the current Viewport ID (See viewport_id for details).
| data_id | Unique data identifier (Reference=0, Input1=1, Input2=2) |
| float getIntensity | ( | int | viewport_id, |
| int | data_id | ||
| ) |
Get the intensity of the view.
| viewport_id | Viewport index. See viewport_id for details. |
| data_id | Unique data identifier (Reference=0, Input1=1, Input2=2) |
|
inline |
Get the maximum index of a slice in a given plane of view.
| i | The index of the plane (Sagittal=0, Coronal=1, Transverse=2) in which you are interested. |
|
inline |
Get the index of the slice currently open in the view (usually shown by a crosshair.)
| a | The index of the plane (Sagittal=0, Coronal=1, Transverse=2) in which you are interested. |
| int getPos | ( | int | id, |
| int | a | ||
| ) |
Get the index of the slice currently open in the view (usually shown by a crosshair.)
| id | The index of the data in which you are interested. |
| a | The index of the plane (Sagittal=0, Coronal=1, Transverse=2) in which you are interested. |
| bool getShowAnnotations | ( | int | viewport_id | ) |
Returns whether annotations are shown for the given Viewport ID.
| viewport_id | Viewport index. See viewport_id for details. |
| bool getShowFiducials | ( | int | viewport_id | ) |
Returns whether fiducials are shown for the given Viewport ID.
| viewport_id | Viewport index. See viewport_id for details. |
| bool getShowROIs | ( | int | viewport_id | ) |
Returns whether ROIs are shown for the given Viewport ID (See viewport_id for details).
| viewport_id | Viewport index. See viewport_id for details. |
|
inline |
Sets the visibility of a dataset for the specified ID for the current Viewport ID (See viewport_id for details). If Link Views is checked, it will be applied to all.
| data_id | Unique dataset identifier (Reference=0, Input1=1, Input2=2). |
| visible | Whether the dataset should be visible (true) or hidden (false). |
| void setActive | ( | int | data_id, |
| bool | visible, | ||
| int | viewport_id | ||
| ) |
Sets the visibility of a dataset for the specified Data and Viewport ID.
| data_id | Unique dataset identifier (Reference=0, Input1=1, Input2=2). |
| visible | Whether the dataset should be visible (true) or hidden (false). |
| viewport_id | Viewport index. If Link Views is checked, it will be applied to all. See viewport_id for details. |
| void setCropStyle | ( | CropView | style, |
| int | id | ||
| ) |
Set the crop style for all datasets.
| style | The crop style (NONE=0, DASHED=1, FILLED=2) |
| id | Not used |
|
inline |
Set intensity component for a Data ID in the current Viewport ID (See viewport_id for details).
| data_id | Unique data identifier (Reference=0, Input1=1, Input2=2) |
| intensity | New intensity value (0..1 float) |
| void setIntensity | ( | int | data_id, |
| float | intensity, | ||
| int | viewport_id | ||
| ) |
Set intensity component for a given Data and Viewport ID.
| data_id | Unique data identifier (Reference=0, Input1=1, Input2=2) |
| intensity | New intensity value (0..1 float) |
| viewport_id | Viewport index. If Link Views is checked, intensity will be applied to all. See viewport_id for details. |
| void setNumber | ( | int | dims[3] | ) |
Set ranges for the slice view axes. If the current position is invalid in the new ranges, the position will be recentered.
| dims | the number of voxels along each image dimension |
|
inline |
Set the slice coordinates from an array for the current Viewport ID (See viewport_id for details).
| coordinates | Pointer to 3 ints (x,y,z). |
| void setPos | ( | int * | coordinates, |
| int | viewport_id | ||
| ) |
Set the slice coordinates from an array for the given Viewport ID.
| coordinates | Pointer to 3 ints (x,y,z). |
| viewport_id | Viewport index. If Link Views is checked, it will be applied to all. See viewport_id for details. |
|
inline |
Set a single slice coordinate in a plane for the current Viewport ID (See viewport_id for details).
| plane | The index of the plane (Sagittal=0, Coronal=1, Transverse=2) |
| pos | New slice position. |
| void setPos | ( | int | plane, |
| int | pos, | ||
| int | viewport_id | ||
| ) |
Set a single slice coordinate in a plane for the current Viewport ID.
| plane | The index of the plane (Sagittal=0, Coronal=1, Transverse=2) |
| pos | New slice position. |
| viewport_id | Viewport index. If Link Views is checked, it will be applied to all. See viewport_id for details. |
| void setShowAnnotations | ( | bool | toShow, |
| int | id | ||
| ) |
Show/hide annotations for all datasets.
| toShow | Whether the annotations should be visible (true) or hidden (false). |
| id | Not used. |
|
inline |
Sets whether fiducials should be displayed for the current Viewport ID (See viewport_id for details).
| toEnable | If true, fiducials will be shown; if false, they will be hidden. |
| void setShowFiducials | ( | bool | toEnable, |
| int | viewport_id | ||
| ) |
Sets whether fiducials should be displayed for the given Viewport ID.
| toEnable | If true, fiducials will be shown; if false, they will be hidden. |
| viewport_id | Viewport index. If Link Views is checked, it will be applied to all. See viewport_id for details. |
| void setShowROIs | ( | bool | toShow, |
| int | viewport_id | ||
| ) |
Show/hide ROIs for the specified Viewport ID.
| toShow | Whether the ROIs should be visible (true) or hidden (false). |
| viewport_id | Viewport index. If Link Views is checked, it will be applied to all. See viewport_id for details. |