Commit 99d6de92 authored by Stefan Philips's avatar Stefan Philips

[ADD] Add getWVector (for Eigen vector) to WValueSet

parent 2bb94c55
......@@ -186,6 +186,15 @@ public:
return WValue< double >( getWValue( i ) );
}
/**
* \param i id of the WVector to retrieve
* \return The i-th WValue (stored in this value set) as WVector. There are size() such scalars.
*/
virtual WVector_2 getWVector( size_t i ) const
{
return ( WValue< double >( getWValue( i ) ) ).toWVector();
}
/**
* Get the i'th vector
*
......
......@@ -93,6 +93,12 @@ public:
*/
virtual WValue< double > getWValueDouble( size_t i ) const = 0;
/**
* \param i id of the WVector to retrieve
* \return The i-th WValue (stored in this value set) as WVector. There are size() such scalars.
*/
virtual WVector_2 getWVector( size_t i ) const = 0;
/**
* \return Dimension of the values in this ValueSet
*/
......
......@@ -100,6 +100,14 @@ public:
return WValue< double >( size() );
}
/**
* \return The i-th WValue (stored in this value set) as WVector_2. There are size() such scalars.
*/
virtual WVector_2 getWVector( size_t /*i*/ ) const
{
return WVector_2( size() );
}
/**
* This method returns the smallest value in the valueset. It does not handle vectors, matrices and so on well. It simply returns the
* smallest value in the data array. This is especially useful for texture scaling or other statistic tools (histograms).
......
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