40 lines
961 B
C++
Executable File
40 lines
961 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* CustomView for AES Explosion
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Mike Wille, SLSE, 2016-04-08
|
|
*/
|
|
#pragma once
|
|
|
|
#include <Viewer/LtsDataView/abstract_display_widget.h>
|
|
#include <LtsSession/lts_session.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class CustomViewExplosion;
|
|
}
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
class ExplosionArea;
|
|
class ExplosionSingle;
|
|
class CustomViewExplosion final : public LtsDataView::AbstractDisplayWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CustomViewExplosion(LtsSession::LtsSession *session, QWidget *parent = nullptr);
|
|
~CustomViewExplosion();
|
|
bool init(const QModelIndex &idx) override final;
|
|
|
|
private:
|
|
bool calculateIcon(const AreaEffectSimulation::ExplosionArea &area, const QColor &color);
|
|
bool calculateIcon(const AreaEffectSimulation::ExplosionSingle &single, const QColor &color);
|
|
|
|
LtsSession::LtsSession *m_session;
|
|
Ui::CustomViewExplosion *m_ui;
|
|
|
|
};
|
|
} // namespace AreaEffectSimulation
|