Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:59

0001 // Copyright (c) 2020 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _Aspect_TrackedDevicePose_HeaderFile
0015 #define _Aspect_TrackedDevicePose_HeaderFile
0016 
0017 #include <gp_Trsf.hxx>
0018 #include <NCollection_Array1.hxx>
0019 
0020 //! Describes a single pose for a tracked object (for XR).
0021 struct Aspect_TrackedDevicePose
0022 {
0023   gp_Trsf Orientation;       //!< device to absolute transformation
0024   gp_Vec  Velocity;          //!< velocity in tracker space in m/s
0025   gp_Vec  AngularVelocity;   //!< angular velocity in radians/s
0026   bool    IsValidPose;       //!< indicates valid pose
0027   bool    IsConnectedDevice; //!< indicates connected state
0028 
0029   //! Empty constructor.
0030   Aspect_TrackedDevicePose() : IsValidPose (false), IsConnectedDevice (false) {}
0031 };
0032 
0033 //! Array of tracked poses.
0034 typedef NCollection_Array1<Aspect_TrackedDevicePose> Aspect_TrackedDevicePoseArray;
0035 
0036 #endif // _Aspect_TrackedDevicePose_HeaderFile