gecos-lab / PZero

GNU Affero General Public License v3.0
22 stars 2 forks source link

crash when changing actor style with stereoplot window #63

Open andrea-bistacchi opened 5 months ago

andrea-bistacchi commented 5 months ago

When changing actors properties such as opacity, line thickness, etc., with a stereoplot window open, PZero crashes. This is because the stereoplot is based on Matplotlib and not on VTK/PyVista.

andrea-bistacchi commented 5 months ago

All methods listed below must be re-implemented for stereoplot and other Matplotlib-based plots.

change_actor_color
change_actor_opacity
change_actor_line_thick
change_actor_point_size

The problem is related to:

self.actors_df.loc[self.actors_df["uid"] == uid, "actor"].values[
            0
        ].GetProperty().
andrea-bistacchi commented 5 months ago

Temporary fix: I add empty methods in ViewStereoplot() to avoid crashing PZero. However in this way the stereoplot entities are not affected by changing the legend.