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

ippScanInPlaneEndIsSphereCommand.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/ippScanInPlaneEndIsSphereCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015 
00016 ippScanInPlaneEndIsSphereCommand::ippScanInPlaneEndIsSphereCommand(
00017   unsigned int tgNum,
00018           double inSx, double inSy, double inSz, // defines the scan start point
00019           double inSI, double inSJ, double inSK, // defines the surface direction in the start point
00020     double inNI, double inNJ, double inNK, //defines the normal vector of the scanning plane
00021           double inDx, double inDy, double inDz, // defines the scan direction point
00022           double inStepW,                        // is the average distance between 2 measured points
00023           double inEx, double inEy, double inEz, // defines the expected scan end point
00024     double inDia,                          // define a sphere around the end point where the scan stops
00025     int inNum,                             // Number of reaching the stop sphere
00026           double inEI, double inEJ, double inEK  // defines the surface direction at the end point. It defines the direction
00027                                            // for retracting
00028 )
00029   :  ippCommand(tgNum, CommandTag, ScanInPlaneEndIsSphere)
00030 {
00031   _sx = inSx;
00032   _sy = inSy;
00033   _sz = inSz;
00034   _sIJK.setValues(inSI, inSJ, inSK);
00035   _nIJK.setValues(inNI, inNJ, inNK);
00036   _dx = inDx;
00037   _dy = inDy;
00038   _dz = inDz;
00039   _stepW = inStepW;
00040   _ex = inEx;
00041   _ey = inEy;
00042   _ez = inEz;
00043   _dia = inDia;
00044   _num   = inNum;
00045   _eIJK.setValues(inEI, inEJ, inEK);
00046 }
00047 
00048 ippScanInPlaneEndIsSphereCommand::~ippScanInPlaneEndIsSphereCommand()
00049 {
00050 }
00051 
00052 std::string ippScanInPlaneEndIsSphereCommand::getCommandString() const
00053 {
00054  ippStringBuilder builder(_tag);
00055  builder.StartFunc("ScanInPlaneEndIsSphere");
00056    builder.AppendParam(_sx);
00057    builder.AppendParam(_sy);
00058    builder.AppendParam(_sz);
00059    builder.AppendParam(_sIJK.getI());
00060    builder.AppendParam(_sIJK.getJ());
00061    builder.AppendParam(_sIJK.getK());
00062    builder.AppendParam(_nIJK.getI());
00063    builder.AppendParam(_nIJK.getJ());
00064    builder.AppendParam(_nIJK.getK());
00065    builder.AppendParam(_dx);
00066    builder.AppendParam(_dy);
00067    builder.AppendParam(_dz);
00068    builder.AppendParam(_stepW);
00069    builder.AppendParam(_ex);
00070    builder.AppendParam(_ey);
00071    builder.AppendParam(_ez);
00072    builder.AppendParam(_dia);
00073    builder.AppendParam(_num);
00074    builder.AppendParam(_eIJK.getI());
00075    builder.AppendParam(_eIJK.getJ());
00076    builder.AppendParam(_eIJK.getK());
00077  builder.EndFunc();
00078  return builder.ToString();
00079 }

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