View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012531VTK(No Category)public2011-08-17 01:042016-05-13 17:04
Reporteredice 
Assigned ToCory Quammen 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version7.1.0 
Summary0012531: vtkScalarBarRepresentation should only change orientation when moving, not resizing
DescriptionWhen a user drags the edges of a vtkScalarBarWidget, and the mouse passes close to the edge of the view, often the bar will change orientation which can result in the bar jumping around the screen.

In this method:

void vtkScalarBarRepresentation::WidgetInteraction(double eventPos[2])
{
  // Let superclass move things around.
  this->Superclass::WidgetInteraction(eventPos);

  // Check to see if we need to change the orientation.
etc etc

at this point, the rest of the code should not be executed if the user is not moving with widget.

So, adding this test around the reorientation code improves the scalar bar behaviour a lot.

if (this->Moving)
{
  // Check to see if we need to change the orientation.
  etc etc code for reorientating bar
}

cheers
Paul
TagsNo tags attached.
ProjectKitware
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0030895)
Jean-Christophe Fillion-Robin (manager)
2013-06-05 13:17

Does the problem still occur with VTK 5.10 ? VTK 6 ?

Would be great if you could submit a patch using Gerrit. For more details see http://www.vtk.org/Wiki/VTK/Git/Develop [^]

Thanks
Jc
(0031187)
Dave DeMarle (administrator)
2013-07-22 17:30

If this bug is still present in 6.0.0, please reopen this bug report.
(0035397)
Cory Quammen (developer)
2015-10-27 22:00

Bug still present.
(0035398)
Cory Quammen (developer)
2015-10-27 22:07

Potential fix posted at

https://gitlab.kitware.com/vtk/vtk/merge_requests/834 [^]
(0035953)
Cory Quammen (developer)
2016-05-13 17:04

Fixed in commit

commit 71db77dfcba2750a3a5d7be7f50038ad197ab935
Author: Cory Quammen <cory.quammen@kitware.com>
Date: Tue Oct 27 21:36:11 2015 -0400

    BUG 12531: Fixed problem with AutoOrient
    
    When resizing a vtkScalarBarWidget while AutoOrient is enabled, the
    scalar bar orientation may change while the dimension whose size is
    changing will not. This is odd behavior that can result in the scalar
    bar jumping around during resizing or the widget completely
    collapsing, making it impossible to interact with the widget.
    
    Fixed this by disallowing orientation swaps when the scalar bar
    representation is not moving.
    
    Modified TestScalarBarWidget.cxx to test this change.

 Issue History
Date Modified Username Field Change
2011-08-17 01:04 edice New Issue
2013-06-05 13:17 Jean-Christophe Fillion-Robin Note Added: 0030895
2013-07-22 17:30 Dave DeMarle Note Added: 0031187
2013-07-22 17:30 Dave DeMarle Status backlog => expired
2013-07-22 17:30 Dave DeMarle Assigned To => Dave DeMarle
2015-10-27 22:00 Cory Quammen Assigned To Dave DeMarle => Cory Quammen
2015-10-27 22:00 Cory Quammen Status expired => backlog
2015-10-27 22:00 Cory Quammen Note Added: 0035397
2015-10-27 22:00 Cory Quammen Status backlog => active development
2015-10-27 22:07 Cory Quammen Note Added: 0035398
2016-05-13 17:04 Cory Quammen Note Added: 0035953
2016-05-13 17:04 Cory Quammen Status active development => closed
2016-05-13 17:04 Cory Quammen Resolution open => fixed
2016-05-13 17:04 Cory Quammen Fixed in Version => 7.1.0


Copyright © 2000 - 2018 MantisBT Team