The Theory of X-Ray Scattering from Macroscopical Objects