VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtZedTrackedCamera.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 
10 
11 #include <boost/thread.hpp>
12 
13 #include "sl/Camera.hpp"
14 
15 namespace makVrv
16 {
17 
21  {
22  public:
25 
27  virtual ~DtZedTrackedCamera();
28 
30  DtZedTrackedCamera() = delete;
31 
33  DtZedTrackedCamera(const DtZedTrackedCamera&) = delete;
34 
36  DtZedTrackedCamera& operator=(const DtZedTrackedCamera&) = delete;
37 
40  static bool hasTrackedCamera();;
41 
43  virtual bool startStream();
44 
46  virtual void stopStream();
47 
49  virtual void tick();
50 
51  virtual void reset();
52 
53  virtual void setUseDepth(bool set);
54  virtual bool useDepth();
55 
56  virtual void resetCameraProjection();
57 
58  virtual void setCameraSetting(sl::CAMERA_SETTINGS setting, int value);
59  virtual int getCameraSetting(sl::CAMERA_SETTINGS setting);
60  virtual void resetCameraSettings();
61 
62  public:
63  static int theDepth;
64 
65  protected:
74  virtual osg::Matrixd createProjectionMatrix(float zn, float zf, const float* fovx = NULL, const float* fovy = NULL);
75 
76  virtual void addDepthTexture(int width, int height, unsigned char* buffer);
77 
78  sl::Camera myCamera;
79  sl::Mat myLeftImage;
80  sl::Mat myRightImage;
81  sl::Mat myDepthImage;
82 
83  bool myUseDepth;
84  };
85 }
sl::Camera myCamera
Definition: DtZedTrackedCamera.h:78
A Tracked camera is typically attached to the HMD and can provide position and orientation data in ad...
Definition: DtTrackedCamera.h:27
A concrete interface of a tracked camera using the Zed Mini.
Definition: DtZedTrackedCamera.h:20
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
sl::Mat myDepthImage
Definition: DtZedTrackedCamera.h:81
bool myUseDepth
Definition: DtZedTrackedCamera.h:83
sl::Mat myRightImage
Definition: DtZedTrackedCamera.h:80
An abstract interface that provides Tracked camera services.
sl::Mat myLeftImage
Definition: DtZedTrackedCamera.h:79
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
static int theDepth
Definition: DtZedTrackedCamera.h:63

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)