// --------------------------------------------------------------
void Transform::Process()
{
+ printf("EED %p Transform::Process() 1\n", this);
bbUserInitializeProcessing();
if (bbGetInputIn()!=NULL)
{
result->Concatenate( bbGetInputIn()->GetMatrix() );
+ printf("EED %p Transform::Process() 2\n", this);
}
if (bbGetInputScale().size()>=3)
{
result->Scale(bbGetInputScale()[0], bbGetInputScale()[1], bbGetInputScale()[2]);
+ printf("EED %p Transform::Process() 3\n", this);
}
if ((bbGetInputTranslate().size()>=3) && (bbGetInputSpacing().size()>=3))
double ty = bbGetInputTranslate()[1] * bbGetInputSpacing()[1];
double tz = bbGetInputTranslate()[2] * bbGetInputSpacing()[2];
result->Translate(tx,ty,tz);
+ printf("EED %p Transform::Process() 4\n", this);
}
if (bbGetInputRotateWXYZ().size()>=4)
{
result->RotateWXYZ(bbGetInputRotateWXYZ()[0],bbGetInputRotateWXYZ()[1], bbGetInputRotateWXYZ()[2], bbGetInputRotateWXYZ()[3]);
+ printf("EED %p Transform::Process() 5\n", this);
}
result->Update();
+ printf("EED %p Transform::Process() 6\n", this);
bbSetOutputOut(result);
}