From e1b3cf5c145dca9843eb47681ac0e400322a0426 Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Fri, 1 Jun 2018 15:53:05 +0300 Subject: [PATCH] Viz3d::getViewerPose() made const --- modules/viz/include/opencv2/viz/viz3d.hpp | 2 +- modules/viz/src/viz3d.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/viz/include/opencv2/viz/viz3d.hpp b/modules/viz/include/opencv2/viz/viz3d.hpp index 226c9e90c4..b761224a00 100644 --- a/modules/viz/include/opencv2/viz/viz3d.hpp +++ b/modules/viz/include/opencv2/viz/viz3d.hpp @@ -144,7 +144,7 @@ namespace cv /** @brief Returns the current pose of the viewer. */ - Affine3d getViewerPose(); + Affine3d getViewerPose() const; /** @brief Sets pose of the viewer. diff --git a/modules/viz/src/viz3d.cpp b/modules/viz/src/viz3d.cpp index 7f201222a4..98ccca47f1 100644 --- a/modules/viz/src/viz3d.cpp +++ b/modules/viz/src/viz3d.cpp @@ -127,7 +127,7 @@ cv::Affine3d cv::viz::Viz3d::getWidgetPose(const String &id) const { return impl void cv::viz::Viz3d::setCamera(const Camera &camera) { impl_->setCamera(camera); } cv::viz::Camera cv::viz::Viz3d::getCamera() const { return impl_->getCamera(); } void cv::viz::Viz3d::setViewerPose(const Affine3d &pose) { impl_->setViewerPose(pose); } -cv::Affine3d cv::viz::Viz3d::getViewerPose() { return impl_->getViewerPose(); } +cv::Affine3d cv::viz::Viz3d::getViewerPose() const { return impl_->getViewerPose(); } void cv::viz::Viz3d::resetCameraViewpoint(const String &id) { impl_->resetCameraViewpoint(id); } void cv::viz::Viz3d::resetCamera() { impl_->resetCamera(); }