/*Point(x,y) -> Rotation Center*/
BBTK_DECLARE_INPUT(CenterPoint,std::vector<int>);
- /*Vector(x,y) -> Axis Rotation Vector*/
- BBTK_DECLARE_INPUT(Axis,std::vector<double>);
-
-
/*Rotation angle*/
BBTK_DECLARE_INPUT(Angle,double);
- /*Scalation to be done int the x axis*/
+ /*Scalation to be done in the x axis*/
BBTK_DECLARE_INPUT(ScaleX,double);
- /*Scalation to be done int the y axis*/
+ /*Scalation to be done in the y axis*/
BBTK_DECLARE_INPUT(ScaleY,double);
- /*Scalation to be done int the z axis*/
+ /*Scalation to be done in the z axis*/
BBTK_DECLARE_INPUT(ScaleZ,double);
- /*3D transformation on or off option*/
- BBTK_DECLARE_INPUT(3D,bool);
-
/*Resultant vtkTransform*/
- BBTK_DECLARE_OUTPUT(Out, vtkLinearTransform*);
+ BBTK_DECLARE_OUTPUT(Out, vtkTransform*);
BBTK_PROCESS(Process);
void Process();
/*Class in charge of making the transformations*/
- Transformer *transformer;
-
- /*Boolean that defines if the transformation is in 3D or not. True = Transfomation is in 3D*/
- bool _3D;
+ Transformer *transformer;
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform2DBox,bbtk::AtomicBlackBox);
BBTK_DESCRIPTION("Given 2 points and an angle, it calculates the vtkTransform result after aplying the transformations, using the first point as base of the transformation");
BBTK_CATEGORY("filter");
BBTK_INPUT(Transform2DBox,CenterPoint,"Point (x,y,z) -> Rotation Center",std::vector<int>,"");
-BBTK_INPUT(Transform2DBox,Axis,"Vector (x,y,z) -> Axis Rotation Vector. Used only on 3D transformations.",std::vector<double>,"");
BBTK_INPUT(Transform2DBox,Angle,"Rotation Angle",double,"");
BBTK_INPUT(Transform2DBox,ScaleX,"Scale in X",double,"");
BBTK_INPUT(Transform2DBox,ScaleY,"Scale in Y",double,"");
BBTK_INPUT(Transform2DBox,ScaleZ,"Scale in Z",double,"");
-BBTK_INPUT(Transform2DBox,3D,"Boolean that defines if the transformation is in 3D or not. True = Transfomation is in 3D ",bool,"");
-BBTK_OUTPUT(Transform2DBox,Out,"Linear Transform filter",vtkLinearTransform*,"");
+BBTK_OUTPUT(Transform2DBox,Out,"Linear Transform filter",vtkTransform*,"");
BBTK_END_DESCRIBE_BLACK_BOX(Transform2DBox);
}
// EO namespace bbPackRecalage