コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: ImageControl.cs プロジェクト: isliulin/MPR
        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;
        }