Skip to content

Commit b4367c9

Browse files
committed
Merge pull request opencv#9889 from IgWod:add-const-getviewerpose
2 parents 825c0ff + d7cbe6e commit b4367c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/viz/src/vizimpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void cv::viz::Viz3d::VizImpl::setViewerPose(const Affine3d &pose)
509509
}
510510

511511
/////////////////////////////////////////////////////////////////////////////////////////////
512-
cv::Affine3d cv::viz::Viz3d::VizImpl::getViewerPose()
512+
cv::Affine3d cv::viz::Viz3d::VizImpl::getViewerPose() const
513513
{
514514
vtkCamera& camera = *renderer_->GetActiveCamera();
515515

modules/viz/src/vizimpl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct cv::viz::Viz3d::VizImpl
8888
void resetCamera();
8989

9090
void setViewerPose(const Affine3d &pose);
91-
Affine3d getViewerPose();
91+
Affine3d getViewerPose() const;
9292

9393
void convertToWindowCoordinates(const Point3d &pt, Point3d &window_coord);
9494
void converTo3DRay(const Point3d &window_coord, Point3d &origin, Vec3d &direction);

0 commit comments

Comments
 (0)