mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Add const to getViewerPose()
getViewerPose() doesn't modify an object of the class so it can be made const. It also makes this method consistent with other getters in the class as they are defined as const.
This commit is contained in:
@@ -509,7 +509,7 @@ void cv::viz::Viz3d::VizImpl::setViewerPose(const Affine3d &pose)
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
cv::Affine3d cv::viz::Viz3d::VizImpl::getViewerPose()
|
||||
cv::Affine3d cv::viz::Viz3d::VizImpl::getViewerPose() const
|
||||
{
|
||||
vtkCamera& camera = *renderer_->GetActiveCamera();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user