VTK  9.6.20260330
vtkWebXRModel.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
11
12#ifndef vtkWebXRModel_h
13#define vtkWebXRModel_h
14
15#include "vtkRenderingWebXRModule.h" // For export macro
16#include "vtkVRModel.h"
17#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18
19#include <memory> // for std::unique_ptr
20
21VTK_ABI_NAMESPACE_BEGIN
22class VTKRENDERINGWEBXR_EXPORT VTK_MARSHALAUTO vtkWebXRModel : public vtkVRModel
23{
24public:
25 static vtkWebXRModel* New();
26 vtkTypeMacro(vtkWebXRModel, vtkVRModel);
27
28protected:
30 ~vtkWebXRModel() override;
31
35 void FillModelHelper() override;
36
40 void SetPositionAndTCoords() override;
41
46
51
52private:
53 vtkWebXRModel(const vtkWebXRModel&) = delete;
54 void operator=(const vtkWebXRModel&) = delete;
55
56 std::string AssetPath;
57
58 class vtkInternals;
59 std::unique_ptr<vtkInternals> Internal;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif
OpenGL rendering window.
void SetPositionAndTCoords() override
Setup the position array.
void FillModelHelper() override
Upload the model's mesh to the GPU.
void LoadModelAndTexture(vtkOpenGLRenderWindow *win) override
Create a green pyramid as a controller model.
~vtkWebXRModel() override
void CreateTextureObject(vtkOpenGLRenderWindow *win) override
Create empty texture.
static vtkWebXRModel * New()
#define VTK_MARSHALAUTO