From: Pablo d'A. <da...@us...> - 2007-01-24 19:18:17
|
Update of /cvsroot/hugin/hugin/src/Panorama In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv18658/Panorama Modified Files: PanoramaMemento.cpp Log Message: enabled setting VFOV for all projections with HFOV <=180 Index: PanoramaMemento.cpp =================================================================== RCS file: /cvsroot/hugin/hugin/src/Panorama/PanoramaMemento.cpp,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- PanoramaMemento.cpp 23 Jan 2007 22:24:21 -0000 1.83 +++ PanoramaMemento.cpp 24 Jan 2007 19:18:11 -0000 1.84 @@ -499,11 +499,20 @@ bool PanoramaOptions::fovCalcSupported(ProjectionFormat f) const { +#ifdef HasPANO13 + pano_projection_features pfeat; + if (panoProjectionFeaturesQuery((int) m_projectionFormat, &pfeat)) { + return pfeat.maxVFOV <=180; + } else { + return false; + } +#else return ( f == RECTILINEAR || f == CYLINDRICAL || f == EQUIRECTANGULAR || f == MERCATOR || f == SINUSOIDAL ); +#endif } void PanoramaOptions::setProjection(ProjectionFormat f) |