How to get the rotation value of each axis ?

Component is rotated around 45 degree around X and Y axis.
I am trying to get the values after rotation.
I tried following methods

1] By gp_Quaternion
gp_Quaternion q =CurrentObject->LocalTransformation().GetRotation();
double aProbe, bProbe, cProbe;
q.GetEulerAngles(gp_Intrinsic_XYZ, aProbe, bProbe, cProbe);
double x, y, z;
x = aProbe * (180 / 3.141592); => this give value of 68 degree
y = bProbe * (180 / 3.141592); => this give value of 29 degree
z = cProbe * (180 / 3.141592); => this give value of 42 degree

2] By axis
gp_XYZ theAxis(1, 0, 0);
Standard_Real theAngle;
CurrentObject->LocalTransformation().GetRotation(newAxis, theAngle);
Standard_Real x1 = theAngle * (180 / 3.141592); => this give value of 68 degree

so I am not getting the exact values of X and Y which is 45 degree