Beispiel #1
0
        public override DRAWRESULT Draw(BaseObject op, DRAWPASS type, BaseDraw bd, BaseDrawHelp bh)
        {
            if (type != DRAWPASS.DRAWPASS_HANDLES)
            {
                return(DRAWRESULT.DRAWRESULT_SKIP);
            }

            int hitid = op.GetHighlightHandle(bd);

            double4x4 m = bh.GetMg();

            if (hitid == 0)
            {
                bd.SetPen(C4dApi.GetViewColor(C4dApi.VIEWCOLOR_SELECTION_PREVIEW));
            }
            else
            {
                bd.SetPen(C4dApi.GetViewColor(C4dApi.VIEWCOLOR_ACTIVEPOINT));
            }

            // double3 zeroPos = new double3(0, 0, 0);
            bd.SetMatrix_Matrix(op, ref m);
            bd.DrawHandle(GetRTHandle(op, 0), DRAWHANDLE.DRAWHANDLE_BIG, 0);
            bd.DrawLine(GetRTHandle(op, 0), new double3(0, 0, 0), 0);

            return(DRAWRESULT.DRAWRESULT_OK);
        }
Beispiel #2
0
        public static BaseDrawHelp Alloc(BaseDraw bd, BaseDocument doc)
        {
            global::System.IntPtr cPtr = C4dApiPINVOKE.BaseDrawHelp_Alloc(BaseDraw.getCPtr(bd), BaseDocument.getCPtr(doc));
            BaseDrawHelp          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BaseDrawHelp(cPtr, false);

            return(ret);
        }
Beispiel #3
0
        public bool GetHighlightPassColor(BaseDrawHelp bh, bool lineObject, ref Fusee.Math.Core.double3 /* Vector*&_cstype */ col)
        {
            bool ret = C4dApiPINVOKE.BaseDraw_GetHighlightPassColor(swigCPtr, BaseDrawHelp.getCPtr(bh), lineObject, ref col /* Vector*&_csin */);

            if (C4dApiPINVOKE.SWIGPendingException.Pending)
            {
                throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #4
0
        public virtual DRAWRESULT DrawShadow(BaseObject op, BaseDraw bd, BaseDrawHelp bh)
        {
            DRAWRESULT ret = (DRAWRESULT)C4dApiPINVOKE.ObjectData_DrawShadow(swigCPtr, BaseObject.getCPtr(op), BaseDraw.getCPtr(bd), BaseDrawHelp.getCPtr(bh));

            return(ret);
        }
Beispiel #5
0
        public virtual bool Draw(BaseTag tag, BaseObject op, BaseDraw bd, BaseDrawHelp bh)
        {
            bool ret = C4dApiPINVOKE.TagData_Draw(swigCPtr, BaseTag.getCPtr(tag), BaseObject.getCPtr(op), BaseDraw.getCPtr(bd), BaseDrawHelp.getCPtr(bh));

            return(ret);
        }
Beispiel #6
0
        public bool AddToPostPass(BaseObject op, BaseDrawHelp bh)
        {
            bool ret = C4dApiPINVOKE.BaseDraw_AddToPostPass(swigCPtr, BaseObject.getCPtr(op), BaseDrawHelp.getCPtr(bh));

            return(ret);
        }
Beispiel #7
0
        public DRAWRESULT DrawObject(BaseDrawHelp bh, BaseObject op, DRAWOBJECT flags, DRAWPASS drawpass)
        {
            DRAWRESULT ret = (DRAWRESULT)C4dApiPINVOKE.BaseDraw_DrawObject__SWIG_2(swigCPtr, BaseDrawHelp.getCPtr(bh), BaseObject.getCPtr(op), (int)flags, (int)drawpass);

            return(ret);
        }
Beispiel #8
0
        public DRAWRESULT DrawObject(BaseDrawHelp bh, BaseObject op, DRAWOBJECT flags, DRAWPASS drawpass, BaseObject parent, Fusee.Math.Core.double3 /* constVector&_cstype */ col)
        {
            DRAWRESULT ret = (DRAWRESULT)C4dApiPINVOKE.BaseDraw_DrawObject__SWIG_0(swigCPtr, BaseDrawHelp.getCPtr(bh), BaseObject.getCPtr(op), (int)flags, (int)drawpass, BaseObject.getCPtr(parent), ref col /* constVector&_csin */);

            return(ret);
        }
Beispiel #9
0
        public DRAWRESULT DrawPolygonObject(BaseDrawHelp bh, BaseObject op, DRAWOBJECT flags, BaseObject parent)
        {
            DRAWRESULT ret = (DRAWRESULT)C4dApiPINVOKE.BaseDraw_DrawPolygonObject__SWIG_1(swigCPtr, BaseDrawHelp.getCPtr(bh), BaseObject.getCPtr(op), (int)flags, BaseObject.getCPtr(parent));

            return(ret);
        }
Beispiel #10
0
        } /* <Vector_csout> */

        public Fusee.Math.Core.double3 /* Vector_cstype_out */ GetObjectColor(BaseDrawHelp bh, BaseObject op) /* <Vector_csout> */
        {
            Fusee.Math.Core.double3 ret = C4dApiPINVOKE.BaseDraw_GetObjectColor__SWIG_1(swigCPtr, BaseDrawHelp.getCPtr(bh), BaseObject.getCPtr(op));
            return(ret);
        } /* <Vector_csout> */
Beispiel #11
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseDrawHelp obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #12
0
        public virtual bool SceneDraw(GvNode bn, BaseDraw bd, BaseDrawHelp bh, BaseThread bt, int flags, SWIGTYPE_p_void data, uint counter)
        {
            bool ret = C4dApiPINVOKE.GvOperatorData_SceneDraw(swigCPtr, GvNode.getCPtr(bn), BaseDraw.getCPtr(bd), BaseDrawHelp.getCPtr(bh), BaseThread.getCPtr(bt), flags, SWIGTYPE_p_void.getCPtr(data), counter);

            return(ret);
        }