-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree viewer #429
base: development
Are you sure you want to change the base?
Tree viewer #429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is definitely the correct start.
void OpenInfraPlatform::UserInterface::MainWindow::on_actionShow_Ifc_Tree_triggered() { | ||
if (ifcTreeDialog_ == nullptr) { | ||
ifcTreeDialog_ = new IfcTreeDialog(this); | ||
} | ||
|
||
ifcTreeDialog_->show(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you know which model was clicked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all comments need addressing - if I'm wrong, merely resolve them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still surprised that this ain't working ...
((QDialog*)this)->show(); | ||
if (std::dynamic_pointer_cast<oip::IfcModel>(model)) | ||
{ | ||
auto ifcModel = std::static_pointer_cast<OpenInfraPlatform::Core::IfcGeometryConverter::IfcModel>(model); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use dynamic pointer cast as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Lots of commented out code, should be addressed before the final merge.
Implementation of a viewer that shows the hierarchy tree of IFC files.