00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #pragma once
00019 #include "ippdme/ippTargetVector.h"
00020
00021 #include "ippdme/Command/ippCommand.h"
00022
00023
00024 class IPPDME_EXT_CLASS ippAlignToolCommand : public ippCommand
00025 {
00026 private:
00027 bool _has2;
00028 ippTargetVector _vector1;
00029 ippTargetVector _vector2;
00030 double _alpha;
00031 double _beta;
00032
00033 public:
00034 ippAlignToolCommand(
00035 unsigned int tgNum,
00036 double i1, double j1, double k1,
00037 double inAlpha);
00038
00039 ippAlignToolCommand(
00040 unsigned int tgNum,
00041 double i1, double j1, double k1,
00042 double i2, double j2, double k2,
00043 double inAlpha, double inBeta);
00044
00045 virtual ~ippAlignToolCommand(){}
00046
00047 void setHas2(bool inHas2){ _has2 = inHas2; }
00048 void setVector1(double i, double j, double k){ _vector1.setValues(i, j, k); }
00049 void setVector2(double i, double j, double k){ _vector2.setValues(i, j, k); }
00050 void setAlpha(double inAlpha){ _alpha = inAlpha; }
00051 void setBeta(double inBeta){ _beta = inBeta; }
00052
00053 bool getHas2() const { return _has2; }
00054 double getVector1i() const { return _vector1.getI(); }
00055 double getVector1j() const { return _vector1.getJ(); }
00056 double getVector1k() const { return _vector1.getK(); }
00057 double getVector2i() const { return _vector2.getI(); }
00058 double getVector2j() const { return _vector2.getJ(); }
00059 double getVector2k() const { return _vector2.getK(); }
00060 double getAlpha() const { return _alpha; }
00061 double getBeta() const { return _beta; }
00062
00063 virtual std::string getCommandString() const;
00064 private:
00065
00066 ippAlignToolCommand(const ippAlignToolCommand&);
00067 void operator=(const ippAlignToolCommand&);
00068 };
00069 IPP_DECLARE_SMARTPOINTER(ippAlignToolCommand);