vtkgdcmObserver Class Reference

List of all members.

Public Member Functions

virtual char const * GetClassName () const
 vtkgdcmObserver ()
virtual void Execute (vtkObject *, unsigned long event, void *)
virtual char const * GetClassName () const
 vtkgdcmObserver ()
virtual void Execute (vtkObject *, unsigned long event, void *)
virtual char const * GetClassName () const
 vtkgdcmObserver ()
virtual void Execute (vtkObject *, unsigned long event, void *)
virtual char const * GetClassName () const
 vtkgdcmObserver ()
virtual void Execute (vtkObject *, unsigned long event, void *)

Static Public Member Functions

static vtkgdcmObserverNew ()
static vtkgdcmObserverNew ()
static vtkgdcmObserverNew ()
static vtkgdcmObserverNew ()

Public Attributes

vtkImageViewer * ImageViewer
vtkImageViewer2 * ImageViewer
vtkImageViewer * ImageViewer
vtkImageViewer2 * ImageViewer

Detailed Description

Definition at line 64 of file vtkgdcmSerieViewer.cxx.


Constructor & Destructor Documentation

vtkgdcmObserver::vtkgdcmObserver  )  [inline]
 

Definition at line 77 of file vtkgdcmSerieViewer.cxx.

References ImageViewer.

00078    {
00079       this->ImageViewer = NULL;
00080    }

vtkgdcmObserver::vtkgdcmObserver  )  [inline]
 

Definition at line 78 of file vtkgdcmSerieViewer2.cxx.

References ImageViewer.

00079    {
00080       this->ImageViewer = NULL;
00081    }

vtkgdcmObserver::vtkgdcmObserver  )  [inline]
 

Definition at line 60 of file vtkgdcmViewer.cxx.

References ImageViewer.

00061    {
00062       this->ImageViewer = NULL;
00063    }

vtkgdcmObserver::vtkgdcmObserver  )  [inline]
 

Definition at line 61 of file vtkgdcmViewer2.cxx.

References ImageViewer.

00062    {
00063       this->ImageViewer = NULL;
00064    }


Member Function Documentation

virtual void vtkgdcmObserver::Execute vtkObject *  ,
unsigned long  event,
void * 
[inline, virtual]
 

Definition at line 65 of file vtkgdcmViewer2.cxx.

References ImageViewer.

00066    {
00067       if ( this->ImageViewer )
00068       {
00069          if ( event == vtkCommand::CharEvent )
00070          {
00071 #if (VTK_MAJOR_VERSION >= 5)
00072             int max = ImageViewer->GetSliceMax();
00073             int slice = (ImageViewer->GetSlice() + 1 ) % ++max;
00074             ImageViewer->SetSlice( slice );
00075 #else
00076             int max = ImageViewer->GetWholeZMax();
00077             int slice = (ImageViewer->GetZSlice() + 1 ) % ++max;
00078             ImageViewer->SetZSlice( slice );
00079 #endif
00080 #if !( (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION >= 5 ) )
00081          // This used to be a bug in version VTK 4.4 and earlier
00082             ImageViewer->GetRenderer()->ResetCameraClippingRange();
00083 #endif
00084             ImageViewer->Render();
00085          }
00086       }
00087    }

virtual void vtkgdcmObserver::Execute vtkObject *  ,
unsigned long  event,
void * 
[inline, virtual]
 

Definition at line 64 of file vtkgdcmViewer.cxx.

References ImageViewer.

00065    {
00066       if ( this->ImageViewer )
00067       {
00068          if ( event == vtkCommand::CharEvent )
00069          {
00070             int max = ImageViewer->GetWholeZMax();
00071             int slice = (ImageViewer->GetZSlice() + 1 ) % ++max;
00072             ImageViewer->SetZSlice( slice );
00073             ImageViewer->GetRenderer()->ResetCameraClippingRange();
00074             ImageViewer->Render();
00075          }
00076       }
00077    }

virtual void vtkgdcmObserver::Execute vtkObject *  ,
unsigned long  event,
void * 
[inline, virtual]
 

Definition at line 83 of file vtkgdcmSerieViewer2.cxx.

References ImageViewer.

00084    {
00085       if ( this->ImageViewer )
00086       {
00087          if ( event == vtkCommand::CharEvent )
00088          {
00089 #if (VTK_MAJOR_VERSION >= 5)
00090             int max = ImageViewer->GetSliceMax();
00091             int slice = (ImageViewer->GetSlice() + 1 ) % ++max;
00092             ImageViewer->SetSlice( slice );
00093 #else
00094             int max = ImageViewer->GetWholeZMax();
00095             int slice = (ImageViewer->GetZSlice() + 1 ) % ++max;
00096             ImageViewer->SetZSlice( slice );
00097 #endif
00098 #if !( (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION >= 5 ) )
00099          // This used to be a bug in version VTK 4.4 and earlier
00100             ImageViewer->GetRenderer()->ResetCameraClippingRange();
00101 #endif
00102             ImageViewer->Render();
00103          }
00104       }
00105    }

virtual void vtkgdcmObserver::Execute vtkObject *  ,
unsigned long  event,
void * 
[inline, virtual]
 

Definition at line 82 of file vtkgdcmSerieViewer.cxx.

References ImageViewer.

00083    {
00084       if ( this->ImageViewer )
00085       {
00086          if ( event == vtkCommand::CharEvent )
00087          {
00088             int max = ImageViewer->GetWholeZMax();
00089             int slice = (ImageViewer->GetZSlice() + 1 ) % ++max;
00090             ImageViewer->SetZSlice( slice );
00091             ImageViewer->GetRenderer()->ResetCameraClippingRange();
00092             ImageViewer->Render();
00093          }
00094       }
00095    }

virtual char const* vtkgdcmObserver::GetClassName  )  const [inline, virtual]
 

Definition at line 53 of file vtkgdcmViewer2.cxx.

00054    { 
00055       return "vtkgdcmObserver";
00056    }

virtual char const* vtkgdcmObserver::GetClassName  )  const [inline, virtual]
 

Definition at line 52 of file vtkgdcmViewer.cxx.

00053    { 
00054       return "vtkgdcmObserver";
00055    }

virtual char const* vtkgdcmObserver::GetClassName  )  const [inline, virtual]
 

Definition at line 68 of file vtkgdcmSerieViewer2.cxx.

00069    { 
00070       return "vtkgdcmObserver";
00071    }

virtual char const* vtkgdcmObserver::GetClassName  )  const [inline, virtual]
 

Definition at line 67 of file vtkgdcmSerieViewer.cxx.

00068    { 
00069       return "vtkgdcmObserver";
00070    }

static vtkgdcmObserver* vtkgdcmObserver::New  )  [inline, static]
 

Definition at line 57 of file vtkgdcmViewer2.cxx.

00058    { 
00059       return new vtkgdcmObserver; 
00060    }

static vtkgdcmObserver* vtkgdcmObserver::New  )  [inline, static]
 

Definition at line 56 of file vtkgdcmViewer.cxx.

00057    { 
00058       return new vtkgdcmObserver; 
00059    }

static vtkgdcmObserver* vtkgdcmObserver::New  )  [inline, static]
 

Definition at line 73 of file vtkgdcmSerieViewer2.cxx.

00074    { 
00075       return new vtkgdcmObserver; 
00076    }

static vtkgdcmObserver* vtkgdcmObserver::New  )  [inline, static]
 

Definition at line 72 of file vtkgdcmSerieViewer.cxx.

00073    { 
00074       return new vtkgdcmObserver; 
00075    }


Member Data Documentation

vtkImageViewer2* vtkgdcmObserver::ImageViewer
 

Definition at line 88 of file vtkgdcmViewer2.cxx.

vtkImageViewer* vtkgdcmObserver::ImageViewer
 

Definition at line 78 of file vtkgdcmViewer.cxx.

vtkImageViewer2* vtkgdcmObserver::ImageViewer
 

Definition at line 106 of file vtkgdcmSerieViewer2.cxx.

vtkImageViewer* vtkgdcmObserver::ImageViewer
 

Definition at line 96 of file vtkgdcmSerieViewer.cxx.

Referenced by Execute(), and vtkgdcmObserver().


The documentation for this class was generated from the following files:
Generated on Fri Aug 24 12:56:19 2007 for gdcm by  doxygen 1.4.6