From: geay Date: Mon, 2 Jun 2014 05:48:19 +0000 (+0200) Subject: Bug correction 2 same for MEDReader reader but here for filters in MEDReader with... X-Git-Tag: V7_5_0a1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=234555062143bd5a1a28f26b58c657008685c13f;p=modules%2Fparavis.git Bug correction 2 same for MEDReader reader but here for filters in MEDReader with specific GUI. --- diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx index 7b7771ba..69c57374 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.cxx @@ -87,7 +87,8 @@ pqExtractCellTypePanel::pqExtractCellTypePanel(pqProxy* object_proxy, QWidget* p vtkPVSILInformation* info=vtkPVSILInformation::New(); reader->GatherInformation(info); vtkGraph *g(info->GetSIL()); - vtkMutableDirectedGraph *g2(vtkMutableDirectedGraph::SafeDownCast(g)); + //vtkMutableDirectedGraph *g2(vtkMutableDirectedGraph::SafeDownCast(g));// agy: this line does not work in client/server mode ! but it works in standard mode ! Don't know why. ParaView bug ? + vtkMutableDirectedGraph *g2(static_cast(g)); int idNames(0); vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames)); vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames)); diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx index 96aa7993..0628b109 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx @@ -122,7 +122,8 @@ pqExtractGroupPanel::pqExtractGroupPanel(pqProxy* object_proxy, QWidget* p):Supe vtkPVSILInformation* info=vtkPVSILInformation::New(); reader->GatherInformation(info); vtkGraph *g(info->GetSIL()); - vtkMutableDirectedGraph *g2(vtkMutableDirectedGraph::SafeDownCast(g)); + //vtkMutableDirectedGraph *g2(vtkMutableDirectedGraph::SafeDownCast(g));// agy: this line does not work in client/server mode ! but it works in standard mode ! Don't know why. ParaView bug ? + vtkMutableDirectedGraph *g2(static_cast(g)); int idNames(0); vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames)); vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames));