CigiViewCtrlV2.h

Go to the documentation of this file.
00001 
00055 #if !defined(_CIGI_VIEW_CTRL_V2_INCLUDED_)
00056 #define _CIGI_VIEW_CTRL_V2_INCLUDED_
00057 
00058 #include "CigiBaseViewCtrl.h"
00059 
00060 
00061 
00062 class CIGI_SPEC CigiViewCtrlV2 : public CigiBaseViewCtrl
00063 {
00064 
00065 public:
00066 
00067    //==> Management
00068 
00069    //=========================================================
00072    CigiViewCtrlV2();
00073 
00074    //=========================================================
00077    virtual ~CigiViewCtrlV2();
00078 
00079 
00080    //==> Buffer Packing/Unpacking
00081 
00082    //=========================================================
00093    virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00094 
00095    //=========================================================
00105    virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00106 
00107 
00108 
00109    //==> Accessing Member Variable Values functions
00110 
00111    //+> ViewID
00112 
00113    //=========================================================
00121    int SetViewID(const Cigi_uint8 ViewIDIn, bool bndchk=true);
00122 
00123    //=========================================================
00126    Cigi_uint8 GetViewID(void) const
00127    {
00128       if(ViewID < 31)
00129          return((Cigi_uint8)ViewID);
00130       else
00131          return((Cigi_uint8)0x1f);
00132    }
00133 
00134 
00135    //+> GroupID
00136 
00137    //=========================================================
00144    int SetGroupID(const Cigi_uint8 GroupIDIn, bool bndchk=true);
00145 
00146    //=========================================================
00149    Cigi_uint8 GetGroupID(void) const
00150    {
00151       if(GroupID < 8)
00152          return(GroupID);
00153       else
00154          return((Cigi_uint8)0x07);
00155    }
00156 
00157 
00158    //+> XOffEn
00159 
00160    //=========================================================
00168    int SetXOffEn(const bool XOffEnIn, bool bndchk=true)
00169    {
00170       XOffEn = XOffEnIn;
00171       return(CIGI_SUCCESS);
00172    }
00173 
00174    //=========================================================
00177    bool GetXOffEn(void) const { return(XOffEn); }
00178 
00179 
00180    //+> YOffEn
00181 
00182    //=========================================================
00190    int SetYOffEn(const bool YOffEnIn, bool bndchk=true)
00191    {
00192       YOffEn = YOffEnIn;
00193       return(CIGI_SUCCESS);
00194    }
00195 
00196    //=========================================================
00199    bool GetYOffEn(void) const { return(YOffEn); }
00200 
00201 
00202    //+> ZOffEn
00203 
00204    //=========================================================
00212    int SetZOffEn(const bool ZOffEnIn, bool bndchk=true)
00213    {
00214       ZOffEn = ZOffEnIn;
00215       return(CIGI_SUCCESS);
00216    }
00217 
00218    //=========================================================
00221    bool GetZOffEn(void) const { return(ZOffEn); }
00222 
00223 
00224    //+> RollEn
00225 
00226    //=========================================================
00234    int SetRollEn(const bool RollEnIn, bool bndchk=true)
00235    {
00236       RollEn = RollEnIn;
00237       return(CIGI_SUCCESS);
00238    }
00239 
00240    //=========================================================
00243    bool GetRollEn(void) const { return(RollEn); }
00244 
00245 
00246    //+> PitchEn
00247 
00248    //=========================================================
00256    int SetPitchEn(const bool PitchEnIn, bool bndchk=true)
00257    {
00258       PitchEn = PitchEnIn;
00259       return(CIGI_SUCCESS);
00260    }
00261 
00262    //=========================================================
00265    bool GetPitchEn(void) const { return(PitchEn); }
00266 
00267 
00268    //+> YawEn
00269 
00270    //=========================================================
00278    int SetYawEn(const bool YawEnIn, bool bndchk=true)
00279    {
00280       YawEn = YawEnIn;
00281       return(CIGI_SUCCESS);
00282    }
00283 
00284    //=========================================================
00287    bool GetYawEn(void) const { return(YawEn); }
00288 
00289 
00290 
00291 };
00292 
00293 #endif // #if !defined(_CIGI_VIEW_CTRL_V2_INCLUDED_)

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