9 #ifndef VR_RENDER_THREAD_H
10 #define VR_RENDER_THREAD_H
17 #include <QWaitCondition>
21 #include <vtkOpenVRRenderWindow.h>
22 #include <vtkOpenVRRenderWindowInteractor.h>
23 #include <vtkOpenVRRenderer.h>
24 #include <vtkOpenVRCamera.h>
25 #include <vtkActorCollection.h>
26 #include <vtkCommand.h>
75 vtkSmartPointer<vtkOpenVRRenderWindow>
window;
76 vtkSmartPointer<vtkOpenVRRenderWindowInteractor>
interactor;
78 vtkSmartPointer<vtkOpenVRCamera>
camera;
85 vtkSmartPointer<vtkActorCollection>
actors;
88 std::chrono::time_point<std::chrono::steady_clock>
t_last;
Definition: VRRenderThread.h:34
std::chrono::time_point< std::chrono::steady_clock > t_last
Definition: VRRenderThread.h:88
void addActorOffline(vtkActor *actor)
Definition: VRRenderThread.cpp:53
vtkSmartPointer< vtkOpenVRCamera > camera
Definition: VRRenderThread.h:78
double rotateY
Definition: VRRenderThread.h:99
~VRRenderThread()
Definition: VRRenderThread.cpp:49
VRRenderThread(QObject *parent=nullptr)
Definition: VRRenderThread.cpp:33
vtkSmartPointer< vtkActorCollection > actors
Definition: VRRenderThread.h:85
double rotateZ
Definition: VRRenderThread.h:100
double rotateX
Definition: VRRenderThread.h:98
vtkSmartPointer< vtkOpenVRRenderWindowInteractor > interactor
Definition: VRRenderThread.h:76
enum VRRenderThread::@0 Command
vtkSmartPointer< vtkOpenVRRenderWindow > window
Definition: VRRenderThread.h:75
QMutex mutex
Definition: VRRenderThread.h:81
void issueCommand(int cmd, double value)
Definition: VRRenderThread.cpp:71
QWaitCondition condition
Definition: VRRenderThread.h:82
bool endRender
Definition: VRRenderThread.h:93
vtkSmartPointer< vtkOpenVRRenderer > renderer
Definition: VRRenderThread.h:77
@ END_RENDER
Definition: VRRenderThread.h:40
@ ROTATE_Z
Definition: VRRenderThread.h:43
@ ROTATE_Y
Definition: VRRenderThread.h:42
@ ROTATE_X
Definition: VRRenderThread.h:41
void run() override
Definition: VRRenderThread.cpp:100