00001 // 00002 // DISCLAIMER: 00003 // This software was produced by the National Institute of Standards 00004 // and Technology (NIST), an agency of the U.S. government, and by statute is 00005 // not subject to copyright in the United States. Recipients of this 00006 // software assume all responsibility associated with its operation, 00007 // modification,maintenance, and subsequent redistribution. 00008 // 00009 // See NIST Administration Manual 4.09.07 b and Appendix I. 00010 // 00011 #include "stdafx.h" 00012 00013 #include "ippdme/Command/ippTiltCenterPartCommand.h" 00014 #include "ippdme/misc/ippStringBuilder.h" 00015 00016 ippTiltCenterPartCommand::ippTiltCenterPartCommand( 00017 unsigned int tgNum, double inPx1, double inPy1, 00018 double inPz1, double inPx2, double inPy2, 00019 double inPz2, double inLimit 00020 ) 00021 : ippCommand(tgNum, CommandTag, TiltCenterPart) 00022 { 00023 _px1 = inPx1; 00024 _py1 = inPy1; 00025 _pz1 = inPz1; 00026 _px2 = inPx2; 00027 _py2 = inPy2; 00028 _pz2 = inPz2; 00029 _limit = inLimit; 00030 } 00031 00032 std::string ippTiltCenterPartCommand::getCommandString() const 00033 { 00034 ippStringBuilder builder(_tag); 00035 builder.StartFunc("TiltCenterPart"); 00036 builder.AppendParam(_px1); 00037 builder.AppendParam(_py1); 00038 builder.AppendParam(_pz1); 00039 builder.AppendParam(_px2); 00040 builder.AppendParam(_py2); 00041 builder.AppendParam(_pz2); 00042 builder.AppendParam(_limit); 00043 builder.EndFunc(); 00044 return builder.ToString(); 00045 00046 } 00047