Kitware / itk-vtk-viewer

2D / 3D web image, mesh, and point set viewer using itk-wasm and vtk.js
https://kitware.github.io/itk-vtk-viewer/
BSD 3-Clause "New" or "Revised" License
210 stars 64 forks source link

Changing axes arrows appearance #662

Closed LeviEyal closed 1 year ago

LeviEyal commented 1 year ago

Hey there! I was wondering if there a way to change the appearance of the axes arrows: image

I need to change the colors and length of each arrow. Is it possible? Thanks a lot!

PaulHax commented 1 year ago

Hello!

We'll need to modify itkVtkViewProxy, which owns the orientationWidget. https://github.com/Kitware/itk-vtk-viewer/blob/master/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js#L523

itkVtkViewProxy's superclass, vtkViewProxy, creates the orientationWidget.

Is that enough to get started?

LeviEyal commented 1 year ago

Yes thank you!