Commit 152154d4 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - added some comments

parent 97d961d1
......@@ -115,6 +115,12 @@ void WMTransferCalc::requirements()
m_requirements.push_back( new WGERequirement() );
}
/*
WRayProfile WMTransferCalc::buildProfileForRay( WRay ray )
*/
void WMTransferCalc::moduleMain()
{
debugLog() << "moduleMain started...";
......@@ -201,7 +207,6 @@ void WMTransferCalc::moduleMain()
// WVector4d ergebnis = c * d * v;
std::vector< WVector4d > bounding_box ( 8 ); // BoundingBox of the dataset
std::vector< WVector4d > outer_bounding ( 2 ); // BoundingBox parallel to the screen (just min and max)
bounding_box[0] = c * d * WVector4d( 0, 0, 0, 1 );
bounding_box[1] = c * d * WVector4d( x_scale, 0, 0, 1 );
......@@ -212,9 +217,14 @@ void WMTransferCalc::moduleMain()
bounding_box[6] = c * d * WVector4d( 0, y_scale, z_scale, 1 );
bounding_box[7] = c * d * WVector4d( x_scale, y_scale, z_scale, 1 );
std::vector< WVector4d > outer_bounding ( 2, bounding_box[0] ); // BoundingBox parallel to the screen (just min and max)
for( unsigned int k=0; k<8; k++)
{
// minimal point in BoundingBox
// TIPP: outer_bounding[0][0] = std::min( bounding_box[k][0], outer_bounding[0][0] );
if( bounding_box[k][0] < outer_bounding[0][0] ) outer_bounding[0][0] = bounding_box[k][0]; // x-min
if( bounding_box[k][1] < outer_bounding[0][1] ) outer_bounding[0][1] = bounding_box[k][1]; // y-min
if( bounding_box[k][2] < outer_bounding[0][2] ) outer_bounding[0][2] = bounding_box[k][2]; // z-min
......@@ -269,6 +279,7 @@ void WMTransferCalc::moduleMain()
{
WVector4d current = ray.getSpot( sample_t );
sample_t += interval;
debugLog() << "Point: " << current;
if( sample_t > sample_end ) break;
......@@ -282,7 +293,10 @@ void WMTransferCalc::moduleMain()
double val = interpolate( current, grid );
debugLog() << "Value: " << val;
/* TIPP
curProfile[sampleC].setValue( val );
sampleC++;
*/
}
m_rootNode->remove( m_geode );
......
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