Skip to content
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

Add Missing Python Bindings and Add/Update Docstrings #6429

Merged
merged 5 commits into from
Dec 29, 2023

Conversation

errissa
Copy link
Collaborator

@errissa errissa commented Oct 13, 2023

Type

Motivation and Context

Adds missing Python bindings to Scene class for controlling object properties such as culling (which provides partial solution to #6427) and to TreeView class for retrieving selected widget (addresses #6413)

Checklist:

  • [ x] I have run python util/check_style.py --apply to apply Open3D code style
    to my code.
  • This PR changes Open3D behavior or adds new functionality.
    • Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is
      updated accordingly.
    • I have added or updated C++ and / or Python unit tests OR included test
      results
      (e.g. screenshots or numbers) here.
  • [x ] I will follow up and update the code if CI fails.
  • For fork PRs, I have selected Allow edits from maintainers.

Description


This change is Reviewable

@update-docs
Copy link

update-docs bot commented Oct 13, 2023

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@errissa errissa requested a review from ssheorey October 13, 2023 19:37
Copy link
Member

@ssheorey ssheorey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Rene. A couple more improvements to the documentation and we can merge.

@@ -1550,6 +1550,11 @@ void pybind_gui_classes(py::module &m) {
.def("remove_item", &TreeView::RemoveItem,
"Removes an item and all its children (if any)")
.def("clear", &TreeView::Clear, "Removes all items")
.def("get_item", &TreeView::GetItem,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document arguments here as well.

cpp/pybind/visualization/rendering/rendering.cpp Outdated Show resolved Hide resolved
@errissa errissa changed the title Add Missing Python Bindings Add Missing Python Bindings and Add/Update Docstrings Oct 18, 2023
@ssheorey ssheorey force-pushed the errissa/missing-pybinds branch from 67bcb1b to c29a473 Compare December 29, 2023 17:21
@ssheorey ssheorey merged commit 7931263 into main Dec 29, 2023
37 of 42 checks passed
@ssheorey ssheorey deleted the errissa/missing-pybinds branch December 29, 2023 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to keep drawing geometry independant on view point ?
2 participants