00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "stdafx.h"
00012
00013 #include "ippdme/Command/ippScanOnHelixCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015
00016 ippScanOnHelixCommand::ippScanOnHelixCommand(
00017 unsigned int tgNum,
00018 double inCx, double inCy, double inCz,
00019 double inSx, double inSy, double inSz,
00020 double inI, double inJ, double inK,
00021 double inDelta,
00022 double inSFA,
00023 double inStepW,
00024 double inPitch
00025 )
00026 : ippCommand(tgNum, CommandTag, ScanOnHelix)
00027 {
00028 _cx = inCx;
00029 _cy = inCy;
00030 _cz = inCz;
00031 _sx = inSx;
00032 _sy = inSy;
00033 _sz = inSz;
00034 _IJK.setValues(inI, inJ, inK);
00035 _delta = inDelta;
00036 _SFA = inSFA;
00037 _StepW = inStepW;
00038 _pitch = inPitch;
00039 }
00040
00041 ippScanOnHelixCommand::~ippScanOnHelixCommand()
00042 {
00043 }
00044
00045 std::string ippScanOnHelixCommand::getCommandString() const
00046 {
00047 ippStringBuilder builder(_tag);
00048 builder.StartFunc(getCommandName());
00049 builder.AppendParam(_cx);
00050 builder.AppendParam(_cy);
00051 builder.AppendParam(_cz);
00052 builder.AppendParam(_sx);
00053 builder.AppendParam(_sy);
00054 builder.AppendParam(_sz);
00055 builder.AppendParam(_IJK.getI());
00056 builder.AppendParam(_IJK.getJ());
00057 builder.AppendParam(_IJK.getK());
00058 builder.AppendParam(_delta);
00059 builder.AppendParam(_SFA);
00060 builder.AppendParam(_StepW);
00061 builder.AppendParam(_pitch);
00062 builder.EndFunc();
00063 return builder.ToString();
00064 }
00065