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