Giter Site home page Giter Site logo

methods of QtInteractor about pyvistaqt HOT 8 OPEN

pyvista avatar pyvista commented on May 25, 2024
methods of QtInteractor

from pyvistaqt.

Comments (8)

GuillaumeFavelier avatar GuillaumeFavelier commented on May 25, 2024

Hi @bistek, thanks for doing this manual testing and I'm surprised by the outcome. I think it could be a good idea to have automatic testing for this then once it is fixed.

Among the methods crashing, add_toolbars() and add_menu_bar() are not inherited from BasePlotter. Also AFAIK, default_camera_tool_bar is not a function.

from pyvistaqt.

akaszynski avatar akaszynski commented on May 25, 2024

Looks like we indeed need to add automated testing for this. Thanks for discovering this!

from pyvistaqt.

andrea-bistacchi avatar andrea-bistacchi commented on May 25, 2024

I'm happy to help, if I can. Actually YOU are the one who are doing a great job for the community!

from pyvistaqt.

dominicjtriana avatar dominicjtriana commented on May 25, 2024

I made another issue but I would add:
self.plotter.disable_eye_dome_lighting() throws errors but doesn't crash. There are some negative visual artifacts as well.

from pyvistaqt.

condoratberlin avatar condoratberlin commented on May 25, 2024

Hi, I goning to embedd pyvistaqt in an gui framework an discovered some similar problems.
Especially add_toolbars() requires a self.app_window attribute, were the mainwindow is stored, but the pyvista QtInteractor don't allow to set such a parameter to the init method.

from pyvistaqt.

GuillaumeFavelier avatar GuillaumeFavelier commented on May 25, 2024

I agree with @condoratberlin in here, the add_toolbars() and add_menu_bar() functions depends on app_window internally. Those should not be declared as QtInteractor methods.

I see two ways to deal with this at the moment:

  1. Just move those 2 to BackgroundPlotter (that's where they are used after all)
  2. Find a way to refactor the functions to make them useful to QtInteractor (requires Qt gymnastics)

About EDL, this was fixed in pyvista/pyvista#1113

from pyvistaqt.

GuillaumeFavelier avatar GuillaumeFavelier commented on May 25, 2024

Option 1 was implemented in #78

from pyvistaqt.

GuillaumeFavelier avatar GuillaumeFavelier commented on May 25, 2024

As of now, is there any confusion about the methods of QtInteractor?

from pyvistaqt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.