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

ippScanInPlaneEndIsCylCommand.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/ippScanInPlaneEndIsCylCommand.h"
00014 #include "ippdme/misc/ippStringBuilder.h"
00015 
00016 ippScanInPlaneEndIsCylCommand::ippScanInPlaneEndIsCylCommand(
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,                        // StepW is the average distance between 2 measured points
00023                 double inCx, double inCy, double inCz, 
00024                 double inCI, double inCJ, double inCK, // defines the cylinder where the scan stops
00025                 double inDia,                          // defines the diameter of the cylinder where the scan stops
00026                 int inNum,                             // Number of through the cylinder
00027                 double inEI, double inEJ, double inEK  // defines the surface vector at the end point.
00028                                            // It defines the direction for retracting
00029 )
00030   :  ippCommand(tgNum, CommandTag, ScanInPlaneEndIsCyl)
00031 {
00032   _sx = inSx;
00033   _sy = inSy;
00034   _sz = inSz;
00035   _sIJK.setValues(inSI, inSJ, inSK);
00036   _nIJK.setValues(inNI, inNJ, inNK);
00037   _dx = inDx;
00038   _dy = inDy;
00039   _dz = inDz;
00040   _stepW = inStepW;
00041   _cx = inCx;
00042   _cy = inCy;
00043   _cz = inCz;
00044   _cIJK.setValues(inCI, inCJ, inCK);
00045   _dia = inDia;
00046   _num = inNum;
00047   _eIJK.setValues(inEI, inEJ, inEK);
00048 
00049 }
00050 
00051 ippScanInPlaneEndIsCylCommand::~ippScanInPlaneEndIsCylCommand()
00052 {
00053 }
00054 
00055 std::string ippScanInPlaneEndIsCylCommand::getCommandString() const
00056 {
00057   ippStringBuilder builder(_tag);
00058   builder.StartFunc("ScanInPlaneEndIsCyl");
00059           builder.AppendParam(_sx);
00060     builder.AppendParam(_sy);
00061     builder.AppendParam(_sz);
00062     builder.AppendParam(_sIJK.getI());
00063     builder.AppendParam(_sIJK.getJ());
00064     builder.AppendParam(_sIJK.getK());
00065     builder.AppendParam(_nIJK.getI());
00066     builder.AppendParam(_nIJK.getJ());
00067     builder.AppendParam(_nIJK.getK());
00068     builder.AppendParam(_dx);
00069     builder.AppendParam(_dy);
00070     builder.AppendParam(_dz);
00071     builder.AppendParam(_stepW);
00072     builder.AppendParam(_cx);
00073     builder.AppendParam(_cy);
00074     builder.AppendParam(_cz);
00075     builder.AppendParam(_cIJK.getI());
00076     builder.AppendParam(_cIJK.getJ());
00077     builder.AppendParam(_cIJK.getK());
00078     builder.AppendParam(_dia);
00079     builder.AppendParam(_num);
00080     builder.AppendParam(_eIJK.getI());
00081     builder.AppendParam(_eIJK.getJ());
00082     builder.AppendParam(_eIJK.getK());
00083   builder.EndFunc();
00084   return builder.ToString();
00085 }

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