[Paraview] vtkTable Visualization

Stephan Rogge Stephan.Rogge at tu-cottbus.de
Thu May 23 09:13:37 EDT 2013


Hello again.

Hm, I think I locate the problem. Debuging pqPlotMatrixView's base class pqContextView::setSelection(vtkSelection* sel) have a problem with existing selections on a multi block encapsulate vtkTable. 

I was able to make this observation within pqContextView::setSelection(vtkSelection* sel):
When I select a row in a SpreadSheetView of the multi block encapsulated vtkTable the active selection is a "CompositeDataIDSelectionSource". This source holds a property named "IDs" which returns 3 elements per command. However, this method fills only 2 elements per command to its IDs-property. I guess selection to this view should allways return "IDSelectionSource". So maybe the selection-source types were mixed up. 

Best regards,
Stephan

-----Ursprüngliche Nachricht-----
Von: Stephan Rogge [mailto:roggeste at tu-cottbus.de] 
Gesendet: Mittwoch, 15. Mai 2013 08:10
An: paraview at paraview.org
Betreff: Re: vtkTable Visualization

Hi,

I decided to attach a pv state file to reproduce this issue. The left side visualizes the (multiblock) encapsulated vtkTable output of a ProgrammableSource with a SpreadSheet-, MatrixPlot- and ParallelCoordinatesView. The same view types were used for the direct vtkTable output of a ProgrammableSouce (right).

Steps to reproduce the problem with PV git master version:

1. Load attached State file

For the left views:
2. First select an item in the left active plot view (MatrixPlotView) with a right mouse click (no drag) => Should work 
3. Select a line in the SpreadSheetView => Should work; the selection is propagated over all views (on the same side) 
4. Now repeat step 2. => Message: "Uneven size of values." occurs and the selection is not being propagated to the other views 
5. Select a range in the ParallelCoordinates View => Same message as in step 4. is shown

For the right views:
2. First select an item in the right active plot view (MatrixPlotView) with a right mouse click (no drag) => Does not work; I have to click an drag 
3. Select a line in the SpreadSheetView => Should work; the selection is propagated over all views (on the same side) 
4. Now repeat step 2. => Should word 
5. Select a range in the ParallelCoordinates View => Should work

Hope that someone could reproduce this.

Cheers,
Stephan



Zitat von Stephan Rogge <Stephan.Rogge at tu-cottbus.de>:

> Hello,
>
> I try to visualize a vtkTable with SpreadSheetView, Parallel 
> CoordinatesView and PlotMatrixView and observe some strange behavior 
> while making a selection of a certain row. To demonstrate the problem 
> I've create to scenarios:
>
> ### Scenario 1 with a ProgrammableSource and a Muliblock(vtkTable) output:
>
> NumCols = 15
> NumRows = 100
> math = vtk.vtkMath()
> pdo = self.GetOutput()
> table = vtk.vtkTable()
> for di in range(0, NumCols):
>  d = vtk.vtkDoubleArray()
>  d.SetName("Data Column {0}".format(di))
>  d.SetNumberOfValues(NumRows)
>  for dv in range(0, NumRows):
>     d.SetValue(dv, math.Random() * NumRows)
>  table.AddColumn(d)
> pdo.SetBlock(0, table)
>
> #################################################
>
> ### Scenario 2 with a ProgrammableSource and a vtkTable output:
>
> NumCols = 15
> NumRows = 100
> math = vtk.vtkMath()
> pdo = self.GetTableOutput()
> for di in range(0, NumCols):
>  d = vtk.vtkDoubleArray()
>  d.SetName("Data Column {0}".format(di))
>  d.SetNumberOfValues(NumRows)
>  for dv in range(0, NumRows):
>     d.SetValue(dv, math.Random() * NumRows)
>  pdo.AddColumn(d)
>
> They both produce tables with same structure. The first Source 
> encapsulate it within a multi block set. This is being visualized as 
> shown on the screenshot (see attached).
>
> When I start to select a row the SpreaSheetView in both cases the 
> PlotView and ParallelCoordinatesView highlights their corresponding 
> data sets (as expected). But after clicking in the active plot view 
> (in the multi block scenario 1) an Debug message occurs which says: "Uneven size for values."
> and the changed selection is not being propagated to the other views. 
> This happens only in the Scenario 1 (multi block). In scenario 2 
> (direct vtkTable output) I still can select a point in the active plot 
> view after selecting a row in the spread sheet.
>
> Another observation is, that the active plot view recognize a single 
> item selection (single right-mouse-click) only in scenario 1 but not 
> scenario 2. Here I have to draw small rectangle to select one data point.
>
> Can anyone reproduces this behavior?
>
>
> Best regards,
> Stephan


M. Sc. Stephan Rogge
Wissenschaftlicher Mitarbeiter

BTU-Cottbus
Lehrstuhl Medientechnik
Konrad-Wachsmann-Allee 1
03046 Cottbus
Germany

Besucheradresse:
Siemens-Halske-Ring 14, D-03046 Cottbus
Lehrgebäude 3A, Raum 252

Email stephan.rogge at tu-cottbus.de
Phone +49 355 69-5062

http://www.tu-cottbus.de/medientechnik/




More information about the ParaView mailing list