Flaviu_
Flaviu_

Reputation: 1356

vtkResliceCursorWidget rotate both axes

I am using a vtkResliceCursorWidget in a VTK app, and I want setup a useful behavior: when I move a side (axe), I want to being moved both axes.

See the images from below:

Actual behavior:

enter link description here

Desired behavior:

enter link description here

I have found inside of vtkResliceCursorWidget representation, a method that fit my needs:

SetManipulationMode(vtkResliceCursorRepresentation::RotateBothAxes)

but the issue is that though I have used, it simply do nothing:

vtkResliceCursorRepresentation* pRep = reinterpret_cast<vtkResliceCursorRepresentation*>(resliceCursorWidget[1]->GetRepresentation());
pRep->SetManipulationMode(vtkResliceCursorRepresentation::RotateBothAxes);

where resliceCursorWidget is a vtkResliceCursorWidget, taken from here: Example

Somwhow I expect of this, because on SetManipulation method remark write quite clear: "INTERNAL - Do not use Set the manipulation mode. This is done by the widget", even this method is a "public" method.

Could you guide me in order to able to move both axes (of vtkResliceCursorWidget) on the same time ?

Thank you.

Upvotes: 1

Views: 713

Answers (1)

esaco
esaco

Reputation: 11

With the CTRL key as modifier, the behaviour will be as desired.

Upvotes: 1

Related Questions