예제 #1
0
    private void transferData()
    {
        output = ct.getOutputButton();
        Vid_Object outputObj = output.vid_obj;

        ct.setInputButton(this);
        output.setIsUse(false);
        bool b = vidObj.addInput(outputObj, argumentIndex);

        if (b)
        {
            used     = true;
            drawline = true;
        }
        ct.resetTool();

        //foreach (VidData_Type d in acceptable_dataTypes)
        //{
        //    if (d == outputObj.output_dataType)
        //    {
        //        ct.setInputButton(this);
        //        output.setIsUse(false);
        //        bool b = vidObj.addInput(outputObj, argumentIndex);
        //        if (b) {
        //            used = true;
        //            drawline = true;
        //        }
        //        ct.resetTool();
        //        break;
        //    }
        //}
    }
예제 #2
0
    /* Internal Helpers */
    private void transferData()
    {
        output = ct.getOutputButton();
        Vid_Object outputObj = output.vid_obj;

        ct.setInputButton(this);
        output.setIsUse(false);
        bool b = vidObj.addInput(outputObj, argumentIndex);

        if (b)
        {
            used     = true;
            drawline = true;
        }
        output.inButton = this;
        ct.resetTool();
    }