a window level preset selector. More...
#include <vtkKWWindowLevelPresetSelector.h>


Public Types | |
| typedef vtkKWPresetSelector | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual void | PresetCellUpdatedCallback (int row, int col, const char *text) |
Static Public Member Functions | |
| static vtkKWWindowLevelPresetSelector * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkKWWindowLevelPresetSelector * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkKWWindowLevelPresetSelector () | |
| ~vtkKWWindowLevelPresetSelector () | |
| virtual void | CreateColumns () |
| virtual int | UpdatePresetRow (int id) |
Protected Attributes | |
| vtkKWWindowLevelPresetSelectorInternals * | Internals |
|
| |
| static const char * | WindowColumnName |
| static const char * | LevelColumnName |
| static const char * | TypeColumnName |
| 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 | SetPresetType (int id, const char *type) |
| virtual const char * | GetPresetType (int id) |
| virtual void | SetTypeColumnVisibility (int) |
| virtual int | GetTypeColumnVisibility () |
| virtual void | TypeColumnVisibilityOn () |
| virtual void | TypeColumnVisibilityOff () |
| virtual int | HasPresetWithGroupWithWindowLevel (const char *group, double window, double level) |
| virtual void | SetPresetTypeSlotName (const char *) |
| virtual const char * | GetPresetTypeSlotName () |
| virtual const char * | PresetCellEditEndCallback (int row, int col, const char *text) |
| virtual int | GetWindowColumnIndex () |
| virtual int | GetLevelColumnIndex () |
| virtual int | GetTypeColumnIndex () |
a window level preset selector.
This class is a widget that can be used to store and apply window/level presets.
Definition at line 44 of file vtkKWWindowLevelPresetSelector.h.
Reimplemented from vtkKWPresetSelector.
Definition at line 49 of file vtkKWWindowLevelPresetSelector.h.
| vtkKWWindowLevelPresetSelector::vtkKWWindowLevelPresetSelector | ( | ) | [protected] |
| vtkKWWindowLevelPresetSelector::~vtkKWWindowLevelPresetSelector | ( | ) | [protected] |
| static vtkKWWindowLevelPresetSelector* vtkKWWindowLevelPresetSelector::New | ( | ) | [static] |
Reimplemented from vtkKWPresetSelector.
| virtual const char* vtkKWWindowLevelPresetSelector::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkKWPresetSelector.
| static int vtkKWWindowLevelPresetSelector::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkKWPresetSelector.
| virtual int vtkKWWindowLevelPresetSelector::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkKWPresetSelector.
| static vtkKWWindowLevelPresetSelector* vtkKWWindowLevelPresetSelector::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkKWPresetSelector.
| void vtkKWWindowLevelPresetSelector::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkKWPresetSelector.
| virtual double vtkKWWindowLevelPresetSelector::GetPresetWindow | ( | int | id | ) | [virtual] |
Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise
| virtual int vtkKWWindowLevelPresetSelector::SetPresetWindow | ( | int | id, | |
| double | window | |||
| ) | [virtual] |
Some constants BTX
| virtual double vtkKWWindowLevelPresetSelector::GetPresetLevel | ( | int | id | ) | [virtual] |
Some constants BTX
| virtual int vtkKWWindowLevelPresetSelector::SetPresetLevel | ( | int | id, | |
| double | level | |||
| ) | [virtual] |
Some constants BTX
| virtual int vtkKWWindowLevelPresetSelector::SetPresetType | ( | int | id, | |
| const char * | type | |||
| ) | [virtual] |
Set/Get the type for a given preset. The type column can be used, for example, to put the medical modality a specific presets applies to (say, CT, MR) The type field is not displayed as a column by default, but this can be changed using the SetTypeColumnVisibility() method. This column can not be edited. Return 1 on success, 0 otherwise
| virtual const char* vtkKWWindowLevelPresetSelector::GetPresetType | ( | int | id | ) | [virtual] |
Some constants BTX
| virtual void vtkKWWindowLevelPresetSelector::SetTypeColumnVisibility | ( | int | ) | [virtual] |
Set/Get the visibility of the type column. Hidden by default. No effect if called before Create().
| virtual int vtkKWWindowLevelPresetSelector::GetTypeColumnVisibility | ( | ) | [virtual] |
Some constants BTX
| virtual void vtkKWWindowLevelPresetSelector::TypeColumnVisibilityOn | ( | ) | [virtual] |
Some constants BTX
| virtual void vtkKWWindowLevelPresetSelector::TypeColumnVisibilityOff | ( | ) | [virtual] |
Some constants BTX
| virtual int vtkKWWindowLevelPresetSelector::HasPresetWithGroupWithWindowLevel | ( | const char * | group, | |
| double | window, | |||
| double | level | |||
| ) | [virtual] |
Query if the pool has a given window/level preset in a group
| virtual void vtkKWWindowLevelPresetSelector::SetPresetTypeSlotName | ( | const char * | ) | [virtual] |
Most (if not all) of the information associated to a preset (say group, comment, filename, creation time, thumbnail and screenshot) is stored under the hood as user slots using the corresponding API (i.e. Set/GetPresetUserSlotAs...()). Since each slot requires a unique name, the following methods are provided to retrieve the slot name for the preset fields. This can be useful to avoid collision between the default slots and your own user slots. Note that the default slot names can be changed too, but doing so will not transfer the value stored at the old slot name to the new slot name (it is up to you to do so, if needed).
| virtual const char* vtkKWWindowLevelPresetSelector::GetPresetTypeSlotName | ( | ) | [virtual] |
Some constants BTX
| virtual const char* vtkKWWindowLevelPresetSelector::PresetCellEditEndCallback | ( | int | row, | |
| int | col, | |||
| const char * | text | |||
| ) | [virtual] |
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.
| virtual void vtkKWWindowLevelPresetSelector::PresetCellUpdatedCallback | ( | int | row, | |
| int | col, | |||
| const char * | text | |||
| ) | [virtual] |
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.
| virtual void vtkKWWindowLevelPresetSelector::CreateColumns | ( | ) | [protected, virtual] |
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.
| virtual int vtkKWWindowLevelPresetSelector::UpdatePresetRow | ( | int | id | ) | [protected, virtual] |
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.
| virtual int vtkKWWindowLevelPresetSelector::GetWindowColumnIndex | ( | ) | [protected, virtual] |
Get the index of a given column
| virtual int vtkKWWindowLevelPresetSelector::GetLevelColumnIndex | ( | ) | [protected, virtual] |
Some constants BTX
| virtual int vtkKWWindowLevelPresetSelector::GetTypeColumnIndex | ( | ) | [protected, virtual] |
Some constants BTX
const char* vtkKWWindowLevelPresetSelector::WindowColumnName [static] |
Some constants BTX
Definition at line 102 of file vtkKWWindowLevelPresetSelector.h.
const char* vtkKWWindowLevelPresetSelector::LevelColumnName [static] |
Some constants BTX
Definition at line 103 of file vtkKWWindowLevelPresetSelector.h.
const char* vtkKWWindowLevelPresetSelector::TypeColumnName [static] |
Some constants BTX
Definition at line 104 of file vtkKWWindowLevelPresetSelector.h.
vtkKWWindowLevelPresetSelectorInternals* vtkKWWindowLevelPresetSelector::Internals [protected] |
PIMPL Encapsulation for STL containers
Reimplemented from vtkKWPresetSelector.
Definition at line 152 of file vtkKWWindowLevelPresetSelector.h.
1.6.1