transform.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Google Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef TANGO_GL_TRANSFORM_H_
18 #define TANGO_GL_TRANSFORM_H_
19 
20 #include "glm/glm.hpp"
21 #include "glm/gtc/quaternion.hpp"
22 
23 namespace tango_gl {
24 class Transform {
25  public:
26  Transform();
27  virtual ~Transform();
28 
29  Transform(const Transform& other) = delete;
30  const Transform& operator=(const Transform& rhs) = delete;
31 
32  void SetPosition(const glm::vec3& position);
33  glm::vec3 GetPosition() const;
34 
35  void SetRotation(const glm::quat& rotation);
36  glm::quat GetRotation() const;
37 
38  void SetScale(const glm::vec3& scale);
39  glm::vec3 GetScale() const;
40 
41  void Translate(const glm::vec3& translation);
42 
43  void SetTransformationMatrix(const glm::mat4& transform_mat);
45 
47 
48  const Transform* GetParent() const ;
49  Transform* GetParent() ;
50 
51  private:
53 
57 };
58 } // namespace tango_gl
59 #endif // TANGO_GL_TRANSFORM_H_
tango_gl::Transform::GetPosition
glm::vec3 GetPosition() const
Definition: transform.cpp:39
glm.hpp
tango_gl::Transform::GetScale
glm::vec3 GetScale() const
Definition: transform.cpp:55
tango_gl::Transform::SetPosition
void SetPosition(const glm::vec3 &position)
Definition: transform.cpp:35
tango_gl::Transform::position_
glm::vec3 position_
Definition: transform.h:54
glm::detail::tquat
Definition: fwd.hpp:41
glm::detail::tvec3
Definition: type_mat.hpp:37
glm::detail::tmat4x4
Definition: type_mat.hpp:47
tango_gl::Transform::Transform
Transform()
Definition: transform.cpp:24
quaternion.hpp
tango_gl::Transform::~Transform
virtual ~Transform()
Definition: transform.cpp:31
tango_gl::Transform::rotation_
glm::quat rotation_
Definition: transform.h:55
translation
translation
scale
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics scale
tango_gl::Transform
Definition: transform.h:24
tango_gl::Transform::GetParent
const Transform * GetParent() const
Definition: transform.cpp:84
tango_gl::Transform::SetScale
void SetScale(const glm::vec3 &scale)
Definition: transform.cpp:51
glm::rotation
GLM_FUNC_DECL detail::tquat< T, P > rotation(detail::tvec3< T, P > const &orig, detail::tvec3< T, P > const &dest)
tango_gl::Transform::parent_
Transform * parent_
Definition: transform.h:52
tango_gl::Transform::scale_
glm::vec3 scale_
Definition: transform.h:56
position
Point3 position(const NavState &X, OptionalJacobian< 3, 9 > H)
tango_gl::Transform::SetRotation
void SetRotation(const glm::quat &rotation)
Definition: transform.cpp:43
tango_gl
Definition: axis.cpp:20
transform
EIGEN_DONT_INLINE void transform(const Quaternion< Scalar > &t, Data &data)
tango_gl::Transform::Translate
void Translate(const glm::vec3 &translation)
Definition: transform.cpp:59
tango_gl::Transform::GetTransformationMatrix
glm::mat4 GetTransformationMatrix() const
Definition: transform.cpp:67
tango_gl::Transform::GetRotation
glm::quat GetRotation() const
Definition: transform.cpp:47
other
other
tango_gl::Transform::SetTransformationMatrix
void SetTransformationMatrix(const glm::mat4 &transform_mat)
Definition: transform.cpp:63
tango_gl::Transform::operator=
const Transform & operator=(const Transform &rhs)=delete
tango_gl::Transform::SetParent
void SetParent(Transform *transform)
Definition: transform.cpp:80


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22