Skip to content

Final Frame rendered event? #96

@landynfrancis

Description

@landynfrancis

Hello,

I have a 4 panel setup with vtkRemoteViews that are controlled by a CSS display:grid setup.

I add vtkBorderWidgets to my render windows, and I am trying to keep their size in sync with the rendered image. I have noticed that when I set a new layout, there is a moment where the rendered image is stretched, which then quickly updates, to the correct size.

Using a trame.SizeObserver I am able to capture when the resize happens. But updating the position of the vtkBorderWidget using an @change observer for the size seems to resize it to the stretched image, not the final one that is rendered.

This can be better explained with the following video:

chrome_l7tQdkJw6L.mp4

Interestingly, the resize logic works fine when the expansion panel at the bottom is opened, just not on the layout change. I'm wondering if an event on vtkRemoteView for "final frame rendered" exists or could be added to help resolve this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions