1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

const correctness in OpenNI and OpenNI2 getProperty

This commit is contained in:
Joe Howse
2014-12-26 23:54:03 -04:00
parent a963ade012
commit b7a3204c57
2 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -124,11 +124,11 @@ protected:
bool readCamerasParams();
double getDepthGeneratorProperty(int propIdx);
double getDepthGeneratorProperty(int propIdx) const;
bool setDepthGeneratorProperty(int propIdx, double propVal);
double getImageGeneratorProperty(int propIdx);
double getImageGeneratorProperty(int propIdx) const;
bool setImageGeneratorProperty(int propIdx, double propVal);
double getCommonProperty(int propIdx);
double getCommonProperty(int propIdx) const;
bool setCommonProperty(int propIdx, double propVal);
// OpenNI context
@@ -444,7 +444,7 @@ bool CvCapture_OpenNI2::setProperty( int propIdx, double propValue )
return isSet;
}
double CvCapture_OpenNI2::getCommonProperty( int propIdx )
double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const
{
double propValue = 0;
@@ -508,7 +508,7 @@ bool CvCapture_OpenNI2::setCommonProperty( int propIdx, double propValue )
return isSet;
}
double CvCapture_OpenNI2::getDepthGeneratorProperty( int propIdx )
double CvCapture_OpenNI2::getDepthGeneratorProperty( int propIdx ) const
{
double propValue = 0;
if( !depth.isValid() )
@@ -608,7 +608,7 @@ bool CvCapture_OpenNI2::setDepthGeneratorProperty( int propIdx, double propValue
return isSet;
}
double CvCapture_OpenNI2::getImageGeneratorProperty( int propIdx )
double CvCapture_OpenNI2::getImageGeneratorProperty( int propIdx ) const
{
double propValue = 0.;
if( !color.isValid() )