paraview.VtkRemoteView() with routing #421
-
Hi Sebastien, I am working a bit to make my application multipage using trame-router. I had a look to this tutorial https://github.com/Kitware/trame-router/blob/master/examples/vue2/basic.py and I manage to make it work. However, if I try to do a page with VtkRemoteView(), I cannot really see any rendering but just the bare page. Have you ever tried this before? Here is my snippet:
Many thanks for the suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
Where is the code with the VtkRemoteView? Did you fixed a |
Beta Was this translation helpful? Give feedback.
-
Let me prepare a minimal working example, It will be easier to discuss on
it. Giving you back asap. I still use ref as legacy, I know you removed it
recently.
Il Mer 24 Gen 2024, 18:10 Sebastien Jourdain (Kitware) <
***@***.***> ha scritto:
… Where is the code with the VtkRemoteView? Did you fixed a ref=?
—
Reply to this email directly, view it on GitHub
<#421 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4ZV6XOPDBHGAPWD4YOYYDYQE6ABAVCNFSM6AAAAABCJDKRFSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEMZVGYYDK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Good morning Sebastien, please find attached a working example of the issue I am experimenting. To run the test case, just pvbatch test.py. Here I am just creating a spehere and coloring it. If I call home_page() under routing I cannot see anything, while if I just do:
I can see it displayed ok. Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
I see, thank you for the clarification!
I knew it was a stupid stuff like that. How do you set the size of the
window? Is there a way to set the full height automatically?
Yes, that code is a bit of a mess. I wrote tons of lines in a very short
amount of time. I have scheduled a refactoring after having tested all the
features I'd like there. Wrapping up globals in a class and passing it
around sounds like a plan.
Cheers & thank you.
Cheers
|
Beta Was this translation helpful? Give feedback.
-
Hi Sebastienne,
Sorry I am really dumb but I cannot figure out where to put the class
attribute to assing the layout's height -.-
Cheers
Il Dom 28 Gen 2024, 17:56 Sebastien Jourdain (Kitware) <
***@***.***> ha scritto:
… Also use your browser dev tools to edit live the css/style to figure out
what you need to define in your trame code.
—
Reply to this email directly, view it on GitHub
<#421 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4ZV6QJF3KBHHFLGCF32YTYQZ7M7AVCNFSM6AAAAABCJDKRFSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENZTGA4TM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, you are definitevely right. In your opinion, why that thing is working
if I do not use the Router? It must take the size somewhere else...
Il Lun 5 Feb 2024, 12:46 Edoardo alinovi ***@***.***> ha
scritto:
… Hi Sebastienne,
Sorry I am really dumb but I cannot figure out where to put the class
attribute to assing the layout's height -.-
Cheers
Il Dom 28 Gen 2024, 17:56 Sebastien Jourdain (Kitware) <
***@***.***> ha scritto:
> Also use your browser dev tools to edit live the css/style to figure out
> what you need to define in your trame code.
>
> —
> Reply to this email directly, view it on GitHub
> <#421 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AL4ZV6QJF3KBHHFLGCF32YTYQZ7M7AVCNFSM6AAAAABCJDKRFSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DENZTGA4TM>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
I see, layout.root.style did the trick indeed. I was missing that bit...
Many thanks 😀
Il Lun 5 Feb 2024, 16:25 Sebastien Jourdain (Kitware) <
***@***.***> ha scritto:
… The router does not matter here... Just make sure that each element in the
hierarchy properly use the full height. Learn how to use the dev tools of
your browser to navigate the DOM and edit or identify where that info got
dropped.
with RouterViewLayout(server, "/foo") as layout:
layout.root.style="height: 100%"
with vuetify.VCard(classes="fill-height", style="background: red;"): # Make sure the RED takes the full height
vuetify.VCardTitle("This is foo")
with vuetify.VCardText():
vuetify.VBtn("Take me back", click="$router.back()")
—
Reply to this email directly, view it on GitHub
<#421 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4ZV6UUVOUAURUA7UYNYADYSD2XFAVCNFSM6AAAAABCJDKRFSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGNZRG43TK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
The router does not matter here... Just make sure that each element in the hierarchy properly use the full height. Learn how to use the dev tools of your browser to navigate the DOM and edit or identify where that info got dropped.