public ImageControl(ViewType p_viewType) { InitializeComponent(); this.viewType = p_viewType; this.m_bHandle = MPR_UI_Interface.GetHandle(); this.Load += ImageControl_Load; }
public DVHControl() { InitializeComponent(); this.m_dvhPoints = new Dictionary<int, List<double> >(); this.m_computed_dvhPoints = new Dictionary<int, List<double>>(); this.m_histogram = null; this.m_UIInterface = MPR_UI_Interface.GetHandle(); }
private void button1_Click(object sender, EventArgs e) { button1.Enabled = false; MPR_UI_Interface ui_interface = MPR_UI_Interface.GetHandle(); ui_interface.InitMPR(Settings.Default.DICOM_DIR); axialImage.InitScrollBarAndLoadImage(); sagittalImage.InitScrollBarAndLoadImage(); coronalImage.InitScrollBarAndLoadImage(); }
public ImageControl(Axis axis) { InitializeComponent(); this.m_axis = axis; this.m_scrollbarInit = false; this.m_imagePanel = new ImagePanel2(); this.m_imagePanel.Dock = DockStyle.Fill; this.m_imagePanel.EVT_MPRCursorTranslated += TranslateMPRCursor; this.m_imagePanel.EVT_RaisePixelIntensity += RaisePixelIntensity; this.panel1.Controls.Add(this.m_imagePanel); m_UIInterface = MPR_UI_Interface.GetHandle(); EventDelegate_BRIDGE.EDB.Instance.EVT_UpdatePTCTImage += Handle_UpdatePTCTImage; EventDelegate_BRIDGE.EDB.Instance.EVT_UpdateCursorPos += Handle_UpdateCursorPos; EventDelegate_BRIDGE.EDB.Instance.EVT_PixelIntensityAndSUV += PixelIntensityAndSUV; }
public ImageControl(Axis axis) { InitializeComponent(); this.m_isMaximized = false; this.m_axis = axis; this.m_imagePanel = new ImagePanel2(); this.m_imagePanel.Parent = this; this.m_imagePanel.Dock = DockStyle.Fill; this.m_imagePanel.EVT_MPRCursorTranslated += TranslateMPRCursor; this.m_imagePanel.EVT_RaisePixelIntensity += RaisePixelIntensity; this.m_imagePanel.EVT_RaiseSlicerRotated += RaiseSlicerRotated; this.panel1.Controls.Add(this.m_imagePanel); m_UIInterface = MPR_UI_Interface.GetHandle(); EventHandling.EventHandler1.Instance.EVT_UpdateImage += Handle_UpdateImage; m_roiColor = new Dictionary <int, Color>(); m_roiPoints = new Dictionary <int, Dictionary <int, List <PointF> > >(); m_doseColor = new Dictionary <int, Color>(); m_dosePoints = new Dictionary <int, Dictionary <int, List <PointF> > >(); //m_UIInterface.EVT_UpdateImage += Handle_UpdateImage; }