Kitware / LookingGlassVTKModule

Other
15 stars 12 forks source link

Set custom value if no LookingGlass is attached #65

Closed Timozen closed 8 months ago

Timozen commented 8 months ago

Currently, the LookingGlassInferace and, therefore, the LookingGlassRenderWindow defaults to large if no device is connected. However, I would like to precompute the same scene with several quilt combinations (e.g., 8x6 or 5x9).

I did not find any documentation to set this value and was wondering if: a) it is possible to set that, or b) how much work would it be to make this configurable if not implemented yet

Sincerely, Tim

psavery commented 8 months ago

Hi @Timozen! Yes this is supported. See here for an example in Python. Those Python calls of GetDeviceTypes() and SetDeviceType() have corresponding functions in C++ on the render window.

Timozen commented 8 months ago

Oh wow! Thank you very much 👍🏻 I think I just should get some new glasses ^^

This resolves my issue completely!