Legatio
Legatio

Reputation: 319

VTK: small cosy in a corner instead of the middle

Is it possible to have the vtkAxesActor small in a corner of the window?

enter image description here

Here is a image of what I currently got and what I would like to have. The colorful axes are the standard axesActor. But I would like the axes in a corner of the window and only there (bottom left in black). They shouldn't move around the window when the view is rotated. Only around their origin.

Is this possible? And if yes, how?

Upvotes: 0

Views: 561

Answers (2)

mmusy
mmusy

Reputation: 1337

A possible solution is to put the vtkAxesActor into an orientation widget:

    widget = vtk.vtkOrientationMarkerWidget()
    widget.SetOrientationMarker(axisActor)
    widget.SetInteractor(interactor)
    widget.SetViewport(0, 0, size, size)
    widget.InteractiveOff()
    widget.EnabledOn()

Upvotes: 1

kai Taylor
kai Taylor

Reputation: 795

The vtkAxesActor location is functional and it's location has a purpose. The anchor point of the AxesActor is the anchor point of the model. This provides context of where any transformations or translations would be calculated from.

Unfortunately the example of the axisActor in the corner you have proposed would only provide context of the orientation of the model and so not part of the standard options.

Upvotes: 0

Related Questions