VR-Forces 4.0.4 Class Documentation
include/vrvCigi/DtCigiEntity.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2009 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: DtCigiEntity.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 
00012 
00013 
00014 #ifndef DtCigiEntity_H_
00015 #define DtCigiEntity_H_
00016 
00017 #include <vrvCigi/vrvCigi.h>
00018 
00019 #include <vrvCigi/DtCigiBaseEntity.h>
00020 
00021 #include <matrix/geodCoord.h>
00022 #include <matrix/vlTaitBryan.h>
00023 
00024 #include <map>
00025 
00026 namespace makVrv
00027 {
00028    class DtCigiConnection;
00029    class DtAgentManagerInterface;
00030 
00031    class DtArticulatedModelAgent;
00032    
00035    class DT_DLL_VRVCIGI DtCigiEntity : public DtCigiBaseEntity
00036    {
00037    public:
00039       DtCigiEntity(DtCigiConnection& connection, 
00040          DtAgentManagerInterface& mySceneInterface,
00041          int entityId, int entityType);
00042 
00044       virtual ~DtCigiEntity();
00045 
00047       virtual void setState(int stateId, int stateValue);
00048 
00050       virtual void setArtPartTranslation(int partId, float xOffset, float yOffset,
00051          float zOffset, bool xEnable, bool yEnable, bool zEnable);
00052 
00054       virtual void setArtPartOrientation(int partId, float yaw, float pitch, float roll,
00055          bool yawEnable, bool pitchEnable, bool rollEnable);
00056 
00058       virtual void setArtPartLinearRate(int partId, float xRate, float yRate,
00059          float zRate);
00060 
00062       virtual void setArtPartAngularRate(int partId, float yawRate, float pitchRate,
00063          float rollRate);
00064 
00066       virtual void setArtPartEnable(int partId, bool trueFalse);
00067 
00069       virtual void setAnimationSpeed(const std::string& animationName, double speed);
00070       
00072       virtual void setAnimationFrame(const std::string& animationName, int frame);
00073 
00075       virtual void setAnimationRange(const std::string& animationName, 
00076          int firstFrameIndex, int lastFrameIndex);
00077 
00078    protected:
00079       DtArticulatedModelAgent* myArticulatedModel;
00080 
00081       std::map<int, DtTaitBryan> myLastArtPartOrientation;
00082       std::map<int, DtVector>    myLastArtPartTranslation;
00083       std::map<int, DtVector>    myArtPartAngularRate;
00084       std::map<int, DtVector>    myArtPartLinearRate;
00085    };
00086 }
00087 
00088 #endif
00089 
00090 
00091 
00092 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)