示例#1
0
        public GvPort CalculateOutPort(GvPort port, GvRun run, GvCalc calc)
        {
            global::System.IntPtr cPtr = C4dApiPINVOKE.GvNode_CalculateOutPort(swigCPtr, GvPort.getCPtr(port), GvRun.getCPtr(run), GvCalc.getCPtr(calc));
            GvPort ret = (cPtr == global::System.IntPtr.Zero) ? null : new GvPort(cPtr, false);

            return(ret);
        }
示例#2
0
 public bool IsConnectionValid(GvNode source_node, GvPort source_port, GvNode dest_node, GvPort dest_port, ref GvNode /* GvNode_cstype */ source_node_out, ref GvPort /* GvPort_cstype */ source_port_out, ref GvNode /* GvNode_cstype */ dest_node_out, ref GvPort /* GvPort_cstype */ dest_port_out)
 {
     global::System.IntPtr p_source_node_out;
     unsafe { void *pp_source_node_out = &p_source_node_out;                        /* GvNode_csin_pre */
              global::System.IntPtr p_source_port_out;
              unsafe { void *pp_source_port_out = &p_source_port_out;               /* GvPort_csin_pre */
                       global::System.IntPtr p_dest_node_out;
                       unsafe { void *pp_dest_node_out = &p_dest_node_out;          /* GvNode_csin_pre */
                                global::System.IntPtr p_dest_port_out;
                                unsafe { void *pp_dest_port_out = &p_dest_port_out; /* GvPort_csin_pre */
                                         try {
                                             bool ret = C4dApiPINVOKE.GvNodeMaster_IsConnectionValid(swigCPtr, GvNode.getCPtr(source_node), GvPort.getCPtr(source_port), GvNode.getCPtr(dest_node), GvPort.getCPtr(dest_port), (global::System.IntPtr)pp_source_node_out /* GvNode_csin */, (global::System.IntPtr)pp_source_port_out /* GvPort_csin */, (global::System.IntPtr)pp_dest_node_out /* GvNode_csin */, (global::System.IntPtr)pp_dest_port_out /* GvPort_csin */);
                                             if (C4dApiPINVOKE.SWIGPendingException.Pending)
                                             {
                                                 throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
                                             }
                                             return(ret);
                                         } finally {
                                             source_node_out = new GvNode(p_source_node_out, false);
                                             /* GvNode_csin_post */
                                             source_port_out = new GvPort(p_source_port_out, false);
                                             /* GvPort_csin_post */
                                             dest_node_out = new GvNode(p_dest_node_out, false);
                                             /* GvNode_csin_post */
                                             dest_port_out = new GvPort(p_dest_port_out, false);
                                             /* GvPort_csin_post */
                                         } } /* GvPort_csin_terminator */
                       }                     /* GvNode_csin_terminator */
              }                              /* GvPort_csin_terminator */
     }                                       /* GvNode_csin_terminator */
 }
示例#3
0
        public bool RemovePortIsOK(GvPort port)
        {
            bool ret = C4dApiPINVOKE.GvNode_RemovePortIsOK(swigCPtr, GvPort.getCPtr(port));

            return(ret);
        }
示例#4
0
        public GvPort AddConnection(GvNode source_node, GvPort source_port, GvNode dest_node, GvPort dest_port)
        {
            global::System.IntPtr cPtr = C4dApiPINVOKE.GvNode_AddConnection(swigCPtr, GvNode.getCPtr(source_node), GvPort.getCPtr(source_port), GvNode.getCPtr(dest_node), GvPort.getCPtr(dest_port));
            GvPort ret = (cPtr == global::System.IntPtr.Zero) ? null : new GvPort(cPtr, false);

            return(ret);
        }
示例#5
0
 public void RemovePort(GvPort port, bool message)
 {
     C4dApiPINVOKE.GvNode_RemovePort__SWIG_0(swigCPtr, GvPort.getCPtr(port), message);
 }
示例#6
0
 public void RemovePort(GvPort port)
 {
     C4dApiPINVOKE.GvNode_RemovePort__SWIG_1(swigCPtr, GvPort.getCPtr(port));
 }
示例#7
0
        public bool SetPortType(GvPort port, int id)
        {
            bool ret = C4dApiPINVOKE.GvNode_SetPortType(swigCPtr, GvPort.getCPtr(port), id);

            return(ret);
        }
示例#8
0
        public virtual bool SetRecalculate(GvNode bn, GvPort port, GvRun run)
        {
            bool ret = C4dApiPINVOKE.GvOperatorData_SetRecalculate__SWIG_1(swigCPtr, GvNode.getCPtr(bn), GvPort.getCPtr(port), GvRun.getCPtr(run));

            return(ret);
        }
示例#9
0
        public virtual bool Calculate(GvNode bn, GvPort port, GvRun run, GvCalc calc)
        {
            bool ret = C4dApiPINVOKE.GvOperatorData_Calculate(swigCPtr, GvNode.getCPtr(bn), GvPort.getCPtr(port), GvRun.getCPtr(run), GvCalc.getCPtr(calc));

            return(ret);
        }
示例#10
0
        public bool CalculatePortData(GvPort data, SWIGTYPE_p_void dest, GvRun r, GvValueFlags calculation)
        {
            bool ret = C4dApiPINVOKE.GvPort_CalculatePortData__SWIG_1(swigCPtr, GvPort.getCPtr(data), SWIGTYPE_p_void.getCPtr(dest), GvRun.getCPtr(r), (int)calculation);

            return(ret);
        }
示例#11
0
        public bool CopyPortData(GvPort source, GvRun r)
        {
            bool ret = C4dApiPINVOKE.GvPort_CopyPortData(swigCPtr, GvPort.getCPtr(source), GvRun.getCPtr(r));

            return(ret);
        }