API Documentation
Loading...
Searching...
No Matches
XRCameraView Class Reference

A view that allows interfacing with OpenXR for Augmented and virtual reality. More...

#include <XRCameraView.h>

Inheritance diagram for XRCameraView:
[legend]
Collaboration diagram for XRCameraView:
[legend]

Public Member Functions

virtual XrStructureType GetGraphicsBindingType () const
 
virtual void * getSurface () override
 
virtual XrStructureType GetSwapchainImageType () const
 
void init ()
 
const Vertex< 3, fltp08 > & initialOffset ()
 
void render ()
 
void setCurrentBlendMode (XrEnvironmentBlendMode blend_mode)
 
void setEyePosition (LineSegment< 3, fltp08 > &eyes, uint01 node)
 
void setInitialOffset (const Vertex< 3, fltp08 > &offset)
 
void setup (const DynamicPointer< VulkanXRDevice > &device, XrSession session, const XrViewConfigurationView &config_view)
 
void updateCamera (const XrCompositionLayerProjectionView &layerView)
 
 XRCameraView (const DynamicPointer< Camera > &camera, const DynamicPointer< Camera > &reference_camera, QTModelManager *manager)
 
XrInstance xrInstance () const
 
XrSession xrSession () const
 
XrSwapchain xrSwapChain ()
 
XrSystemId xrSystemID () const
 

Protected Slots

void addModel (Buffer< UUID > models)
 
void addScene (Buffer< UUID > scenes)
 
void addSceneObject (UUID camera_id, UUID model)
 

Protected Attributes

DynamicPointer< Camera > m_camera
 
XrViewConfigurationView m_config_view
 
DynamicPointer< VulkanXRDevicem_device
 
Vertex< 3, fltp08m_initial_offset = Constant<Vertex<3, fltp08>>::Invalid
 
QTModelManagerm_manager
 
DynamicPointer< XRVulkanPipelinem_pipeline
 
DynamicPointer< Camera > m_reference_camera
 
DynamicPointer< Rendererm_renderer
 
XrSession m_session
 

Detailed Description

A view that allows interfacing with OpenXR for Augmented and virtual reality.


Constructor & Destructor Documentation

◆ XRCameraView()

XRCameraView ( const DynamicPointer< Camera > & camera,
const DynamicPointer< Camera > & reference_camera,
QTModelManager * manager )

Member Function Documentation

◆ addModel

void addModel ( Buffer< UUID > models)
protectedslot

◆ addScene

void addScene ( Buffer< UUID > scenes)
protectedslot

◆ addSceneObject

void addSceneObject ( UUID camera_id,
UUID model )
protectedslot

◆ GetGraphicsBindingType()

virtual XrStructureType GetGraphicsBindingType ( ) const
inlinevirtual

◆ getSurface()

virtual void * getSurface ( )
inlineoverridevirtual

◆ GetSwapchainImageType()

virtual XrStructureType GetSwapchainImageType ( ) const
inlinevirtual

◆ init()

void init ( )

◆ initialOffset()

const Vertex< 3, fltp08 > & initialOffset ( )
inline

◆ render()

void render ( )

◆ setCurrentBlendMode()

void setCurrentBlendMode ( XrEnvironmentBlendMode blend_mode)
inline

◆ setEyePosition()

void setEyePosition ( LineSegment< 3, fltp08 > & eyes,
uint01 node )

◆ setInitialOffset()

void setInitialOffset ( const Vertex< 3, fltp08 > & offset)
inline

◆ setup()

void setup ( const DynamicPointer< VulkanXRDevice > & device,
XrSession session,
const XrViewConfigurationView & config_view )

◆ updateCamera()

void updateCamera ( const XrCompositionLayerProjectionView & layerView)

◆ xrInstance()

XrInstance xrInstance ( ) const
inline

◆ xrSession()

XrSession xrSession ( ) const
inline

◆ xrSwapChain()

XrSwapchain xrSwapChain ( )
inline

◆ xrSystemID()

XrSystemId xrSystemID ( ) const
inline

Member Data Documentation

◆ m_camera

DynamicPointer<Camera> m_camera
protected

◆ m_config_view

XrViewConfigurationView m_config_view
protected

◆ m_device

DynamicPointer<VulkanXRDevice> m_device
protected

◆ m_initial_offset

Vertex<3, fltp08> m_initial_offset = Constant<Vertex<3, fltp08>>::Invalid
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_pipeline

DynamicPointer<XRVulkanPipeline> m_pipeline
protected

◆ m_reference_camera

DynamicPointer<Camera> m_reference_camera
protected

◆ m_renderer

DynamicPointer<Renderer> m_renderer
protected

◆ m_session

XrSession m_session
protected

The documentation for this class was generated from the following file: