VTK  9.3.0
vtkOpenXRModel.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
12#ifndef vtkOpenXRModel_h
13#define vtkOpenXRModel_h
14
15#include "vtkRenderingOpenXRModule.h" // For export macro
16#include "vtkVRModel.h"
17#include <atomic> // for ivars
18#include <vector> // for ivars
19
20VTK_ABI_NAMESPACE_BEGIN
21class VTKRENDERINGOPENXR_EXPORT vtkOpenXRModel : public vtkVRModel
22{
23public:
25 vtkTypeMacro(vtkOpenXRModel, vtkVRModel);
26
27protected:
28 vtkOpenXRModel() = default;
29 ~vtkOpenXRModel() override = default;
30
31 void FillModelHelper() override;
32 void SetPositionAndTCoords() override;
35
36 std::atomic<bool> ModelLoading{ false };
37 std::atomic<bool> ModelLoaded{ false };
38 void AsyncLoad();
39
40 std::vector<float> ModelVBOData;
41 std::vector<uint16_t> ModelIBOData;
42 std::vector<uint8_t> TextureData;
43
44private:
45 vtkOpenXRModel(const vtkOpenXRModel&) = delete;
46 void operator=(const vtkOpenXRModel&) = delete;
47};
48
49VTK_ABI_NAMESPACE_END
50#endif
OpenGL rendering window.
OpenXR device model.
std::vector< uint16_t > ModelIBOData
std::vector< uint8_t > TextureData
void LoadModelAndTexture(vtkOpenGLRenderWindow *win) override
void SetPositionAndTCoords() override
~vtkOpenXRModel() override=default
void CreateTextureObject(vtkOpenGLRenderWindow *win) override
vtkOpenXRModel()=default
static vtkOpenXRModel * New()
void FillModelHelper() override
std::vector< float > ModelVBOData
VR device model.
Definition vtkVRModel.h:29