mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +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());
|
assigned.reserve(paths.size());
|
||||||
for (const auto& path : paths) {
|
for (const auto& path : paths) {
|
||||||
uint32_t id = next_model_id_++;
|
uint32_t id = next_model_id_++;
|
||||||
Entry entry;
|
Model model;
|
||||||
entry.id = id;
|
model.id = id;
|
||||||
entry.file_path = path;
|
model.file_path = path;
|
||||||
entry.display_name = QFileInfo(path).fileName();
|
model.display_name = QFileInfo(path).fileName();
|
||||||
entry.streamer = new GeometryStreamer(this);
|
model.streamer = new GeometryStreamer(this);
|
||||||
models_[id] = std::move(entry);
|
models_[id] = std::move(model);
|
||||||
load_queue_.push_back(id);
|
load_queue_.push_back(id);
|
||||||
assigned.push_back(id);
|
assigned.push_back(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ private slots:
|
|||||||
void onElementPollTick();
|
void onElementPollTick();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct Entry {
|
struct Model {
|
||||||
uint32_t id = 0;
|
uint32_t id = 0;
|
||||||
QString file_path;
|
QString file_path;
|
||||||
QString display_name;
|
QString display_name;
|
||||||
@@ -123,7 +123,7 @@ private:
|
|||||||
void startDataSourceLoad(uint32_t mid);
|
void startDataSourceLoad(uint32_t mid);
|
||||||
|
|
||||||
ViewportWindow* viewport_ = nullptr;
|
ViewportWindow* viewport_ = nullptr;
|
||||||
std::map<uint32_t, Entry> models_;
|
std::map<uint32_t, Model> models_;
|
||||||
std::deque<uint32_t> load_queue_;
|
std::deque<uint32_t> load_queue_;
|
||||||
uint32_t next_model_id_ = 1;
|
uint32_t next_model_id_ = 1;
|
||||||
uint32_t next_object_id_ = 1;
|
uint32_t next_object_id_ = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user