Page MenuHomePhabricator

Histogramm widget does not work
Closed, ResolvedPublic

Description

On my system the histogramm widget does not work, neither by itself nor in the measurement functionality. Instead of proper scaling the f(x) range is from -1 to 1 and no bins are visible.

Build on/with
Windows Vista 64 Bit
VTK 5.4.0
ITK 3.16
QT 4.6

Related Objects

StatusAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

A small update: this seems to be related to the configuration of VTK and/or Qt.

Observerved different behaviors under the following four configurations:

1.) VTK 5.4.2 32 Bit with VTK_USE_QVTK_QT_OPENGL = ON

QT 4.6.1

> Histogram widget appears either black or white, no scale is displayed

> Curve diagram widget does not work either

2.) VTK 5.4.2 32 Bit with VTK_USE_QVTK_QT_OPENGL = OFF

QT 4.6.1

> Histogram widget has (wrong) scale, but nothing is shown

> Curve diagram widget does not work either

3.) VTK 5.4.0 64 Bit with VTK_USE_QVTK_QT_OPENGL = OFF

QT 4.6.0

> Histogram widget works

> Curve diagram not checked

4.) VTK 5.4.0 32 Bit with VTK_USE_QVTK_QT_OPENGL = ON

QT 4.5.1

> Histogram widget works

> Curve diagram widget works

I just tried the "Histogram to Clipboard" button. That one works just fine as far as I can tell.

Changing 'related platforms' to 'all', the histogram is not drawn also on Mac OS X, but the information is there ( copying to clipboard works properly ). The shown scale in widget is [-1, 1]

Histogram is not visible on Fedora 12 64bit with Qt 4.6.2 and VTK 5.4.0. I don't know about the VTK_USE_QVTK_QT_OPENGL switch. Do you now how I can find out? I only have the installed version, not the build directory.

Tested for the OPENGL Flag:

VTK 5.4.0 64 Bit with VTK_USE_QVTK_QT_OPENGL = ON
ITK 3.16
QT 4.6

> Histogram widget appears either black or white, no scale is displayed

> Statistics and Histogram to Clipboard work

VTK 5.4.0 64 Bit with VTK_USE_QVTK_QT_OPENGL = OFF
ITK 3.16
QT 4.6

> Histogram widget has (wrong) scale, but nothing is shown

> Statistics and Histogram to Clipboard work

Bar chart works for VTKs own test ( located at bin\Release\QtChartCxxTests.exe )

Added patch using some of the vtk chart test code in the histogram cpp to study behaviour.

[SVN revision 21802]
FIX (#3334): Initialize QItemModel correctly (by setting row AND column count) to make the histogram widget work again with new Qt versions

Merging "applicazion modules" component with "ExtApp plugins"