Esempio n. 1
0
    protected int GetMatrix(HEventInfo hevent, int key_count, MVO_POINTER_SIZED_INT[] full_path_keys, float[] matrix_out)
    {
        int ret = HCSMVOPINVOKE.HOpObjectTranslate_GetMatrix(swigCPtr, HEventInfo.getCPtr(hevent), key_count, full_path_keys, matrix_out);

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 2
0
    protected int UpdateMousePos(HEventInfo hevent)
    {
        int ret = HCSMVOPINVOKE.HOpObjectTranslate_UpdateMousePos(swigCPtr, HEventInfo.getCPtr(hevent));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 3
0
    public override int OnLButtonDblClk(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HOpConstructPolyline)) ? HCSMVOPINVOKE.HOpConstructPolyline_OnLButtonDblClk(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpConstructPolyline_OnLButtonDblClkSwigExplicitHOpConstructPolyline(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 4
0
    public virtual int OnJoyStickTranslation(HEventInfo param_1)
    {
        int ret = ((this.GetType() == typeof(HJoyStickListener)) ? HCSMVOPINVOKE.HJoyStickListener_OnJoyStickTranslation(swigCPtr, HEventInfo.getCPtr(param_1)) : HCSMVOPINVOKE.HJoyStickListener_OnJoyStickTranslationSwigExplicitHJoyStickListener(swigCPtr, HEventInfo.getCPtr(param_1)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 5
0
    public override int OnLButtonUp(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HOpSelectArea)) ? HCSMVOPINVOKE.HOpSelectArea_OnLButtonUp(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpSelectArea_OnLButtonUpSwigExplicitHOpSelectArea(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 6
0
    public override int OnMouseWheel(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HOpCameraOrbitTurntable)) ? HCSMVOPINVOKE.HOpCameraOrbitTurntable_OnMouseWheel(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpCameraOrbitTurntable_OnMouseWheelSwigExplicitHOpCameraOrbitTurntable(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 7
0
    public override int OnLButtonDownAndMove(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HOpCameraWalk)) ? HCSMVOPINVOKE.HOpCameraWalk_OnLButtonDownAndMove(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpCameraWalk_OnLButtonDownAndMoveSwigExplicitHOpCameraWalk(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 8
0
    public virtual int OnNoButtonDownAndMove(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HBaseOperator)) ? HCSMVOPINVOKE.HBaseOperator_OnNoButtonDownAndMove(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HBaseOperator_OnNoButtonDownAndMoveSwigExplicitHBaseOperator(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 9
0
    public override int OnTouchesUp(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HBaseOperator)) ? HCSMVOPINVOKE.HBaseOperator_OnTouchesUp(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HBaseOperator_OnTouchesUpSwigExplicitHBaseOperator(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 10
0
    public virtual int OnLButtonUp(HEventInfo param_1)
    {
        int ret = ((this.GetType() == typeof(HMouseListener)) ? HCSMVOPINVOKE.HMouseListener_OnLButtonUp(swigCPtr, HEventInfo.getCPtr(param_1)) : HCSMVOPINVOKE.HMouseListener_OnLButtonUpSwigExplicitHMouseListener(swigCPtr, HEventInfo.getCPtr(param_1)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 11
0
    public override int OnKeyDown(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HOpObjectClash)) ? HCSMVOPINVOKE.HOpObjectClash_OnKeyDown(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpObjectClash_OnKeyDownSwigExplicitHOpObjectClash(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 12
0
    public override int OnTouchesUp(HEventInfo hevent)
    {
        int ret = HCSMVOPINVOKE.HOpCameraPanTouch_OnTouchesUp(swigCPtr, HEventInfo.getCPtr(hevent));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 13
0
    public override int OnLButtonDown(HEventInfo hevent)
    {
        int ret = ((this.GetType() == typeof(HOpCreateCuttingPlane)) ? HCSMVOPINVOKE.HOpCreateCuttingPlane_OnLButtonDown(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpCreateCuttingPlane_OnLButtonDownSwigExplicitHOpCreateCuttingPlane(swigCPtr, HEventInfo.getCPtr(hevent)));

        if (HCSMVOPINVOKE.SWIGPendingException.Pending)
        {
            throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 14
0
        /*!
         * Responds to MouseMove events and passes particular co-ordinates to hoops
         *
         * \param sender A reference to an object which is the root of the type hierarchy
         * \param e Provides data for the System.Windows.Forms.UserControl.MouseMove event
         */
        protected void PanelMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            HEventInfo hevent = new HEventInfo(m_pHView);

            uint flags = MapFlags_Mouse(e);

            hevent.SetPoint(HEventType.HE_MouseMove, e.X, e.Y, flags);

            m_pHView.InjectEvent(hevent);
        }
Esempio n. 15
0
 /*!
  * This method is called from HNForm OnKeyUp method
  *
  * It dispatches the OnKeyUp event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object
  * The state flags are mapped to HOOPS/MVO abstracted flags
  *
  * \param e Provides data for System.Windows.Forms.Control.KeyUp event
  */
 public new void OnKeyUp(KeyEventArgs e)
 {
     if (m_pHView != null)
     {
         HEventInfo hevent = new HEventInfo(m_pHView);
         uint       flags  = MapModifierKeys(0);
         hevent.SetKey(HEventType.HE_KeyUp, (uint)m_keyPairs[e.KeyValue], 1, flags);
         m_pHView.InjectEvent(hevent);
     }
 }
Esempio n. 16
0
        /*!
         * This method is called from HNForm OnMouseWheel method
         *
         * It dispatches the OnMouseWheel event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object
         * The state flags are mapped to HOOPS/MVO abstracted flags
         *
         * \param e Provides data for System.Windows.Forms.Control.MouseWheel
         */
        public new void OnMouseWheel(MouseEventArgs e)
        {
            HEventInfo hevent = new HEventInfo(m_pHView);

            hevent.SetMouseWheelDelta(e.Delta);
            uint flags = MapFlags_Mouse(e);

            hevent.SetPoint(HEventType.HE_MouseWheel, e.X, e.Y, flags);

            m_pHView.InjectEvent(hevent);
        }
Esempio n. 17
0
        /*!
         * This method is called from HNForm OnKeyPress method
         *
         * It dispatches the OnKeyDown event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object
         * The state flags are mapped to HOOPS/MVO abstracted flags
         *
         * \param e Provides data for System.Windows.Forms.Control.KeyPress event
         */
        public new void OnKeyPress(KeyPressEventArgs e)
        {
            if (m_pHView != null)
            {
                m_keyPairs[m_lastKeyPressed] = e.KeyChar;

                HEventInfo hevent = new HEventInfo(m_pHView);
                uint       flags  = MapModifierKeys(0);
                hevent.SetKey(HEventType.HE_KeyDown, (uint)e.KeyChar, 1, flags);
                m_pHView.InjectEvent(hevent);
            }
        }
Esempio n. 18
0
        /*!
         * Responds to MouseMove events and passes particular co-ordinates to hoops
         *
         * \param sender A reference to an object which is the root of the type hierarchy
         * \param e Provides data for the System.Windows.Forms.Control.MouseMove event
         */
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);

            HEventInfo hevent = new HEventInfo(m_pHView);

            uint flags = MapFlags_Mouse(e);

            hevent.SetPoint(HEventType.HE_MouseMove, e.X, e.Y, flags);

            m_pHView.InjectEvent(hevent);
        }
Esempio n. 19
0
        /*!
         * Maps the MouseLeftButtonUp event to HPanel::MouseLeftButtonUp
         *
         * \param e Provides data for System.Windows.Forms.Control.MouseLeftButtonUp event
         */
        protected void Window_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (m_pHPanel != null && m_pHPanel.m_pHView != null)
            {
                Point position = e.GetPosition(this);
                int   pX       = (int)position.X;
                int   pY       = (int)position.Y;

                HEventInfo hevent = new HEventInfo(m_pHPanel.m_pHView);
                uint       flags  = MapFlags_Mouse(e);
                hevent.SetPoint(HEventType.HE_LButtonUp, pX, pY, flags);
                m_pHPanel.m_pHView.InjectEvent(hevent);
            }
        }
Esempio n. 20
0
        /*!
         * This method is called from HNForm OnKeyDown method
         *
         * It dispatches the OnKeyDown event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object
         * The state flags are mapped to HOOPS/MVO abstracted flags
         *
         * \param e Provides data for System.Windows.Forms.Control.KeyDown event
         */
        public new void OnKeyDown(KeyEventArgs e)
        {
            if (m_pHView != null)
            {
                m_lastKeyPressed = e.KeyValue;

                if (e.KeyCode == Keys.ShiftKey || e.KeyCode == Keys.ControlKey)
                {
                    HEventInfo hevent = new HEventInfo(m_pHView);
                    uint       flags  = MapModifierKeys(0);
                    hevent.SetKey(HEventType.HE_KeyDown, 0, 1, flags);
                    m_pHView.InjectEvent(hevent);
                }
            }
        }
Esempio n. 21
0
 protected virtual void HandleSelection(HEventInfo hevent)
 {
     if (this.GetType() == typeof(HOpSelectAperture))
     {
         HCSMVOPINVOKE.HOpSelectAperture_HandleSelection(swigCPtr, HEventInfo.getCPtr(hevent));
     }
     else
     {
         HCSMVOPINVOKE.HOpSelectAperture_HandleSelectionSwigExplicitHOpSelectAperture(swigCPtr, HEventInfo.getCPtr(hevent));
     }
     if (HCSMVOPINVOKE.SWIGPendingException.Pending)
     {
         throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 22
0
 /*!
  * It dispatches the OnKeyUp event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object
  * The state flags are mapped to HOOPS/MVO abstracted flags
  *
  * \param e Provides data for System.Windows.Forms.UserControl.KeyUp event
  */
 public new void OnKeyUp(System.Windows.Forms.KeyEventArgs e)
 {
     if (m_pHView != null)
     {
         if (e.KeyValue < 0 || e.KeyValue >= m_keyPairs.Length)
         {
             // do nothing because array out of bounds will occur.
         }
         else
         {
             try
             {
                 HEventInfo hevent = new HEventInfo(m_pHView);
                 uint       flags  = MapModifierKeys(0);
                 hevent.SetKey(HEventType.HE_KeyUp, (uint)m_keyPairs[e.KeyValue], 1, flags);
                 m_pHView.InjectEvent(hevent);
             }
             catch
             {
                 Trace.WriteLine("HPanel.OnKeyUp exception:key=" + e.KeyValue.ToString());
             }
         }
     }
 }
Esempio n. 23
0
 public MVO_POINTER_SIZED_INT FindHandle(HEventInfo hevent)
 {
     return(HCSMVOPINVOKE.HOpMoveHandle_FindHandle(swigCPtr, HEventInfo.getCPtr(hevent)));
 }
Esempio n. 24
0
 public override int OnLButtonUp(HEventInfo hevent) {
   int ret = ((this.GetType() == typeof(HOpCameraOrbit)) ? HCSMVOPINVOKE.HOpCameraOrbit_OnLButtonUp(swigCPtr, HEventInfo.getCPtr(hevent)) : HCSMVOPINVOKE.HOpCameraOrbit_OnLButtonUpSwigExplicitHOpCameraOrbit(swigCPtr, HEventInfo.getCPtr(hevent)));
   if (HCSMVOPINVOKE.SWIGPendingException.Pending) throw HCSMVOPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Esempio n. 25
0
 public MVO_POINTER_SIZED_INT FindObject(HEventInfo hevent, MVO_POINTER_SIZED_INT key)
 {
     return(HCSMVOPINVOKE.HOpMoveHandle_FindObject__SWIG_1(swigCPtr, HEventInfo.getCPtr(hevent), key));
 }
Esempio n. 26
0
 public static HandleRef getCPtr(HEventInfo obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }