VR-Link API Documentation for HLA 1.3
hArealObjTrans.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00007 #ifndef hArealObjTrans_H_
00008 #define hArealObjTrans_H_
00009 
00010 #if DtHLA 
00011 
00012 
00013 #include "hEnvObjTrans.h"
00014 #include "hostStructs.h"
00015 #include "objectType.h"
00016 
00020 
00021 class DT_DLL_VL DtArealObjectTransaction;
00022 class DT_DLL_VL DtExerciseConn;
00023 
00024 
00025 
00027 typedef void (*DtArealObjectTransactionCb)
00028    (DtArealObjectTransaction* inter, void* usr);
00029 
00034 
00035 class DT_DLL_VL DtArealObjectTransaction : public DtEnvironmentObjectTransaction
00036 {
00037 public:
00038 
00040    DtArealObjectTransaction();
00041 
00043    virtual ~DtArealObjectTransaction();
00044 
00046    DtArealObjectTransaction(const DtArealObjectTransaction& orig);
00047 
00049    DtArealObjectTransaction& operator=(
00050       const DtArealObjectTransaction& orig);
00051 
00053    virtual void printData() const;
00054 
00056    virtual void printDataToStream(std::ostream& stream) const;
00057 
00059    virtual bool setNumberOfPoints(int value);
00060    virtual int numberOfPoints() const;
00061 
00063    virtual bool setPointsData(int index, const DtVector& point);
00064    virtual bool pointsData(int index, DtVector& point) const;
00065 
00067    virtual void setPercentComplete(const DtU32 value);
00068    virtual DtU32 percentComplete() const;
00069    
00071    virtual void setDamagedAppearance(const DtDamageState value);
00072    virtual DtDamageState damagedAppearance() const;
00073 
00075    virtual void setObjectPreDistributed(bool onOff);
00076    virtual bool objectPreDistributed() const;
00077 
00079    virtual void setDeactivated(bool onOff);
00080    virtual bool deactivated() const;
00081 
00083    virtual void setSmoking(bool onOff);
00084    virtual bool smoking() const;
00085 
00087    virtual void setFlaming(bool onOff);
00088    virtual bool flaming() const;
00089 
00091    virtual const char* name() const;
00092 
00093 public:
00094 
00097    static DtInteraction* create();
00098 
00101    static void addCallback(DtExerciseConn* conn,
00102       DtArealObjectTransactionCb cb, void* usr,
00103       DtDDMRegionSP region = DtDDMRegionSP());
00104    static void removeCallback(DtExerciseConn* conn,
00105       DtArealObjectTransactionCb cb, void* usr,
00106       DtDDMRegionSP region = DtDDMRegionSP());
00107 
00108 protected:
00109    int myNumberOfPoints;
00110    DtVector* myPointsData;
00111 
00112    DtU32 myPercentComplete;
00113    DtDamageState myDamagedAppearance;
00114    bool myObjectPreDistributed;
00115    bool myDeactivated;
00116    bool mySmoking;
00117    bool myFlaming;
00118 };
00119 
00120 #endif
00121 #endif
00122 
00123 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)