00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "stdafx.h"
00012 #include "ippdme/Command/ippScanOnLineCommand.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014
00015 ippScanOnLineCommand::ippScanOnLineCommand(
00016 unsigned int tgNum, double inSx, double inSy, double inSz,
00017 double inEx, double inEy, double inEz, double inI,
00018 double inJ, double inK, double inStepW
00019 )
00020 : ippCommand(tgNum, CommandTag, ScanOnLine)
00021 {
00022 _sx = inSx;
00023 _sy = inSy;
00024 _sz = inSz;
00025 _ex = inEx;
00026 _ey = inEy;
00027 _ez = inEz;
00028 _theIJK.setValues(inI, inJ, inK);
00029 _stepW = inStepW;
00030 }
00031
00032 ippScanOnLineCommand::~ippScanOnLineCommand()
00033 {
00034 }
00035
00036 std::string ippScanOnLineCommand::getCommandString() const
00037 {
00038 ippStringBuilder builder(_tag);
00039 builder.StartFunc("ScanOnLine");
00040 builder.AppendParam(_sx);
00041 builder.AppendParam(_sy);
00042 builder.AppendParam(_sz);
00043 builder.AppendParam(_ex);
00044 builder.AppendParam(_ey);
00045 builder.AppendParam(_ez);
00046 builder.AppendParam(_theIJK.getI());
00047 builder.AppendParam(_theIJK.getJ());
00048 builder.AppendParam(_theIJK.getK());
00049 builder.AppendParam(_stepW);
00050 builder.EndFunc();
00051 return builder.ToString();
00052 }