public bool GetIncomingSource(ref GvNode /* GvNode_cstype */ node, ref GvPort /* GvPort_cstype */ port) { IntPtr p_node; unsafe { void *pp_node = &p_node; /* GvNode_csin_pre */ IntPtr p_port; unsafe { void *pp_port = &p_port; /* GvPort_csin_pre */ try { bool ret = C4dApiPINVOKE.GvPort_GetIncomingSource(swigCPtr, (IntPtr) pp_node /* GvNode_csin */, (IntPtr) pp_port /* GvPort_csin */); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; } finally { node = new GvNode(p_node, false); /* GvNode_csin_post */ port = new GvPort(p_port, false); /* GvPort_csin_post */ } } /* GvPort_csin_terminator */ } /* GvNode_csin_terminator */ }
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; }
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; }
public GvPort CalculateOutPort(GvPort port, GvRun run, GvCalc calc) { IntPtr cPtr = C4dApiPINVOKE.GvNode_CalculateOutPort(swigCPtr, GvPort.getCPtr(port), GvRun.getCPtr(run), GvCalc.getCPtr(calc)); GvPort ret = (cPtr == IntPtr.Zero) ? null : new GvPort(cPtr, false); return ret; }
public GvPort AddConnection(GvNode source_node, GvPort source_port, GvNode dest_node, GvPort dest_port) { 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 == IntPtr.Zero) ? null : new GvPort(cPtr, false); return ret; }
public bool RemovePortIsOK(GvPort port) { bool ret = C4dApiPINVOKE.GvNode_RemovePortIsOK(swigCPtr, GvPort.getCPtr(port)); return ret; }
public void RemovePort(GvPort port) { C4dApiPINVOKE.GvNode_RemovePort__SWIG_1(swigCPtr, GvPort.getCPtr(port)); }
public void RemovePort(GvPort port, bool message) { C4dApiPINVOKE.GvNode_RemovePort__SWIG_0(swigCPtr, GvPort.getCPtr(port), message); }
public bool SetPortType(GvPort port, int id) { bool ret = C4dApiPINVOKE.GvNode_SetPortType(swigCPtr, GvPort.getCPtr(port), id); return ret; }
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; }
public bool CopyPortData(GvPort source, GvRun r) { bool ret = C4dApiPINVOKE.GvPort_CopyPortData(swigCPtr, GvPort.getCPtr(source), GvRun.getCPtr(r)); return ret; }
internal static HandleRef getCPtr(GvPort obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
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) { IntPtr p_source_node_out; unsafe { void *pp_source_node_out = &p_source_node_out; /* GvNode_csin_pre */ IntPtr p_source_port_out; unsafe { void *pp_source_port_out = &p_source_port_out; /* GvPort_csin_pre */ IntPtr p_dest_node_out; unsafe { void *pp_dest_node_out = &p_dest_node_out; /* GvNode_csin_pre */ 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), (IntPtr) pp_source_node_out /* GvNode_csin */, (IntPtr) pp_source_port_out /* GvPort_csin */, (IntPtr) pp_dest_node_out /* GvNode_csin */, (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 */ }