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

GUI/Widgets/vtkKWWindowLevelPresetSelector.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Copyright (c) 1998-2003 Kitware Inc. 469 Clifton Corporate Parkway,
00004 Clifton Park, NY, 12065, USA.
00005 
00006 All rights reserved. No part of this software may be reproduced, distributed,
00007 or modified, in any form or by any means, without permission in writing from
00008 Kitware Inc.
00009 
00010 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
00011 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
00012 OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
00013 EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00014 
00015 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
00016 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
00017 PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS PROVIDED ON AN
00018 "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
00019 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
00020 
00021 =========================================================================*/
00037 #ifndef __vtkKWWindowLevelPresetSelector_h
00038 #define __vtkKWWindowLevelPresetSelector_h
00039 
00040 #include "vtkKWPresetSelector.h"
00041 
00042 class KWWIDGETS_EXPORT vtkKWWindowLevelPresetSelector : public vtkKWPresetSelector
00043 {
00044 public:
00045   static vtkKWWindowLevelPresetSelector* New();
00046   vtkTypeRevisionMacro(vtkKWWindowLevelPresetSelector, vtkKWPresetSelector);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050 
00052   virtual double GetPresetWindow(int id);
00053   virtual int SetPresetWindow(int id, double window);
00054   virtual double GetPresetLevel(int id);
00055   virtual int SetPresetLevel(int id, double level);
00057 
00059 
00063   virtual int SetPresetModality(int id, const char *modality);
00064   virtual const char* GetPresetModality(int id);
00066 
00068 
00070   virtual void SetModalityColumnVisibility(int);
00071   virtual int GetModalityColumnVisibility();
00072   vtkBooleanMacro(ModalityColumnVisibility, int);
00074 
00076 
00077   virtual int HasPresetWithGroupWithWindowLevel(
00078     const char *group, double window, double level);
00080 
00082 
00087   virtual const char* PresetCellEditEndCallback(
00088     int row, int col, const char *text);
00090 
00094   virtual void PresetCellUpdatedCallback(int row, int col, const char *text);
00095 
00097 
00098   static const char *WindowColumnName;
00099   static const char *LevelColumnName;
00100   static const char *ModalityColumnName;
00101   //ETX
00103 
00104 protected:
00105   vtkKWWindowLevelPresetSelector() {};
00106   ~vtkKWWindowLevelPresetSelector() {};
00107 
00111   virtual void CreateColumns();
00112 
00120   virtual int UpdatePresetRow(int id);
00121 
00123 
00124   virtual int GetWindowColumnIndex();
00125   virtual int GetLevelColumnIndex();
00126   virtual int GetModalityColumnIndex();
00128 
00129 private:
00130 
00131   vtkKWWindowLevelPresetSelector(const vtkKWWindowLevelPresetSelector&); // Not implemented
00132   void operator=(const vtkKWWindowLevelPresetSelector&); // Not implemented
00133 };
00134 
00135 #endif

Generated on Tue May 30 12:31:45 2006 for ParaView by doxygen 1.3.5