//If the transform already exists, we delete it before we create a new transform
//and set the matrix with the identity matrix
_transform= vtkTransform::New();
- vtkMatrix4x4 *_matrix = vtkMatrix4x4::New();
+ _matrix = vtkMatrix4x4::New();
_matrix->Identity();
- _transform->SetMatrix(_matrix);
-
+ _transform->SetMatrix(_matrix);
}
/*
{
//We delete the existing transform
if (_transform != NULL ) { _transform->Delete(); }
+ if (_matrix != NULL ) { _matrix->Delete(); }
}
/*
{
_transform->Identity();
_transform->Translate(_centerPoint[0], _centerPoint[1], _centerPoint[2]);
- _transform->Scale(_scaleX, _scaleY,_scaleZ);
+
_transform->RotateWXYZ(_angle, 0, 0, 1);
+ _transform->Scale(_scaleX, _scaleY,_scaleZ);
+
_transform->Update();
}