VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgAnimationModel.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgAnimationModel.h,v $ $Revision: 1.17 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtOsgAnimationModel_H_
00014 #define DtOsgAnimationModel_H_
00015 
00016 #include <vrvOsg/vrvOsg.h>
00017 #include <vrvCore/DtAnimationModel.h>
00018 
00019 #include <osg/Group>
00020 
00021 #include <matrix/vlVector.h>
00022 
00023 namespace makVrv
00024 {
00025    class DtOsgSceneConnector;
00026    class DtAnimationModelInstance;
00027 
00030    class DT_DLL_VRVOSG DtOsgAnimationModel : public DtAnimationModel
00031    {
00032    public:
00033 
00035       DtOsgAnimationModel(DtDe& de, DtUniqueID id);
00036 
00038       virtual ~DtOsgAnimationModel();
00039 
00042       virtual std::string className() const;
00043 
00045       virtual void setDuration(double seconds);
00046 
00048       virtual void setOrientation(int vtx, const DtTaitBryan& ori);
00049 
00051       virtual void setPosition(int vtx, const DtVector& pos);
00052 
00054       virtual void stop();
00055 
00057       virtual void start();
00058 
00060       virtual void pause();
00061 
00063       virtual void resume();
00064 
00066       virtual void setLoopMode(bool loopOn);
00067 
00069       virtual void setReverseAnimation(bool reverse);
00070 
00072       virtual void setVisible(bool isVisible);
00073 
00075       virtual void setSolid(bool solid);
00076 
00077    protected:
00078 
00081       virtual void addToScene(const DtUniqueID& id, int modelSet,
00082          int visualizerType);
00083 
00085       virtual void removeFromScene();
00086 
00087    protected:
00088       DtOsgSceneConnector* mySceneConnector;
00089       double myDuration;
00090    };
00091 }
00092 
00093 #endif
00094 

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)