Commit 2b37bcae authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] prefer const references in methods

parent ec84902e
......@@ -386,7 +386,7 @@ WRayProfile WMTransferCalc::castRay( WRay ray, double interval )
// progress
boost::shared_ptr< WProgress > prog = boost::shared_ptr< WProgress >( new WProgress( "Casting ray." ) );
m_progress->addSubProgress( prog );
osg::ref_ptr< osg::Geode > newGeode = new osg::Geode();
size_t max_nbSamples = ceil( length( m_outer_bounding[1] - m_outer_bounding[0] ) / interval );
......@@ -469,7 +469,7 @@ double* WMTransferCalc::rayIntersectsBox( WRay ray )
return res;
}
WVector3d WMTransferCalc::getAs3D( WVector4d vec )
WVector3d WMTransferCalc::getAs3D( const WVector4d& vec )
{
if( vec[3] == 0 )
{
......
......@@ -186,7 +186,7 @@ private:
*
* \return Calculated Vector.
*/
WVector3d getAs3D( WVector4d vec );
WVector3d getAs3D( const WVector4d& vec );
/**
* An input connector used to get datasets from other modules.
......@@ -224,7 +224,7 @@ private:
* Collection of all calculated RayProfiles.
*/
std::vector< WRayProfile > m_profiles;
/**
* Latest calculated RayProfile.
*/
......@@ -234,7 +234,7 @@ private:
* Camera position, changes on click.
*/
WVector2i m_currentCamPosition;
/**
* Filename for saving a RayProfile.
*/
......@@ -244,7 +244,7 @@ private:
* Trigger for saving RayProfile to given directory m_RaySaveFilePath.
*/
WPropTrigger m_saveTrigger;
/**
* x position of the ray origin.
*/
......
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