Hysteresis and temperature-induced transitions in ferromagnetic materials