00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #pragma once
00012
00013 #include "ippdme/Command/ippCommand.h"
00014 #include "ippdme/ippTargetVector.h"
00015
00016 class IPPDME_EXT_CLASS ippPtMeasCommand : public ippCommand {
00017
00018
00019 public:
00020 ippPtMeasCommand(unsigned int tgNum);
00021
00022 ippPtMeasCommand(
00023 unsigned int tgNum, bool inHasX, bool inHasY, bool inHasZ,
00024 bool inHasIJK, double inX, double inY, double inZ,
00025 double inI, double inJ, double inK);
00026
00027
00028 virtual ~ippPtMeasCommand(){}
00029
00030 void setHasX(bool inHasX){ _hasX = inHasX; }
00031 void setHasY(bool inHasY){ _hasY = inHasY; }
00032 void setHasZ(bool inHasZ){ _hasZ = inHasZ; }
00033 void setX(double inX){ _x = inX; }
00034 void setY(double inY){ _y = inY; }
00035 void setZ(double inZ){ _z = inZ; }
00036 void setIJK(double inI, double inJ, double inK)
00037 { _theIJK.setValues(inI, inJ, inK); }
00038
00039 bool getHasX()const{ return _hasX; }
00040 bool getHasY()const{ return _hasY; }
00041 bool getHasZ()const{ return _hasZ; }
00042 bool getHasIJK()const{ return _hasIJK; }
00043 double getX()const{ return _x; }
00044 double getY()const{ return _y; }
00045 double getZ()const{ return _z; }
00046 double getI()const{ return _theIJK.getI(); }
00047 double getJ()const{ return _theIJK.getJ(); }
00048 double getK()const{ return _theIJK.getK(); }
00049
00050 virtual std::string getCommandString() const;
00051
00052 private:
00053 bool _hasX;
00054 bool _hasY;
00055 bool _hasZ;
00056 bool _hasIJK;
00057 double _x;
00058 double _y;
00059 double _z;
00060 ippTargetVector _theIJK;
00061 };
00062 IPP_DECLARE_SMARTPOINTER(ippPtMeasCommand);