mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user