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 custom callbacks for hovering and picking. #107

Open
2 tasks
AlejandroFernandezLuces opened this issue Jul 22, 2024 · 0 comments
Open
2 tasks

Add custom callbacks for hovering and picking. #107

AlejandroFernandezLuces opened this issue Jul 22, 2024 · 0 comments
Labels
enhancement New features or code improvements hacktoberfest Hacktoberfest related

Comments

@AlejandroFernandezLuces
Copy link
Collaborator

AlejandroFernandezLuces commented Jul 22, 2024

📝 Description of the feature

Users of the library should be able to customize the behabviour of the callbacks. As of now, the default behaviour is to show the name of the MeshObject, and highlight the actor in addition to this in the case of picking.

💡 Steps for implementing the feature

Ideas for the implementation:

  • Add an four implementable functions, two for hovering and two for picking, where one function will define what happens on pick and the other will define what happens when you unpick. These functions will be called in place of the add_label and remove_label functions that are currently in each callback.
  • Instead of having implementable functions, accept the functions as input parameters to the PyVistaBackend. More flexible, but might be more prone to errors as well.

🔗 Useful links and references

No response

Note

Before contributing and starting any work, please make sure you agree with the CLA and sign it in your PR.

@AlejandroFernandezLuces AlejandroFernandezLuces added the enhancement New features or code improvements label Jul 22, 2024
@SMoraisAnsys SMoraisAnsys added the hacktoberfest Hacktoberfest related label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements hacktoberfest Hacktoberfest related
Projects
None yet
Development

No branches or pull requests

2 participants