Commit 73cfa80e authored by Ken Martin's avatar Ken Martin
Browse files

add event invokes for load and save camera state

To the OpenVROverlay class
parent f5036717
......@@ -176,6 +176,7 @@ void vtkOpenVROverlay::SaveCameraPose(int slot)
vtkRenderer *ren = static_cast<vtkRenderer *>(
this->Window->GetRenderers()->GetItemAsObject(0));
pose->Set(static_cast<vtkOpenVRCamera *>(ren->GetActiveCamera()), this->Window);
this->InvokeEvent(vtkCommand::SaveStateEvent, reinterpret_cast<void *>(slot));
}
void vtkOpenVROverlay::LoadCameraPose(int slot)
......@@ -188,6 +189,7 @@ void vtkOpenVROverlay::LoadCameraPose(int slot)
this->Window->GetRenderers()->GetItemAsObject(0));
pose->Apply(static_cast<vtkOpenVRCamera *>(ren->GetActiveCamera()), this->Window);
ren->ResetCameraClippingRange();
this->InvokeEvent(vtkCommand::LoadStateEvent, reinterpret_cast<void *>(slot));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment