BBTK_BLACK_BOX_IMPLEMENTATION(Transform2DBox,bbtk::AtomicBlackBox);
void Transform2DBox::Process()
{
- if(bbGetInputCenterPoint()[0])
+ if(!bbGetInputCenterPoint().empty())
{
// The inputs are set in the library transformer
transformer->SetCenterPoint( bbGetInputCenterPoint() );
transformer->SetScaleX( bbGetInputScaleX() );
transformer->SetScaleY( bbGetInputScaleY() );
transformer->SetScaleZ( bbGetInputScaleZ() );
+
+ //If 3D, make extra preparations
+ if(_3D)
+ {
+ transformer->SetAxis(bbGetInputAxis());
+ }
+
// The calculation of the transformations are made
- transformer->Run();
+ transformer->Run(_3D);
// We get the results of transformer and set it as result of this box
bbSetOutputOut( transformer->GetResult() );
}
bbSetInputScaleX(100);
bbSetInputScaleY(100);
bbSetInputScaleZ(100);
- bbSetOutputOut(NULL);
+ bbSetOutputOut(NULL);
+ _3D = false;
}
void Transform2DBox::bbUserInitializeProcessing()