Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkKWWindowLevelPresetSelector Class Reference

a window level preset selector. More...

#include <vtkKWWindowLevelPresetSelector.h>

Inheritance diagram for vtkKWWindowLevelPresetSelector:

Inheritance graph
[legend]
Collaboration diagram for vtkKWWindowLevelPresetSelector:

Collaboration graph
[legend]
List of all members.

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

vtkKWWindowLevelPresetSelectorNew ()

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 ()

Detailed Description

a window level preset selector.

This class is a widget that can be used to store and apply window/level presets.

Thanks:
This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on the National Centers for Biomedical Computing can be obtained from http://nihroadmap.nih.gov/bioinformatics.
See also:
vtkKWPresetSelector

Definition at line 42 of file vtkKWWindowLevelPresetSelector.h.


Constructor & Destructor Documentation

vtkKWWindowLevelPresetSelector::vtkKWWindowLevelPresetSelector  )  [inline, protected]
 

Definition at line 105 of file vtkKWWindowLevelPresetSelector.h.

vtkKWWindowLevelPresetSelector::~vtkKWWindowLevelPresetSelector  )  [inline, protected]
 

Definition at line 106 of file vtkKWWindowLevelPresetSelector.h.


Member Function Documentation

vtkKWWindowLevelPresetSelector* vtkKWWindowLevelPresetSelector::New  )  [static]
 

Reimplemented from vtkKWPresetSelector.

vtkKWWindowLevelPresetSelector::vtkTypeRevisionMacro vtkKWWindowLevelPresetSelector  ,
vtkKWPresetSelector 
 

void vtkKWWindowLevelPresetSelector::PrintSelf ostream &  os,
vtkIndent  indent
 

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]
 

Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise

virtual double vtkKWWindowLevelPresetSelector::GetPresetLevel int  id  )  [virtual]
 

Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise

virtual int vtkKWWindowLevelPresetSelector::SetPresetLevel int  id,
double  level
[virtual]
 

Set/Get the window/level values for a given preset. Return 1 on success, 0 otherwise

virtual int vtkKWWindowLevelPresetSelector::SetPresetModality int  id,
const char *  modality
[virtual]
 

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

virtual const char* vtkKWWindowLevelPresetSelector::GetPresetModality int  id  )  [virtual]
 

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

virtual void vtkKWWindowLevelPresetSelector::SetModalityColumnVisibility int   )  [virtual]
 

Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create().

virtual int vtkKWWindowLevelPresetSelector::GetModalityColumnVisibility  )  [virtual]
 

Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create().

virtual void vtkKWWindowLevelPresetSelector::ModalityColumnVisibilityOn  )  [virtual]
 

Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create().

virtual void vtkKWWindowLevelPresetSelector::ModalityColumnVisibilityOff  )  [virtual]
 

Set/Get the visibility of the modality column. Hidden by default. No effect if called before Create().

virtual int vtkKWWindowLevelPresetSelector::HasPresetWithGroupWithWindowLevel const char *  group,
double  window,
double  level
[virtual]
 

Query if a the pool has a given window/level preset in a group

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]
 

Convenience methods to get the index of a given column

virtual int vtkKWWindowLevelPresetSelector::GetLevelColumnIndex  )  [protected, virtual]
 

Convenience methods to get the index of a given column

virtual int vtkKWWindowLevelPresetSelector::GetModalityColumnIndex  )  [protected, virtual]
 

Convenience methods to get the index of a given column


Member Data Documentation

const char* vtkKWWindowLevelPresetSelector::WindowColumnName [static]
 

Some constants BTX

Definition at line 98 of file vtkKWWindowLevelPresetSelector.h.

const char* vtkKWWindowLevelPresetSelector::LevelColumnName [static]
 

Some constants BTX

Definition at line 99 of file vtkKWWindowLevelPresetSelector.h.

const char* vtkKWWindowLevelPresetSelector::ModalityColumnName [static]
 

Some constants BTX

Definition at line 100 of file vtkKWWindowLevelPresetSelector.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:48:11 2006 for ParaView by doxygen 1.3.5