NDEVR
API Documentation
XRHand.h
1#pragma once
2#include "NDEVR/Headers/QTModelManager.h"
3#include "NDEVR/Headers/WindowManager3D.h"
4#include "Design/Headers/Model.h"
5#include "XRInterface/Headers/XRInstance.h"
6#include "XRInterface/Headers/XRErrorHandling.h"
7#include "XRInterface/Headers/XRVulkanPipeline.h"
8#include "XRInterface/Headers/XRCameraView.h"
9#include "Design/Headers/Selector.h"
10namespace NDEVR
11{
12 class PointMeasureModel;
17 class XRHand : public Model
18 {
19 public:
20 XRHand(uint01 index, const Model& model);
21 void init();
22 void updateHandDistance(fltp08 distance);
23 void calculateHandDistance(DesignObjectLookup* lookup);
24 Model pointerModel();
25 void setHandTransform(const Matrix<fltp08>& mat);
26 PointMeasureModel locationModel();
27 const SnapPoint& snapPoint() { return m_snap_point; }
28 static constexpr StringView TypeName() { return "xr_hand_model"; }
29 protected:
30 Vector<2, Vector<2, fltp08>> m_joystick_location;
31 SelectionInfo m_selection;
32 SnapPoint m_snap_point;
33 uint01 m_index;
34 };
35}
A core class where all Design Objects including models, materials, and geometries are stored.
uint04 index() const
Returns the primary row index of this object within the DesignObjectBase property table.
Templated logic for doing matrix multiplication.
Definition Matrix.hpp:182
Model()
Default constructor. Creates an uninitialized Model.
Definition Model.h:365
Responsible for turning a user interaction into a selection within a DesignObjectLookup.
Definition Selector.h:52
Contains information about a particular point of interest created from a user mouse interaction.
Definition SnapPoint.h:46
The core String View class for the NDEVR API.
Definition StringView.h:58
A fixed-size array with N dimensions used as the basis for geometric and mathematical types.
Definition Vector.hpp:62
The primary namespace for the NDEVR SDK.
double fltp08
Defines an alias representing an 8 byte floating-point number.
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...