00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "stdafx.h"
00012
00013 #include "ippdme/Command/ippScanInPlaneEndIsSphereCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015
00016 ippScanInPlaneEndIsSphereCommand::ippScanInPlaneEndIsSphereCommand(
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 inEx, double inEy, double inEz,
00024 double inDia,
00025 int inNum,
00026 double inEI, double inEJ, double inEK
00027
00028 )
00029 : ippCommand(tgNum, CommandTag, ScanInPlaneEndIsSphere)
00030 {
00031 _sx = inSx;
00032 _sy = inSy;
00033 _sz = inSz;
00034 _sIJK.setValues(inSI, inSJ, inSK);
00035 _nIJK.setValues(inNI, inNJ, inNK);
00036 _dx = inDx;
00037 _dy = inDy;
00038 _dz = inDz;
00039 _stepW = inStepW;
00040 _ex = inEx;
00041 _ey = inEy;
00042 _ez = inEz;
00043 _dia = inDia;
00044 _num = inNum;
00045 _eIJK.setValues(inEI, inEJ, inEK);
00046 }
00047
00048 ippScanInPlaneEndIsSphereCommand::~ippScanInPlaneEndIsSphereCommand()
00049 {
00050 }
00051
00052 std::string ippScanInPlaneEndIsSphereCommand::getCommandString() const
00053 {
00054 ippStringBuilder builder(_tag);
00055 builder.StartFunc("ScanInPlaneEndIsSphere");
00056 builder.AppendParam(_sx);
00057 builder.AppendParam(_sy);
00058 builder.AppendParam(_sz);
00059 builder.AppendParam(_sIJK.getI());
00060 builder.AppendParam(_sIJK.getJ());
00061 builder.AppendParam(_sIJK.getK());
00062 builder.AppendParam(_nIJK.getI());
00063 builder.AppendParam(_nIJK.getJ());
00064 builder.AppendParam(_nIJK.getK());
00065 builder.AppendParam(_dx);
00066 builder.AppendParam(_dy);
00067 builder.AppendParam(_dz);
00068 builder.AppendParam(_stepW);
00069 builder.AppendParam(_ex);
00070 builder.AppendParam(_ey);
00071 builder.AppendParam(_ez);
00072 builder.AppendParam(_dia);
00073 builder.AppendParam(_num);
00074 builder.AppendParam(_eIJK.getI());
00075 builder.AppendParam(_eIJK.getJ());
00076 builder.AppendParam(_eIJK.getK());
00077 builder.EndFunc();
00078 return builder.ToString();
00079 }