Commit e923e8f9 by Stefan Philips

changed template method getValueAt(int,int,int) to a const method

parent 0ceb22b9
......@@ -97,7 +97,7 @@ public:
* \param y index in y direction
* \param z index in z direction
*/
template< typename T > T getValueAt( int x, int y, int z );
template< typename T > T getValueAt( int x, int y, int z ) const;
/**
* Get the value stored at a certain grid position of the data set
......@@ -129,7 +129,7 @@ private:
double m_minimum; //!< Smallest scalar of data set.
};
template< typename T > T WDataSetScalar::getValueAt( int x, int y, int z )
template< typename T > T WDataSetScalar::getValueAt( int x, int y, int z ) const
{
boost::shared_ptr< WValueSet< T > > vs = boost::shared_dynamic_cast< WValueSet< T > >( m_valueSet );
boost::shared_ptr< WGridRegular3D > grid = boost::shared_dynamic_cast< WGridRegular3D >( m_grid );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment