CigiViewDefV2.h

Go to the documentation of this file.
00001 
00060 #if !defined(_CIGI_VIEW_DEF_V2_INCLUDED_)
00061 #define _CIGI_VIEW_DEF_V2_INCLUDED_
00062 
00063 #include "CigiBaseViewDef.h"
00064 
00065 
00066 
00067 class CIGI_SPEC CigiViewDefV2 : public CigiBaseViewDef
00068 {
00069 
00070 public:
00071 
00072    //==> Management
00073 
00074    //=========================================================
00077    CigiViewDefV2();
00078 
00079    //=========================================================
00082    virtual ~CigiViewDefV2();
00083 
00084 
00085    //==> Buffer Packing/Unpacking
00086 
00087    //=========================================================
00098    virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00099 
00100    //=========================================================
00110    virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00111 
00112 
00113 
00114    //==> Accessing Member Variable Values functions
00115 
00116    //+> ViewID
00117 
00118    //=========================================================
00125    int SetViewID(const Cigi_uint8 ViewIDIn, bool bndchk=true);
00126 
00127    //=========================================================
00130    Cigi_uint8 GetViewID(void) const
00131    {
00132       if(ViewID < 31)
00133          return((Cigi_uint8)ViewID);
00134       else
00135          return((Cigi_uint8)0x1f);
00136    }
00137 
00138    //+> GroupID
00139 
00140    //=========================================================
00147    int SetGroupID(const Cigi_uint8 GroupIDIn, bool bndchk=true);
00148 
00149    //=========================================================
00152    Cigi_uint8 GetGroupID(void) const { return(GroupID); }
00153 
00154 
00155    //+> FOVNearEn
00156 
00157    //=========================================================
00165    int SetFOVNearEn(const bool FOVNearEnIn, bool bndchk=true)
00166    {
00167       FOVNearEn = FOVNearEnIn;
00168       return(CIGI_SUCCESS);
00169    }
00170 
00171    //=========================================================
00174    bool GetFOVNearEn(void) const { return(FOVNearEn); }
00175 
00176 
00177    //+> FOVFarEn
00178 
00179    //=========================================================
00187    int SetFOVFarEn(const bool FOVFarEnIn, bool bndchk=true)
00188    {
00189       FOVFarEn = FOVFarEnIn;
00190       return(CIGI_SUCCESS);
00191    }
00192 
00193    //=========================================================
00196    bool GetFOVFarEn(void) const { return(FOVFarEn); }
00197 
00198 
00199    //+> FOVLeftEn
00200 
00201    //=========================================================
00209    int SetFOVLeftEn(const bool FOVLeftEnIn, bool bndchk=true)
00210    {
00211       FOVLeftEn = FOVLeftEnIn;
00212       return(CIGI_SUCCESS);
00213    }
00214 
00215    //=========================================================
00218    bool GetFOVLeftEn(void) const { return(FOVLeftEn); }
00219 
00220 
00221    //+> FOVRightEn
00222 
00223    //=========================================================
00231    int SetFOVRightEn(const bool FOVRightEnIn, bool bndchk=true)
00232    {
00233       FOVRightEn = FOVRightEnIn;
00234       return(CIGI_SUCCESS);
00235    }
00236 
00237    //=========================================================
00240    bool GetFOVRightEn(void) const { return(FOVRightEn); }
00241 
00242 
00243    //+> FOVTopEn
00244 
00245    //=========================================================
00253    int SetFOVTopEn(const bool FOVTopEnIn, bool bndchk=true)
00254    {
00255       FOVTopEn = FOVTopEnIn;
00256       return(CIGI_SUCCESS);
00257    }
00258 
00259    //=========================================================
00262    bool GetFOVTopEn(void) const { return(FOVTopEn); }
00263 
00264 
00265    //+> FOVBottomEn
00266 
00267    //=========================================================
00275    int SetFOVBottomEn(const bool FOVBottomEnIn, bool bndchk=true)
00276    {
00277       FOVBottomEn = FOVBottomEnIn;
00278       return(CIGI_SUCCESS);
00279    }
00280 
00281    //=========================================================
00284    bool GetFOVBottomEn(void) const { return(FOVBottomEn); }
00285 
00286 
00287    //+> TrackerAssigned
00288 
00289    //=========================================================
00297    int SetTrackerAssigned(const bool TrackerAssignedIn, bool bndchk=true)
00298    {
00299       TrackerAssigned = TrackerAssignedIn;
00300       return(CIGI_SUCCESS);
00301    }
00302 
00303    //=========================================================
00306    bool GetTrackerAssigned(void) const { return(TrackerAssigned); }
00307 
00308 };
00309 
00310 #endif // #if !defined(_CIGI_VIEW_DEF_V2_INCLUDED_)

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