Exemplo n.º 1
0
        override public void doIt(MArgList args)
        {
            MSyntax syntax = new MSyntax();

            syntax.addArg(MSyntax.MArgType.kDouble);
            syntax.addArg(MSyntax.MArgType.kDouble);
            syntax.addArg(MSyntax.MArgType.kDouble);

            MArgDatabase argData = new MArgDatabase(syntax, args);

            MVector vector = MVector.xAxis;

            if (args.length == 1)
            {
                vector.x = args.asDouble(0);
            }
            else if (args.length == 2)
            {
                vector.x = args.asDouble(0);
                vector.y = args.asDouble(1);
            }
            else if (args.length == 3)
            {
                uint i = 0;
                vector = args.asVector(ref i);
            }
            __delta = vector;
            __action(MoveToolAction.kDoIt);
            return;
        }
Exemplo n.º 2
0
		public override void readASCII(MArgList argList, ref uint endOfTheLastParsedElement)
		{
			if (argList.length == 0)
			{
				throw new System.ArgumentException("The MArgList argument is empty", "argList");
			}

			value = argList.asDouble(endOfTheLastParsedElement++);
			return;
		}
Exemplo n.º 3
0
        public override void readASCII(MArgList argList, ref uint endOfTheLastParsedElement)
        {
            if (argList.length == 0)
            {
                throw new System.ArgumentException("The MArgList argument is empty", "argList");
            }

            value = argList.asDouble(endOfTheLastParsedElement++);
            return;
        }
Exemplo n.º 4
0
		override public void doIt(MArgList args)
		{
			MSyntax syntax = new MSyntax();
			syntax.addArg(MSyntax.MArgType.kDouble);
			syntax.addArg(MSyntax.MArgType.kDouble);
			syntax.addArg(MSyntax.MArgType.kDouble);

			MArgDatabase argData = new MArgDatabase(syntax, args);

			MVector vector = MVector.xAxis ;
			if ( args.length == 1 ) {
				vector.x =args.asDouble (0) ;
			} else if ( args.length == 2 ) {
				vector.x =args.asDouble (0) ;
				vector.y =args.asDouble (1) ;
			} else if ( args.length == 3 ) {
				uint i =0 ;
				vector = args.asVector(ref i);
			}
			__delta = vector;
			__action (MoveToolAction.kDoIt) ;
			return;
		}