VR-Forces 4.2 Class Documentation
scriptAnimationModel.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
8 
11 
12 #include <boost/shared_ptr.hpp>
13 
15 {
16 public:
17  DtScriptAnimationModel(const DtScriptVrfObject* vrfObject);
19 
20  DtScriptAnimationModel& operator=(const DtScriptAnimationModel &orig);
21 
23 
24  bool operator==(const DtScriptAnimationModel& orig);
25 
28 
31  virtual void setAnimationModelFile(const std::string&);
32  virtual const std::string& animationModelFile() const;
33 
35  virtual void setTimeScale(double);
36  virtual double timeScale() const;
37 
40  virtual void setFrameTime(double);
41  virtual double frameTime() const;
42 
44  virtual int numAnimationFrames() const;
45 
47  virtual void setClampType(int);
48  virtual int clampType() const;
49 
51  virtual void setCompletionRule(int);
52  virtual int completionRule() const;
53 
55  virtual void init(void* userData);
56 
58  virtual void setTimeDeltaFromPreviousRow(int forRow, double timeDelta);
59 
62  virtual void setTransitionSpeed(double);
63 
65  virtual double transitionSpeed() const;
66 
68  virtual void setAnimationFrame(int);
69 
71  virtual int animationFrame() const;
72 
74  virtual double elapsedAnimationTime() const;
75 
77  virtual bool isFinished() const;
78 
83  virtual int addAnimationRow(double deltaTime, double lateral, double range, double altitude,
84  double headingOffset = 0, double pitchOffset = 0, double rollOffset = 0);
85 
87  virtual double speed(int) const;
88 
90  virtual DtLocation3D location(int) const;
91 
93  virtual void orientation(int frame, double& heading, double& pitch, double& roll) const;
94 
96  virtual DtVector3D rotationalVelocity(int) const;
97 
99  virtual DtVector3D acceleration(int) const;
100 
102  virtual DtVector3D velocity(int) const;
103 
106 
108  virtual const DtAnimationModel& animationModel() const;
109 
111  virtual DtString serialize();
112 
115  bool deserialize(const DtString& data);
116 
117  virtual DtString objectType() const;
118 
120  static DtAsciiSerializable* creator();
121 
123  DtVrfObject* vrfObject() const;
124 
126  virtual void reset();
127 
128 protected:
130  boost::shared_ptr<DtScriptVrfObject> mySharedObject;
132  std::string myAnimationModelFile;
133 };
134 
135 DT_DLL_vrfobjcore std::ostream& operator<<(std::ostream&, const DtScriptAnimationModel&);

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)