Hum.... doesn't seem likely that it would be heat stroke as you said she was agitated and pacing. Plus you have shade, so I'd rule that out.
If she is now fine it could have been that she was just on heat. Some pigs get a little crazy during their cycle, none of mine but I've read stories

Mark the date of this on your calendar and watch for similar symptoms in 21 days from yesterday.
Here is some info on heat stroke -
A very high respiratory rate.
Muscle trembling.
Skin red.
Weakness.
Prostration.
Vomiting.
Diarrhoea may be seen.
Rectal temperature may rise to 43?C (109?F)
Causes / Contributing factors
High temperatures.
Exposure to sunlight.
Combined with high humidity and poor ventilation in indoor housing.
Glad to hear she's snapped out of it