3 #include <Gui/RaGui.hpp>
5 #include <Engine/RadiumEngine.hpp>
6 #include <Engine/Scene/ItemEntry.hpp>
8 #include <Gui/TreeModel/TreeModel.hpp>
12 class RA_GUI_API EngineTreeItem :
public TreeItem
15 std::string getName()
const override {
16 return getEntryName( Engine::RadiumEngine::getInstance(), m_entry );
19 bool isValid()
const override {
return m_entry.isValid(); }
21 bool isSelectable()
const override {
return m_entry.isSelectable(); }
24 Engine::Scene::ItemEntry m_entry;
36 connect(
this, &TreeModel::dataChanged,
this, &ItemModel::onDataChanged );
57 void onDataChanged(
const QModelIndex& topLeft,
58 const QModelIndex& bottomRight,
59 const QVector<int>& roles );
63 void visibilityROChanged( Ra::Core::Utils::Index roIndex,
bool visible );
67 void buildModel()
override;
69 std::string getHeaderString()
const override {
return "Engine Objects Tree"; }
const Engine::RadiumEngine * m_engine
Engine instance.