Skip to content

Commit

Permalink
Merge pull request opencv#9889 from IgWod:add-const-getviewerpose
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed Oct 27, 2017
2 parents 825c0ff + d7cbe6e commit b4367c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/viz/src/vizimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion modules/viz/src/vizimpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct cv::viz::Viz3d::VizImpl
void resetCamera();

void setViewerPose(const Affine3d &pose);
Affine3d getViewerPose();
Affine3d getViewerPose() const;

void convertToWindowCoordinates(const Point3d &pt, Point3d &window_coord);
void converTo3DRay(const Point3d &window_coord, Point3d &origin, Vec3d &direction);
Expand Down

0 comments on commit b4367c9

Please sign in to comment.