Skip to content

Add custom callbacks for hovering and picking. #107

Open
@AlejandroFernandezLuces

Description

📝 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features or code improvementshacktoberfestHacktoberfest related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions