RAMSES Documentation  27.0.130
Information for RAMSES users and developers
CarModelViewMetadata.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2019 BMW AG
3 // -------------------------------------------------------------------------
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 // -------------------------------------------------------------------------
8 
9 #ifndef RAMSES_CARMODELVIEWMETADATA_H
10 #define RAMSES_CARMODELVIEWMETADATA_H
11 
13 
14 namespace ramses
15 {
20  {
27  constexpr bool operator==(const CarModelViewMetadata& rhs) const
28  {
29  return pitch == rhs.pitch &&
30  yaw == rhs.yaw &&
31  distance == rhs.distance &&
32  origin_x == rhs.origin_x &&
33  origin_y == rhs.origin_y &&
34  origin_z == rhs.origin_z &&
35  cameraFOV == rhs.cameraFOV &&
36  nearPlane == rhs.nearPlane &&
37  farPlane == rhs.farPlane;
38  }
39 
45  constexpr bool operator!=(const CarModelViewMetadata& rhs) const
46  {
47  return !(*this == rhs);
48  }
49 
51  float pitch;
53  float yaw;
55  float distance;
57  float origin_x;
59  float origin_y;
61  float origin_z;
63  float cameraFOV;
65  float nearPlane;
67  float farPlane;
68  };
69 
75  {
82  constexpr bool operator==(const CarModelViewMetadataExtended& rhs) const
83  {
86  }
87 
93  constexpr bool operator!=(const CarModelViewMetadataExtended& rhs) const
94  {
95  return !(*this == rhs);
96  }
97 
99  float roll;
106  };
107 }
108 
109 #endif
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
Struct containing extended metadata about car model views It's an extension for CarModelViewMetadata.
Definition: CarModelViewMetadata.h:75
float cameraLocalTranslation_z
The z value of the local camera translation.
Definition: CarModelViewMetadata.h:105
float roll
The roll of the view.
Definition: CarModelViewMetadata.h:99
float cameraLocalTranslation_y
The y value of the local camera translation.
Definition: CarModelViewMetadata.h:103
float cameraLocalTranslation_x
The x value of the local camera translation.
Definition: CarModelViewMetadata.h:101
constexpr bool operator==(const CarModelViewMetadataExtended &rhs) const
Equals operator.
Definition: CarModelViewMetadata.h:82
constexpr bool operator!=(const CarModelViewMetadataExtended &rhs) const
The inequality comparison operator.
Definition: CarModelViewMetadata.h:93
Struct containing metadata about car model views.
Definition: CarModelViewMetadata.h:20
constexpr bool operator==(const CarModelViewMetadata &rhs) const
Equals operator.
Definition: CarModelViewMetadata.h:27
float distance
The distance of the view.
Definition: CarModelViewMetadata.h:55
float origin_z
The z value of the origin.
Definition: CarModelViewMetadata.h:61
float farPlane
Camera frustum far plane.
Definition: CarModelViewMetadata.h:67
float yaw
The yaw of the view.
Definition: CarModelViewMetadata.h:53
float origin_x
The x value of the origin.
Definition: CarModelViewMetadata.h:57
float nearPlane
Camera frustum near plane.
Definition: CarModelViewMetadata.h:65
float pitch
The pitch of the view.
Definition: CarModelViewMetadata.h:51
float cameraFOV
The vertical FOV of the camera.
Definition: CarModelViewMetadata.h:63
constexpr bool operator!=(const CarModelViewMetadata &rhs) const
The inequality comparison operator.
Definition: CarModelViewMetadata.h:45
float origin_y
The y value of the origin.
Definition: CarModelViewMetadata.h:59