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

ippAlignToolCommand.h

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 
00012 // Description :
00013 //Only one constructor taking arguments is provided. If there is only
00014 //one vector, inHas2 should be false and the extra arguments can all be
00015 //zero (or any other number, since their value is irrelevant).
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   // prohibited copy constructor/operator
00066   ippAlignToolCommand(const ippAlignToolCommand&);
00067   void operator=(const ippAlignToolCommand&);
00068 };
00069 IPP_DECLARE_SMARTPOINTER(ippAlignToolCommand);

Generated on Wed Nov 8 00:19:55 2006 for IPPDME by  doxygen 1.4.1