Contour scaling not working in vtkOrientedGlyphContourRepresentation
at line 514 of vtkOrientedGlyphContourRepresentation.cxx:
worldPos[0] = centroid[0] + ratio * ( ref[0] - centroid[0] );
worldPos[1] = centroid[0] + ratio * ( ref[1] - centroid[1] );
worldPos[2] = centroid[0] + ratio * ( ref[2] - centroid[2] );
should be:
worldPos[0] = centroid[0] + ratio * ( ref[0] - centroid[0] );
worldPos[1] = centroid[1] + ratio * ( ref[1] - centroid[1] );
worldPos[2] = centroid[2] + ratio * ( ref[2] - centroid[2] );
for some reason the right button event onto a node of the vtkContourWidget's polygon also doesnt work/doesnt call callback. I added the lines
GetEventTranslator()->RemoveTranslation( vtkCommand::RightButtonPressEvent );
GetEventTranslator()->RemoveTranslation( vtkCommand::RightButtonReleaseEvent );
GetEventTranslator()->SetTranslation(
vtkCommand::RightButtonPressEvent,
vtkEvent::NoModifier, 103, 0, NULL,
vtkWidgetEvent::AddFinalPoint );
GetEventTranslator()->SetTranslation(
vtkCommand::RightButtonPressEvent,
vtkEvent::ShiftModifier, 103, 0, NULL,
vtkWidgetEvent::Scale );
GetEventTranslator()->SetTranslation(
vtkCommand::RightButtonReleaseEvent,
vtkEvent::NoModifier, 103, 0, NULL,
vtkWidgetEvent::EndScale );
GetEventTranslator()->SetTranslation(
vtkCommand::RightButtonReleaseEvent,
vtkEvent::ShiftModifier, 103, 0, NULL,
vtkWidgetEvent::EndScale );
to get it working if i use scaling with shift modifier, but it should work without shift modifier as intended... so there are 2 issues....
Edited by Gerald Lodron