VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgAnimationModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgAnimationModel.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgAnimationModel_H_
14 #define DtOsgAnimationModel_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 
19 #include <osg/Group>
20 
21 #include <matrix/vlVector.h>
22 
23 namespace makVrv
24 {
25  class DtOsgSceneConnector;
26  class DtAnimationModelInstance;
27 
31  {
32  public:
33 
36 
38  virtual ~DtOsgAnimationModel();
39 
42  virtual std::string className() const;
43 
45  virtual void setDuration(double seconds);
46 
48  virtual void setOrientation(int vtx, const DtTaitBryan& ori);
49 
51  virtual void setPosition(int vtx, const DtVector& pos);
52 
54  virtual void stop();
55 
57  virtual void start();
58 
60  virtual void pause();
61 
63  virtual void resume();
64 
66  virtual void setLoopMode(bool loopOn);
67 
69  virtual void setReverseAnimation(bool reverse);
70 
72  virtual void setVisible(bool isVisible);
73 
77  virtual void setIsSupportModel(bool isSupport);
78 
79  protected:
80 
83  virtual void addToScene(const DtUniqueID& id, int modelSet,
84  int visualizerType);
85 
87  virtual void removeFromScene();
88 
89  protected:
91  double myDuration;
92  };
93 }
94 
95 #endif
96 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)