CigiEntityCtrlV3_3.h

Go to the documentation of this file.
00001 
00041 #if !defined(_CIGI_ENTITY_CONTROL_V3_3_INCLUDED_)
00042 #define _CIGI_ENTITY_CONTROL_V3_3_INCLUDED_
00043 
00044 
00045 
00046 #include "CigiBaseEntityCtrl.h"
00047 
00048 
00049 
00050 
00051 
00052 //=========================================================
00055 class CIGI_SPEC CigiEntityCtrlV3_3 : public CigiBaseEntityCtrl  
00056 {
00057 
00058 public:
00059 
00060    //==> Management
00061 
00062    //=========================================================
00065         CigiEntityCtrlV3_3();
00066 
00067    //=========================================================
00070         virtual ~CigiEntityCtrlV3_3();
00071 
00072 
00073 
00074    //==> Buffer Packing/Unpacking
00075 
00076    //=========================================================
00087         virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00088 
00089    //=========================================================
00099         virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00100 
00101 
00102    //==> Accessing Member Variable Values functions
00103 
00104 
00105    //+> Internal Temperature
00106 
00107    //=========================================================
00117    int SetAlpha(const Cigi_uint8 AlphaIn, bool bndchk=true)
00118    {
00119       Alpha = AlphaIn;
00120       Opacity = ((float)Alpha)/2.55f;
00121       return(CIGI_SUCCESS);
00122    }
00123 
00124    //=========================================================
00130    Cigi_uint8 GetAlpha(void) const { return(Alpha); }
00131 
00132 
00133    //+> Yaw
00134 
00135    //=========================================================
00144         int SetYaw(const float YawIn, bool bndchk=true);
00145 
00146    //=========================================================
00151    float GetYaw(void) const { return(Yaw); }
00152 
00153 
00154 
00155    //+> Altitude
00156 
00157    //=========================================================
00165         int SetAlt(const double Alt, bool bndchk=true)
00166    {
00167       AltOrZoff = Alt;
00168       return(CIGI_SUCCESS);
00169    }
00170 
00171    //=========================================================
00175    double GetAlt(void) const { return(AltOrZoff); }
00176 
00177 
00178    //+> Z Offset
00179 
00180    //=========================================================
00189         int SetZoff(const double Zoff, bool bndchk=true)
00190    {
00191       AltOrZoff = (double)Zoff;
00192       return(CIGI_SUCCESS);
00193    }
00194 
00195    //=========================================================
00200         double GetZoff(void) const { return(AltOrZoff); }
00201 
00202 
00203    //+> Entity State
00204 
00205    //=========================================================
00216         int SetEntityState(const EntityStateGrp EntityStateIn, bool bndchk=true);
00217 
00218    //=========================================================
00225    EntityStateGrp GetEntityState(void) const { return(EntityState); }
00226 
00227 
00228    //+> Ground/Ocean Clamp
00229 
00230    //=========================================================
00241    int SetGrndClamp(const GrndClampGrp GrndClampIn, bool bndchk=true);
00242 
00243    //=========================================================
00250    GrndClampGrp GetGrndClamp(void) const { return(GrndClamp); }
00251 
00252 
00253    //+> Inherit Alpha
00254 
00255    //=========================================================
00266    int SetInheritAlpha(const InheritAlphaGrp InheritAlphaIn, bool bndchk=true);
00267 
00268    //=========================================================
00275    InheritAlphaGrp GetInheritAlpha(void) const { return(InheritAlpha); }
00276 
00277 
00278    //+> Animation Direction
00279 
00280    //=========================================================
00290    int SetAnimationDir(const AnimationDirGrp AnimationDirIn, bool bndchk=true);
00291 
00292    //=========================================================
00298    AnimationDirGrp GetAnimationDir(void) const { return(AnimationDir); }
00299 
00300 
00301    //+> Animation Loop Mode
00302 
00303    //=========================================================
00313    int SetAnimationLoopMode(const AnimationLoopModeGrp AnimationLoopModeIn, bool bndchk=true);
00314 
00315    //=========================================================
00321    AnimationLoopModeGrp GetAnimationLoopMode(void) const { return(AnimationLoopMode); }
00322 
00323 
00324    //+> Animation State
00325 
00326    //=========================================================
00338         int SetAnimationState(const AnimationStateGrp AnimationStateIn, bool bndchk=true);
00339 
00340    //=========================================================
00348    AnimationStateGrp GetAnimationState(void) const;
00349 
00350 
00351    //+> Smoothing Enabled
00352 
00353    //=========================================================
00357    bool GetSmoothingEn(void) const { return(SmoothingEn); }
00358 
00359    //=========================================================
00371         int SetSmoothingEn(const bool SmoothingEnabled, bool bndchk=true)
00372    {
00373       SmoothingEn = SmoothingEnabled;
00374 
00375       return(CIGI_SUCCESS);
00376    }
00377 
00378 
00379 };
00380 
00381 #endif // #if !defined(_CIGI_ENTITY_CONTROL_V3_3_INCLUDED_)

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