示例#1
0
文件: GvPort.cs 项目: pr1m3c0d3/Fusee
  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 */
  }
示例#2
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;
 }
示例#3
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;
 }
示例#4
0
 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;
 }
示例#5
0
 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;
 }
示例#6
0
 public bool RemovePortIsOK(GvPort port) {
   bool ret = C4dApiPINVOKE.GvNode_RemovePortIsOK(swigCPtr, GvPort.getCPtr(port));
   return ret;
 }
示例#7
0
 public void RemovePort(GvPort port) {
   C4dApiPINVOKE.GvNode_RemovePort__SWIG_1(swigCPtr, GvPort.getCPtr(port));
 }
示例#8
0
 public void RemovePort(GvPort port, bool message) {
   C4dApiPINVOKE.GvNode_RemovePort__SWIG_0(swigCPtr, GvPort.getCPtr(port), message);
 }
示例#9
0
 public bool SetPortType(GvPort port, int id) {
   bool ret = C4dApiPINVOKE.GvNode_SetPortType(swigCPtr, GvPort.getCPtr(port), id);
   return ret;
 }
示例#10
0
文件: GvPort.cs 项目: pr1m3c0d3/Fusee
 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
文件: GvPort.cs 项目: pr1m3c0d3/Fusee
 public bool CopyPortData(GvPort source, GvRun r) {
   bool ret = C4dApiPINVOKE.GvPort_CopyPortData(swigCPtr, GvPort.getCPtr(source), GvRun.getCPtr(r));
   return ret;
 }
示例#12
0
文件: GvPort.cs 项目: pr1m3c0d3/Fusee
 internal static HandleRef getCPtr(GvPort obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#13
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) {
    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 */
  }