Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
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
16
class
GTE_IMPEXP
TransformController
:
public
Controller
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
:
32
Transform
mLocalTransform
;
33
};
34
35
36
inline
void
TransformController::SetTransform
(
Transform
const
& localTransform)
37
{
38
mLocalTransform = localTransform;
39
}
40
41
inline
Transform
const
&
TransformController::GetTransform
()
const
42
{
43
return
mLocalTransform;
44
}
45
46
47
}
GteController.h
GteTransform.h
gte::TransformController
Definition:
GteTransformController.h:16
gte::TransformController::GetTransform
Transform const & GetTransform() const
Definition:
GteTransformController.h:41
gte::Controller
Definition:
GteController.h:18
gte::TransformController::SetTransform
void SetTransform(Transform const &localTransform)
Definition:
GteTransformController.h:36
gte::Transform
Definition:
GteTransform.h:59
gte
Definition:
GLX/GteWICFileIO.h:16
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
gte::TransformController::mLocalTransform
Transform mLocalTransform
Definition:
GteTransformController.h:32
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01