CigiEntityCtrlV3.h

Go to the documentation of this file.
00001 
00055 #if !defined(_CIGI_ENTITY_CONTROL_V3_INCLUDED_)
00056 #define _CIGI_ENTITY_CONTROL_V3_INCLUDED_
00057 
00058 
00059 
00060 #include "CigiBaseEntityCtrl.h"
00061 
00062 
00063 
00064 
00065 
00066 //=========================================================
00069 class CIGI_SPEC CigiEntityCtrlV3 : public CigiBaseEntityCtrl  
00070 {
00071 
00072 public:
00073 
00074    //==> Management
00075 
00076    //=========================================================
00079         CigiEntityCtrlV3();
00080 
00081    //=========================================================
00084         virtual ~CigiEntityCtrlV3();
00085 
00086 
00087 
00088    //==> Buffer Packing/Unpacking
00089 
00090    //=========================================================
00101         virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00102 
00103    //=========================================================
00113         virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00114 
00115 
00116    //==> Accessing Member Variable Values functions
00117 
00118 
00119    //+> Internal Temperature
00120 
00121    //=========================================================
00131    int SetAlpha(const Cigi_uint8 AlphaIn, bool bndchk=true)
00132    {
00133       Alpha = AlphaIn;
00134       Opacity = ((float)Alpha)/2.55f;
00135       return(CIGI_SUCCESS);
00136    }
00137 
00138    //=========================================================
00144    Cigi_uint8 GetAlpha(void) const { return(Alpha); }
00145 
00146 
00147    //+> Yaw
00148 
00149    //=========================================================
00158         int SetYaw(const float YawIn, bool bndchk=true);
00159 
00160    //=========================================================
00165    float GetYaw(void) const { return(Yaw); }
00166 
00167 
00168 
00169    //+> Altitude
00170 
00171    //=========================================================
00179         int SetAlt(const double Alt, bool bndchk=true)
00180    {
00181       AltOrZoff = Alt;
00182       return(CIGI_SUCCESS);
00183    }
00184 
00185    //=========================================================
00189    double GetAlt(void) const { return(AltOrZoff); }
00190 
00191 
00192    //+> Z Offset
00193 
00194    //=========================================================
00203         int SetZoff(const double Zoff, bool bndchk=true)
00204    {
00205       AltOrZoff = (double)Zoff;
00206       return(CIGI_SUCCESS);
00207    }
00208 
00209    //=========================================================
00214         double GetZoff(void) const { return(AltOrZoff); }
00215 
00216 
00217    //+> Entity State
00218 
00219    //=========================================================
00230         int SetEntityState(const EntityStateGrp EntityStateIn, bool bndchk=true);
00231 
00232    //=========================================================
00239    EntityStateGrp GetEntityState(void) const { return(EntityState); }
00240 
00241 
00242    //+> Ground/Ocean Clamp
00243 
00244    //=========================================================
00255    int SetGrndClamp(const GrndClampGrp GrndClampIn, bool bndchk=true);
00256 
00257    //=========================================================
00264    GrndClampGrp GetGrndClamp(void) const { return(GrndClamp); }
00265 
00266 
00267    //+> Inherit Alpha
00268 
00269    //=========================================================
00280    int SetInheritAlpha(const InheritAlphaGrp InheritAlphaIn, bool bndchk=true);
00281 
00282    //=========================================================
00289    InheritAlphaGrp GetInheritAlpha(void) const { return(InheritAlpha); }
00290 
00291 
00292    //+> Animation Direction
00293 
00294    //=========================================================
00304    int SetAnimationDir(const AnimationDirGrp AnimationDirIn, bool bndchk=true);
00305 
00306    //=========================================================
00312    AnimationDirGrp GetAnimationDir(void) const { return(AnimationDir); }
00313 
00314 
00315    //+> Animation Loop Mode
00316 
00317    //=========================================================
00327    int SetAnimationLoopMode(const AnimationLoopModeGrp AnimationLoopModeIn, bool bndchk=true);
00328 
00329    //=========================================================
00335    AnimationLoopModeGrp GetAnimationLoopMode(void) const { return(AnimationLoopMode); }
00336 
00337 
00338    //+> Animation State
00339 
00340    //=========================================================
00352         int SetAnimationState(const AnimationStateGrp AnimationStateIn, bool bndchk=true);
00353 
00354    //=========================================================
00362    AnimationStateGrp GetAnimationState(void) const;
00363 
00364 
00365 };
00366 
00367 #endif // #if !defined(_CIGI_ENTITY_CONTROL_V3_INCLUDED_)

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