Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippScanOnHelixCommand.cpp

Go to the documentation of this file.
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/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,                       // angle to scan
00022   double inSFA,                         // the surface angle of the circle 90 and 270 not allowed
00023   double inStepW,                       // average angular distance between 2 measured points
00024   double inPitch                        // lead is the lead in mm per 360 degrees rotation
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 

Generated on Wed Nov 8 00:20:03 2006 for IPPDME by  doxygen 1.4.1