Example #1
0
        protected override string strcatParameterNameLvalue(Parameter p, string prefix, int index)
        {
            String s = base.strcatParameterNameLvalue(p, prefix, index);

            if (index == 1 && !p.IsInput && IsSet)
            {
                String reset = getResetValue();
                s += String.Format("[oneshot:{0}]", reset);
            }
            return s;
        }
Example #2
0
 /// <summary>
 /// Let the Configuration dialog box know that the parameter has changed.
 /// Assumes that the node currently has a cdb.
 /// </summary>
 /// <param name="p"></param>
 /// <param name="index"></param>
 private void notifyCDBParameterChanged(Parameter p, int index)
 {
     throw new Exception("Not Yet Implemented");
 }
Example #3
0
 /// <summary>
 /// Determine if this (input) and another parameter (output) are type 
 /// compatible. 
 /// </summary>
 /// <param name="src"></param>
 /// <returns></returns>
 public bool typeMatch(Parameter src)
 {
     return DXType.MatchTypeLists(src.definition.DXTypes, this.definition.DXTypes);
 }
Example #4
0
        protected virtual String strcatParameterNameLvalue(Parameter p,
            String prefix, int index)
        {
            String ioname;
            if (p.IsInput)
                ioname = "in";
            else
                ioname = "out";

            return String.Format("{0}{1}_{2}_{3}_{4}",
                prefix, NameString, InstanceNumber, ioname, index);
        }
Example #5
0
 protected String strcatParameterValueString(Parameter p, int index)
 {
     return p.getValueString();
 }
Example #6
0
 /// <summary>
 /// Do any work that must be done before sending the given parameter value 
 /// to the server. 
 /// Be default, Nodes do not have any work that needs to be done 
 /// before sending parameter values.
 /// </summary>
 /// <param name="index"></param>
 /// <param name="p"></param>
 protected virtual void prepareToSendValue(int index, Parameter p)
 {
     //Intentionally left blank
 }
Example #7
0
 protected bool appendOutput(Parameter p)
 {
     if (outputParameters == null)
         return false;
     outputParameters.Add(p);
     return true;
 }
Example #8
0
 protected bool appendInput(Parameter p)
 {
     if (inputParameters == null)
         return false;
     inputParameters.Add(p);
     return true;
 }
 public BinaryParameter(ParameterDefinition pd)
     : base(pd)
 {
     secondValue = new Parameter(pd);
 }
Example #10
0
 protected override void prepareToSendValue(int index, Parameter p)
 {
     if (!userSpecifiedWhere)
     {
         // Create a new ImageWindow if necessary.
         if (image == null)
         {
             openImageWindow(false);
         }
         if (p.IsInput && index == 3)
         {
             String s = image.getDisplayString();
             base.setInputValue(index, s, DXTypeVals.WhereType, false);
             Regex regex = new Regex(@".*##(\d+)");
             Match m = regex.Match(s);
             int newWindowId = Int32.Parse(m.Groups[1].Value);
             if (this.windowId != newWindowId)
             {
                 String message = String.Format("IMAGE:  ##{0}", windowId);
                 DXPacketIF pif = DXApplication.theDXApplication.getPacketIF();
                 pif.setHandler(PacketIF.PacketType.INFORMATION, null, this, message);
                 windowId = newWindowId;
                 message = String.Format("IMAGE:  ##{0}", windowId);
                 pif.setHandler(PacketIF.PacketType.INFORMATION, DisplayNode.HandleImageMessage,
                     this, message);
             }
         }
     }
 }