Replies: 1 comment
-
I've came to the same conclusion as @PiotrRyw here, I think it might be an WIP or there might be some design rethink needed. One side note is that I'm not able to find the virtual implementation of Open3D/cpp/open3d/visualization/gui/Widget.cpp Lines 86 to 90 in a590c77 |
Beta Was this translation helpful? Give feedback.
-
I don't see how to get LayoutContext and Constraints from application instance or from window instance or from anywhere, to later pass to CalcPreferredSize() of widgets.
I can manually create an instance of Constraints, but when I try to create an instance LayoutContext I get error messages such as "C++ the default constructor of open3d::visualization::gui::LayoutContext cannot be referenced -- it is a deleted function".
In the documentation of the struct LayoutContext there is no explanation of how to obtain it. GetLayoutContext() in Window class is a protected function.
Is it possible to use CalcPreferredSize?
The same goes for any other function necessitating LayoutContext, eg. CalcMinimumSize().
I've looked through your source code, as the documentation does indeed exist.
Why is CalcPreferredSize() implemented as a public function for every widget if it is impossible to access LayoutContext required by the CalcPrefferedSize(), as the only function returning LayoutContext ( open3d::visualization::gui::Window::GetLayoutContext() ) is protected and the default constructor of LayoutContext is deleted?
Am I missing something that would benefit the C++ documentation?
Beta Was this translation helpful? Give feedback.
All reactions