refactor: migrate vtk classes to use ObjectWrapper for model management and update registration logic

This commit is contained in:
AndreaRigoni
2026-04-09 10:38:45 +00:00
parent 64a87e97e3
commit db76513e79
27 changed files with 479 additions and 349 deletions

View File

@@ -73,13 +73,13 @@ DetectorChamber::~DetectorChamber() {
}
DetectorChamber::Content *DetectorChamber::GetContent() const {
return static_cast<Content *>(m_Content);
return static_cast<Content *>(this->m_model.get());
}
void DetectorChamber::Update() {
this->BaseClass::Update();
if (!m_Content) return;
if (!this->m_model) return;
Content *c = this->GetContent();
Vector3f size = c->GetSize();
HLine3f plane = c->GetProjectionPlane();