#include <vtkKWWindowLevelPresetSelector.h>
Inheritance diagram for vtkKWWindowLevelPresetSelector:
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWWindowLevelPresetSelector, vtkKWPresetSelector) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | PresetCellUpdatedCallback (int row, int col, const char *text) |
virtual double | GetPresetWindow (int id) |
virtual int | SetPresetWindow (int id, double window) |
virtual double | GetPresetLevel (int id) |
virtual int | SetPresetLevel (int id, double level) |
virtual int | SetPresetModality (int id, const char *modality) |
virtual const char * | GetPresetModality (int id) |
virtual void | SetModalityColumnVisibility (int) |
virtual int | GetModalityColumnVisibility () |
virtual void | ModalityColumnVisibilityOn () |
virtual void | ModalityColumnVisibilityOff () |
virtual int | HasPresetWithGroupWithWindowLevel (const char *group, double window, double level) |
virtual const char * | PresetCellEditEndCallback (int row, int col, const char *text) |
Static Public Member Functions | |
vtkKWWindowLevelPresetSelector * | New () |
Static Public Attributes | |
const char * | WindowColumnName |
const char * | LevelColumnName |
const char * | ModalityColumnName |
Protected Member Functions | |
vtkKWWindowLevelPresetSelector () | |
~vtkKWWindowLevelPresetSelector () | |
virtual void | CreateColumns () |
virtual int | UpdatePresetRow (int id) |
virtual int | GetWindowColumnIndex () |
virtual int | GetLevelColumnIndex () |
virtual int | GetModalityColumnIndex () |
This class is a widget that can be used to store and apply window/level presets.
Definition at line 42 of file vtkKWWindowLevelPresetSelector.h.
|
Definition at line 105 of file vtkKWWindowLevelPresetSelector.h. |
|
Definition at line 106 of file vtkKWWindowLevelPresetSelector.h. |
|
Reimplemented from vtkKWPresetSelector. |
|
|
|
Reimplemented from vtkKWPresetSelector. |
|
Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise |
|
Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise |
|
Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise |
|
Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise |
|
Set/Get the modality for a given preset. The modality field is not displayed as a column by default, but this can be changed using the SetModalityColumnVisibility() method. This column can not be edited. Return 1 on success, 0 otherwise |
|
Set/Get the modality for a given preset. The modality field is not displayed as a column by default, but this can be changed using the SetModalityColumnVisibility() method. This column can not be edited. Return 1 on success, 0 otherwise |
|
Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create(). |
|
Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create(). |
|
Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create(). |
|
Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create(). |
|
Query if a the pool has a given window/level preset in a group |
|
Callback invoked when the user ends editing a specific preset field located at cell ('row', 'col'). The main purpose of this method is to perform a final validation of the edit window's contents 'text'. This method returns the value that is to become the new contents for that cell. The next step (updating) is handled by PresetCellUpdateCallback Reimplemented from vtkKWPresetSelector. |
|
Callback invoked when the user successfully updated the preset field located at ('row', 'col') with the new contents 'text', as a result of editing the corresponding cell interactively. Reimplemented from vtkKWPresetSelector. |
|
Create the columns. Subclasses should override this method to add their own columns and display their own preset fields (do not forget to call the superclass first). Reimplemented from vtkKWPresetSelector. |
|
Update the preset row, i.e. add a row for that preset if it is not displayed already, hide it if it does not match GroupFilter, and update the table columns with the corresponding preset fields. Subclass should override this method to display their own fields. Return 1 on success, 0 if the row was not (or can not be) updated. Subclasses should call the parent's UpdatePresetRow, and abort if the result is not 1. Reimplemented from vtkKWPresetSelector. |
|
Convenience methods to get the index of a given column |
|
Convenience methods to get the index of a given column |
|
Convenience methods to get the index of a given column |
|
Some constants BTX Definition at line 98 of file vtkKWWindowLevelPresetSelector.h. |
|
Some constants BTX Definition at line 99 of file vtkKWWindowLevelPresetSelector.h. |
|
Some constants BTX Definition at line 100 of file vtkKWWindowLevelPresetSelector.h. |