CigiTrajectoryDefV1.h

Go to the documentation of this file.
00001 
00051 #if !defined(_CIGI_TRAJECTORY_DEF_V1_INCLUDED_)
00052 #define _CIGI_TRAJECTORY_DEF_V1_INCLUDED_
00053 
00054 #include "CigiBaseTrajectoryDef.h"
00055 
00056 
00057 class CIGI_SPEC CigiTrajectoryDefV1 : public CigiBaseTrajectoryDef
00058 {
00059 
00060 public:
00061 
00062    //==> Management
00063 
00064    //=========================================================
00067    CigiTrajectoryDefV1();
00068 
00069    //=========================================================
00072    virtual ~CigiTrajectoryDefV1();
00073 
00074 
00075    //==> Buffer Packing/Unpacking
00076 
00077    //=========================================================
00088    virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00089 
00090    //=========================================================
00100    virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00101 
00102 
00103 
00104    //==> Accessing Member Variable Values functions
00105 
00106    //+> Accel
00107 
00108    //=========================================================
00115    int SetAccel(const float AccelIn, bool bndchk=true)
00116    {
00117       Accel = AccelIn;
00118       AccelZ = Accel;
00119       return(CIGI_SUCCESS);
00120    }
00121 
00122    //=========================================================
00125    float GetAccel(void) const { return(Accel); }
00126 
00127 
00128    //+> Xoff
00129 
00130    //=========================================================
00138    int SetXoff(const float XoffIn, bool bndchk=true)
00139    {
00140       Xoff = XoffIn;
00141       return(CIGI_SUCCESS);
00142    }
00143 
00144    //=========================================================
00147    float GetXoff(void) const { return(Xoff); }
00148 
00149 
00150    //+> Yoff
00151 
00152    //=========================================================
00160    int SetYoff(const float YoffIn, bool bndchk=true)
00161    {
00162       Yoff = YoffIn;
00163       return(CIGI_SUCCESS);
00164    }
00165 
00166    //=========================================================
00169    float GetYoff(void) const { return(Yoff); }
00170 
00171 
00172    //+> Zoff
00173 
00174    //=========================================================
00182    int SetZoff(const float ZoffIn, bool bndchk=true)
00183    {
00184       Zoff = ZoffIn;
00185       return(CIGI_SUCCESS);
00186    }
00187 
00188    //=========================================================
00191    float GetZoff(void) const { return(Zoff); }
00192 
00193 
00194 
00195 };
00196 
00197 #endif // #if !defined(_CIGI_TRAJECTORY_DEF_V1_INCLUDED_)

Generated on Wed Apr 29 08:59:57 2009 for CCL by  doxygen 1.4.7