1
/*=========================================================================
3
Program: Image Guided Surgery Software Toolkit
4
Module: $RCSfile: TrackingVolumeViewerQuadrantViews.cxx,v $
6
Date: $Date: 2009-01-30 20:48:03 $
7
Version: $Revision: 1.1 $
9
Copyright (c) ISC Insight Software Consortium. All rights reserved.
10
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
16
=========================================================================*/
18
// generated by Fast Light User Interface Designer (fluid) version 1.0107
20
#include "TrackingVolumeViewerQuadrantViews.h"
25
TrackingVolumeViewerQuadrantViews::TrackingVolumeViewerQuadrantViews(int X, int Y, int W, int H, const char *L)
26
: Fl_Group(X, Y, W, H, L)
29
m_Reporter = ::itk::Object::New();
31
const int C = 5; // Width of the vertical separator
33
Fl_Group * parentGroup = this->parent();
35
m_X = 150; // width of the control panel
38
m_Width = parentGroup->w() - m_X;
39
m_Height = parentGroup->h();
41
m_WW = (int) (m_Width-2*C)/2;
42
m_HH = (int) (m_Height-2*C)/2;
45
typedef igstk::FLTKWidget WidgetType;
47
m_AxialWidget = new WidgetType(X, Y, m_WW, m_HH, "Display 0");
48
m_SagittalWidget = new WidgetType(X+m_WW+C, Y, m_WW, m_HH, "Display 1");
49
m_CoronalWidget = new WidgetType(X, Y+m_HH+C, m_WW, m_HH, "Display 2");
50
m_3DWidget = new WidgetType(X+m_WW+C, Y+m_HH+C, m_WW, m_HH, "Display 3");
53
m_AxialView = ViewType2D::New();
54
m_AxialView->RequestSetOrientation( View2D::Axial );
56
m_SagittalView = ViewType2D::New();
57
m_SagittalView->RequestSetOrientation( View2D::Sagittal );
59
m_CoronalView = ViewType2D::New();
60
m_CoronalView->RequestSetOrientation( View2D::Coronal );
62
m_3DView = ViewType3D::New();
64
m_AxialWidget->RequestSetView( m_AxialView );
65
m_SagittalWidget->RequestSetView( m_SagittalView );
66
m_CoronalWidget->RequestSetView( m_CoronalView );
67
m_3DWidget->RequestSetView( m_3DView );
72
TrackingVolumeViewerQuadrantViews::~TrackingVolumeViewerQuadrantViews()
75
delete m_SagittalWidget;
76
delete m_CoronalWidget;
80
unsigned long TrackingVolumeViewerQuadrantViews::AddObserver(
81
const ::itk::EventObject & event, ::itk::Command * observer )
83
return m_Reporter->AddObserver( event, observer );
86
void TrackingVolumeViewerQuadrantViews::RemoveObserver( unsigned long tag )
88
m_Reporter->RemoveObserver( tag );
91
void TrackingVolumeViewerQuadrantViews::RemoveAllObservers()
93
m_Reporter->RemoveAllObservers();
97
} // end namespace igstk