Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Got it. Think of your object with density $\rho(\vec{x})$ moving rigidly with constant velocity $\vec{v}$. In this case, the $\vec{v}$ can be pulled out of the equation and the integral is just as you wrote. If the velocity is not constant within the volume, then $\vec{v}$ is an average velocity.