QString ParticlesMaxCountColumn::GetExtraInfoForLayerLine(const ParticleTimeLineWidget::LINE& line)
{
	if (!line.layer)
	{
		return QString();
	}

	// Calculate the cumulative info.
	int32 particlesCount = line.layer->GetActiveParticlesCount();
	UpdateCumulativeDataIfMaximum(line.layer, particlesCount);
	totalParticlesCountOnThisLoop += particlesCount;
	
	return QString::number((int)cumulativeData[line.layer]);
}
QString ParticlesMaxAreaColumn::GetExtraInfoForLayerLine(const ParticleTimeLineWidget::LINE& line)
{
	if (!line.layer)
	{
		return QString();
	}
	
	// Calculate the cumulative info.
	float32 particlesArea = line.layer->GetActiveParticlesArea();
	UpdateCumulativeDataIfMaximum(line.layer, particlesArea);
	totalParticlesAreaOnThisLoop += particlesArea;
	
	return FormatFloat((float)cumulativeData[line.layer]);
}
QString ParticlesMaxAreaColumn::GetExtraInfoForLayerLine(ParticleEffectComponent *effect, const ParticleTimeLineWidget::LINE& line)
{
	if (!line.layer)
	{
		return QString();
	}
	
	// Calculate the cumulative info.
	float32 area = effect->GetLayerActiveParticlesSquare(line.layer);
	UpdateCumulativeDataIfMaximum(line.layer, area);
	totalParticlesAreaOnThisLoop += area;
	
	return FormatFloat((float)cumulativeData[line.layer]);
}