0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / Aspect / Aspect_TrackedDevicePose.hxx
CommitLineData
b40cdc2b 1// Copyright (c) 2020 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14#ifndef _Aspect_TrackedDevicePose_HeaderFile
15#define _Aspect_TrackedDevicePose_HeaderFile
16
17#include <gp_Trsf.hxx>
18#include <NCollection_Array1.hxx>
19
20//! Describes a single pose for a tracked object (for XR).
21struct Aspect_TrackedDevicePose
22{
23 gp_Trsf Orientation; //!< device to absolute transformation
24 gp_Vec Velocity; //!< velocity in tracker space in m/s
25 gp_Vec AngularVelocity; //!< angular velocity in radians/s
26 bool IsValidPose; //!< indicates valid pose
27 bool IsConnectedDevice; //!< indicates connected state
28
29 //! Empty constructor.
30 Aspect_TrackedDevicePose() : IsValidPose (false), IsConnectedDevice (false) {}
31};
32
33//! Array of tracked poses.
34typedef NCollection_Array1<Aspect_TrackedDevicePose> Aspect_TrackedDevicePoseArray;
35
36#endif // _Aspect_TrackedDevicePose_HeaderFile