ifcviewer: rename SceneLoader::Entry to Model

The struct holds per-model bookkeeping; Model describes its contents
rather than its container relationship.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-04-28 19:31:48 +10:00
parent 7bc64bef1a
commit 8282f691e8
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -74,12 +74,12 @@ std::vector<uint32_t> SceneLoader::addFiles(const QStringList& paths) {
assigned.reserve(paths.size());
for (const auto& path : paths) {
uint32_t id = next_model_id_++;
Entry entry;
entry.id = id;
entry.file_path = path;
entry.display_name = QFileInfo(path).fileName();
entry.streamer = new GeometryStreamer(this);
models_[id] = std::move(entry);
Model model;
model.id = id;
model.file_path = path;
model.display_name = QFileInfo(path).fileName();
model.streamer = new GeometryStreamer(this);
models_[id] = std::move(model);
load_queue_.push_back(id);
assigned.push_back(id);
}
+2 -2
View File
@@ -107,7 +107,7 @@ private slots:
void onElementPollTick();
private:
struct Entry {
struct Model {
uint32_t id = 0;
QString file_path;
QString display_name;
@@ -123,7 +123,7 @@ private:
void startDataSourceLoad(uint32_t mid);
ViewportWindow* viewport_ = nullptr;
std::map<uint32_t, Entry> models_;
std::map<uint32_t, Model> models_;
std::deque<uint32_t> load_queue_;
uint32_t next_model_id_ = 1;
uint32_t next_object_id_ = 1;