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;
        }
Exemple #2
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;
 }
Exemple #3
0
 public DRAWRESULT DrawObject(BaseDrawHelp bh, BaseObject op, DRAWOBJECT flags, DRAWPASS drawpass, BaseObject parent, Fusee.Math.Core.Vector3D /* 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;
 }
Exemple #4
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;
 }
Exemple #5
0
   } /* <Vector_csout> */ 

  public Fusee.Math.Core.Vector3D /* Vector_cstype_out */ GetObjectColor(BaseDrawHelp bh, BaseObject op)  {  /* <Vector_csout> */
      Fusee.Math.Core.Vector3D ret = C4dApiPINVOKE.BaseDraw_GetObjectColor__SWIG_1(swigCPtr, BaseDrawHelp.getCPtr(bh), BaseObject.getCPtr(op));
      return ret;
   } /* <Vector_csout> */ 
Exemple #6
0
 public bool AddToPostPass(BaseObject op, BaseDrawHelp bh) {
   bool ret = C4dApiPINVOKE.BaseDraw_AddToPostPass(swigCPtr, BaseObject.getCPtr(op), BaseDrawHelp.getCPtr(bh));
   return ret;
 }
Exemple #7
0
 internal static HandleRef getCPtr(BaseDrawHelp obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
   } /* </String_csout> */ 

  public virtual bool SceneDraw(GvNode bn, BaseDraw bd, BaseDrawHelp bh, BaseThread bt, int flags, SWIGTYPE_p_void data, SWIGTYPE_p_ULONG 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), SWIGTYPE_p_ULONG.getCPtr(counter));
    if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }
Exemple #9
0
 public virtual DRAWRESULT Draw(BaseObject op, DRAWPASS drawpass, BaseDraw bd, BaseDrawHelp bh) {
   DRAWRESULT ret = (DRAWRESULT)C4dApiPINVOKE.ObjectData_Draw(swigCPtr, BaseObject.getCPtr(op), (int)drawpass, BaseDraw.getCPtr(bd), BaseDrawHelp.getCPtr(bh));
   return ret;
 }