[vtkusers] Recent problems with vtkScalarBarWidget on relaese candidate

Alexandre Boucher afboucher at gmail.com
Wed Jun 5 11:54:57 EDT 2013


Hello all,

I am having problems with vtkScalarBarWidget with the release candidate (on
Windows 7).  When in vertical mode the bar is either very tall or not
positioned properly.  The white bounding box that shows up when the cursor
move on top the widget is displaying correctly   It is fine in horizontal
mode (see attached figures.)

Here how the widget is created

  cbar_widget_ = vtkScalarBarWidget::New();
  cbar_widget_->GetScalarBarActor()->GetLabelTextProperty()->BoldOff();
  cbar_widget_->GetScalarBarActor()->GetLabelTextProperty()->ShadowOff();
  cbar_widget_->GetScalarBarActor()->GetLabelTextProperty()->SetFontSize(8);

cbar_widget_->GetScalarBarActor()->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport();

and later on:
cbar_widget_->SetInteractor( renderer_->GetRenderWindow()->GetInteractor()
);

Does anyone has an idea of what is going on?

Best,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130605/a50249c8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: horiontal-scalar-bar-widget.PNG
Type: image/png
Size: 52404 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130605/a50249c8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vertical-scalar-bar-widget.PNG
Type: image/png
Size: 51530 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130605/a50249c8/attachment-0001.png>


More information about the vtkusers mailing list