GteTransformController.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <Graphics/GteController.h>
11 #include <Graphics/GteTransform.h>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  TransformController(Transform const& localTransform);
20 
21  // Member access.
22  inline void SetTransform(Transform const& localTransform);
23  inline Transform const& GetTransform() const;
24 
25  // The animation update. The application time is in milliseconds.
26  // The update simply copies mLocalTransform to the Spatial mObject's
27  // LocalTransform. In this sense, TransformController represents a
28  // transform that is constant for all time.
29  virtual bool Update(double applicationTime);
30 
31 protected:
33 };
34 
35 
36 inline void TransformController::SetTransform(Transform const& localTransform)
37 {
38  mLocalTransform = localTransform;
39 }
40 
42 {
43  return mLocalTransform;
44 }
45 
46 
47 }
Transform const & GetTransform() const
void SetTransform(Transform const &localTransform)
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01