00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "stdafx.h"
00012
00013 #include "ippdme/Command/ippScanInPlaneEndIsCylCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015
00016 ippScanInPlaneEndIsCylCommand::ippScanInPlaneEndIsCylCommand(
00017 unsigned int tgNum,
00018 double inSx, double inSy, double inSz,
00019 double inSI, double inSJ, double inSK,
00020 double inNI, double inNJ, double inNK,
00021 double inDx, double inDy, double inDz,
00022 double inStepW,
00023 double inCx, double inCy, double inCz,
00024 double inCI, double inCJ, double inCK,
00025 double inDia,
00026 int inNum,
00027 double inEI, double inEJ, double inEK
00028
00029 )
00030 : ippCommand(tgNum, CommandTag, ScanInPlaneEndIsCyl)
00031 {
00032 _sx = inSx;
00033 _sy = inSy;
00034 _sz = inSz;
00035 _sIJK.setValues(inSI, inSJ, inSK);
00036 _nIJK.setValues(inNI, inNJ, inNK);
00037 _dx = inDx;
00038 _dy = inDy;
00039 _dz = inDz;
00040 _stepW = inStepW;
00041 _cx = inCx;
00042 _cy = inCy;
00043 _cz = inCz;
00044 _cIJK.setValues(inCI, inCJ, inCK);
00045 _dia = inDia;
00046 _num = inNum;
00047 _eIJK.setValues(inEI, inEJ, inEK);
00048
00049 }
00050
00051 ippScanInPlaneEndIsCylCommand::~ippScanInPlaneEndIsCylCommand()
00052 {
00053 }
00054
00055 std::string ippScanInPlaneEndIsCylCommand::getCommandString() const
00056 {
00057 ippStringBuilder builder(_tag);
00058 builder.StartFunc("ScanInPlaneEndIsCyl");
00059 builder.AppendParam(_sx);
00060 builder.AppendParam(_sy);
00061 builder.AppendParam(_sz);
00062 builder.AppendParam(_sIJK.getI());
00063 builder.AppendParam(_sIJK.getJ());
00064 builder.AppendParam(_sIJK.getK());
00065 builder.AppendParam(_nIJK.getI());
00066 builder.AppendParam(_nIJK.getJ());
00067 builder.AppendParam(_nIJK.getK());
00068 builder.AppendParam(_dx);
00069 builder.AppendParam(_dy);
00070 builder.AppendParam(_dz);
00071 builder.AppendParam(_stepW);
00072 builder.AppendParam(_cx);
00073 builder.AppendParam(_cy);
00074 builder.AppendParam(_cz);
00075 builder.AppendParam(_cIJK.getI());
00076 builder.AppendParam(_cIJK.getJ());
00077 builder.AppendParam(_cIJK.getK());
00078 builder.AppendParam(_dia);
00079 builder.AppendParam(_num);
00080 builder.AppendParam(_eIJK.getI());
00081 builder.AppendParam(_eIJK.getJ());
00082 builder.AppendParam(_eIJK.getK());
00083 builder.EndFunc();
00084 return builder.ToString();
00085 }