refactor: migrate vtk classes to use ObjectWrapper for model management and update registration logic
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user