00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #pragma once
00013 #include "ippdme/Command/ippCommand.h"
00014 #include "ippdme/ippTargetVector.h"
00015
00016
00017
00018
00055 class IPPDME_EXT_CLASS ippAlignPartCommand : public ippCommand
00056 {
00057 public:
00058
00059
00060 ippAlignPartCommand(
00061 unsigned int tgNum,
00062 double inPv1i, double inPv1j, double inPv1k,
00063 double inMv1i, double inMv1j, double inMv1k,
00064 double inAlpha
00065 );
00066
00067
00068 ippAlignPartCommand(
00069 unsigned int tgNum,
00070 double inPv1i, double inPv1j, double inPv1k,
00071 double inMv1i, double inMv1j, double inMv1k,
00072 double inPv2i, double inPv2j, double inPv2k,
00073 double inMv2i, double inMv2j, double inMv2k,
00074 double inAlpha, double inBeta
00075 );
00076
00077 virtual ~ippAlignPartCommand(){}
00078
00079 bool setHas2(bool inHas2){ _has2 = inHas2; return _has2; }
00080 void setPartVector1(double inI, double inJ, double inK)
00081 { _partVector1.setValues(inI, inJ, inK); }
00082 void setMachineVector1(double inI, double inJ, double inK)
00083 { _machineVector1.setValues(inI, inJ, inK); }
00084 void setPartVector2(double inI, double inJ, double inK)
00085 { _partVector2.setValues(inI, inJ, inK); }
00086 void setMachineVector2(double inI, double inJ, double inK)
00087 { _machineVector2.setValues(inI, inJ, inK); }
00088 double setAlpha(double inAlpha){ _alpha = inAlpha; return _alpha; }
00089 double setBeta(double inBeta){ _beta = inBeta; return _beta; }
00090
00091 bool getHas2()const{ return _has2; }
00092 double getPartVector1i()const{ return _partVector1.getI(); }
00093 double getPartVector1j()const{ return _partVector1.getJ(); }
00094 double getPartVector1k()const{ return _partVector1.getK(); }
00095 double getMachineVector1i()const{ return _machineVector1.getI(); }
00096 double getMachineVector1j()const{ return _machineVector1.getJ(); }
00097 double getMachineVector1k()const{ return _machineVector1.getK(); }
00098 double getPartVector2i()const{ return _partVector2.getI(); }
00099 double getPartVector2j()const{ return _partVector2.getJ(); }
00100 double getPartVector2k()const{ return _partVector2.getK(); }
00101 double getMachineVector2i()const{ return _machineVector2.getI(); }
00102 double getMachineVector2j()const{ return _machineVector2.getJ(); }
00103 double getMachineVector2k()const{ return _machineVector2.getK(); }
00104 double getAlpha()const{ return _alpha; }
00105 double getBeta()const{ return _beta; }
00106
00107 virtual std::string getCommandString() const;
00108
00109 private:
00110 bool _has2;
00111 ippTargetVector _partVector1;
00112 ippTargetVector _machineVector1;
00113 ippTargetVector _partVector2;
00114 ippTargetVector _machineVector2;
00115 double _alpha;
00116 double _beta;
00117
00118 ippAlignPartCommand(const ippAlignPartCommand&);
00119 void operator=(const ippAlignPartCommand&);
00120 };
00121 IPP_DECLARE_SMARTPOINTER(ippAlignPartCommand);