OPTION(SALOME_PARAVIS_BUILD_PLUGINS "Build PARAVIS plugins (MEDReader, etc ...)" ON)
CMAKE_DEPENDENT_OPTION(SALOME_LIGHT_ONLY "Build SALOME Light only (no CORBA)" OFF
"NOT SALOME_KERNEL_LIGHT_ONLY" ON)
-CMAKE_DEPENDENT_OPTION(SALOME_PARAVIS_MINIMAL_CORBA "Build PARAVIS with a minimal CORBA interface" OFF
+CMAKE_DEPENDENT_OPTION(SALOME_PARAVIS_MINIMAL_CORBA "Build PARAVIS with a minimal CORBA interface" ON
"NOT SALOME_LIGHT_ONLY" ON)
IF(SALOME_BUILD_TESTS)
${MED_ROOT_DIR}/include/salome
)
+IF(HDF5_IS_PARALLEL)
+ ADD_DEFINITIONS("-DMEDREADER_USE_MPI")
+ENDIF(HDF5_IS_PARALLEL)
+
SET(MEDReader_CLASSES vtkMEDReader vtkExtractGroup vtkELNOMeshFilter vtkELNOSurfaceFilter vtkELNOFilter vtkExtractCellType)
SET(MEDReader_SRCS)
ENDFOREACH(class)
ADD_LIBRARY(MEDLoaderForPV SHARED MEDFileFieldRepresentationTree.cxx MEDTimeReq.cxx MEDUtilities.cxx vtkGenerateVectors.cxx)
-TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_medloader} ${MEDFILE_C_LIBRARIES})
+
+IF(HDF5_IS_PARALLEL)
+ TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_paramedloader} ${MEDFILE_C_LIBRARIES})
+ELSE(HDF5_IS_PARALLEL)
+ TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_medloader} ${MEDFILE_C_LIBRARIES})
+ENDIF(HDF5_IS_PARALLEL)
VTK_MODULE_LIBRARY(vtkMEDReader ${MEDReader_SRCS})
TARGET_LINK_LIBRARIES(vtkMEDReader vtkPVVTKExtensionsRendering vtkRenderingFreeType vtkRenderingOpenGL vtkRenderingFreeTypeOpenGL vtkInteractionStyle vtkFiltersCore vtkFiltersGeneral MEDLoaderForPV ${MEDFILE_C_LIBRARIES})
#include "MEDFileData.hxx"
#include "SauvReader.hxx"
+#ifdef MEDREADER_USE_MPI
+ #include "ParaMEDFileMesh.hxx"
+#endif
+
#include "vtkXMLUnstructuredGridWriter.h"//
#include "vtkUnstructuredGrid.h"
/*!
*
*/
-void MEDFileFieldRepresentationTree::loadMainStructureOfFile(const char *fileName, bool isMEDOrSauv)
+void MEDFileFieldRepresentationTree::loadMainStructureOfFile(const char *fileName, bool isMEDOrSauv, int iPart, int nbOfParts)
{
if(isMEDOrSauv)
{
- _ms=MEDFileMeshes::New(fileName);
- _fields=MEDFileFields::New(fileName,false);//false is important to not read the values
+ if((iPart==-1 && nbOfParts==-1) || (iPart==0 && nbOfParts==1))
+ {
+ _ms=MEDFileMeshes::New(fileName);
+ _fields=MEDFileFields::New(fileName,false);//false is important to not read the values
+ }
+ else
+ {
+#ifdef MEDREADER_USE_MPI
+ _ms=ParaMEDFileMeshes::New(iPart,nbOfParts,fileName);
+ _fields=MEDFileFields::LoadPartOf(fileName,false,_ms);//false is important to not read the values
+#else
+ std::ostringstream oss; oss << "MEDFileFieldRepresentationTree::loadMainStructureOfFile : request for iPart/nbOfParts=" << iPart << "/" << nbOfParts << " whereas Plugin not compiled with MPI !";
+ throw INTERP_KERNEL::Exception(oss.str().c_str());
+#endif
+ }
}
else
{
vtkDataSet *buildVTKInstance(bool isStdOrMode, double timeReq, std::string& meshName, const TimeKeeper& tk) const;
void printMySelf(std::ostream& os) const;
//non const methods
- void loadMainStructureOfFile(const char *fileName, bool isMEDOrSauv);
+ void loadMainStructureOfFile(const char *fileName, bool isMEDOrSauv, int iPart, int nbOfParts);
void removeEmptyLeaves();
// static methods
static bool IsFieldMeshRegardingInfo(const std::vector<std::string>& compInfos);
#ADD_EXECUTABLE(TestMedReadDescendingPolyhedron ${TestMedReadDescendingPolyhedron_SRCS})
#ADD_EXECUTABLE(TestMedWriteOcta12 ${TestMedWriteOcta12_SRCS})
-IF(${HDF5_IS_PARALLEL})
- ADD_EXECUTABLE(TestMedParallelRead ${TestMedParallelRead_SRCS})
- ADD_EXECUTABLE(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
- TARGET_LINK_LIBRARIES(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
- TARGET_LINK_LIBRARIES(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
-ENDIF(${HDF5_IS_PARALLEL})
+#IF(${HDF5_IS_PARALLEL})
+# ADD_EXECUTABLE(TestMedParallelRead ${TestMedParallelRead_SRCS})
+# ADD_EXECUTABLE(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
+# TARGET_LINK_LIBRARIES(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
+# TARGET_LINK_LIBRARIES(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
+#ENDIF(${HDF5_IS_PARALLEL})
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
for(int index = 0; index < fielddata->GetNumberOfArrays(); index++)
{
vtkDataArray *data(fielddata->GetArray(index));
- vtkQuadratureSchemeDefinition **dict;
+ vtkQuadratureSchemeDefinition **dict = 0;
vtkInformationQuadratureSchemeDefinitionVectorKey *key(vtkQuadratureSchemeDefinition::DICTIONARY());
if(key->Has(data->GetInformation()))
{
#include "vtkDoubleArray.h"
#include "vtkInformation.h"
#include "vtkQuadratureSchemeDefinition.h"
+#include "vtkInformationQuadratureSchemeDefinitionVectorKey.h"
#include "MEDUtilities.hxx"
#include "vtkFieldData.h"
}
if(oldArr->GetInformation()->Get(MEDUtilities::ELGA()))
arr->GetInformation()->Set(MEDUtilities::ELGA(),1);
+ vtkInformationQuadratureSchemeDefinitionVectorKey *key(vtkQuadratureSchemeDefinition::DICTIONARY());
+ if(key->Has(oldArr->GetInformation()))
+ {
+ int dictSize(key->Size(oldArr->GetInformation()));
+ vtkQuadratureSchemeDefinition **dict = new vtkQuadratureSchemeDefinition *[dictSize];
+ key->GetRange(oldArr->GetInformation(),dict,0,0,dictSize);
+ key->SetRange(arr->GetInformation(),dict,0,0,dictSize);
+ delete [] dict;
+ }
if(oldArr->GetInformation()->Get(MEDUtilities::ELNO()))
arr->GetInformation()->Set(MEDUtilities::ELNO(),1);
}
#include "vtkCellArray.h"
#include "vtkDoubleArray.h"
#include "vtkObjectFactory.h"
+#ifdef MEDREADER_USE_MPI
+#include "vtkMultiProcessController.h"
+#endif
#include "MEDFileFieldRepresentationTree.hxx"
}
if(this->Internal->Tree.getNumberOfLeavesArrays()==0)
{
- this->Internal->Tree.loadMainStructureOfFile(this->Internal->FileName.c_str(),this->Internal->IsMEDOrSauv);
+ int iPart(-1),nbOfParts(-1);
+#ifdef MEDREADER_USE_MPI
+ vtkMultiProcessController *vmpc(vtkMultiProcessController::GetGlobalController());
+ if(vmpc)
+ {
+ iPart=vmpc->GetLocalProcessId();
+ nbOfParts=vmpc->GetNumberOfProcesses();
+ }
+#endif
+ this->Internal->Tree.loadMainStructureOfFile(this->Internal->FileName.c_str(),this->Internal->IsMEDOrSauv,iPart,nbOfParts);
if(!this->Internal->PK.arePropertiesOnTreeToSetAfter())
this->Internal->Tree.activateTheFirst();//This line manually initialize the status of server (this) with the remote client.
this->Internal->TK.setMaxNumberOfTimeSteps(this->Internal->Tree.getMaxNumberOfTimeSteps());
try
{
vtkInformation *outInfo(outputVector->GetInformationObject(0));
- //outInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),-1);
outInfo->Set(vtkDataObject::DATA_TYPE_NAME(),"vtkMultiBlockDataSet");
this->UpdateSIL(outInfo);
//
}
catch(INTERP_KERNEL::Exception& e)
{
- std::cerr << "Exception has been thrown in vtkMEDReader::RequestInformation : " << e.what() << std::endl;
+ std::ostringstream oss;
+ oss << "Exception has been thrown in vtkMEDReader::RequestInformation : " << e.what() << std::endl;
+ if(this->HasObserver("ErrorEvent") )
+ this->InvokeEvent("ErrorEvent",const_cast<char *>(oss.str().c_str()));
+ else
+ vtkOutputWindowDisplayErrorText(const_cast<char *>(oss.str().c_str()));
+ vtkObject::BreakOnError();
return 0;
}
return 1;
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE_DIRECTORIES(
- ${MEDReader_SOURCE_DIR}/IO
- ${MEDReader_BINARY_DIR}/IO )
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/IO )
IF(PARAVIEW_BUILD_QT_GUI)
vtkGraph *g(info->GetSIL());
//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<vtkMutableDirectedGraph *>(g));
+ if(!g2)
+ return ;
int idNames(0);
vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames));
vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames));
this->UI->SILUpdateStamp = stamp;
vtkPVSILInformation* info = vtkPVSILInformation::New();
reader->GatherInformation(info);
- this->UI->SILModel.update(info->GetSIL());
- this->UI->Fields->expandAll();
+ vtkGraph *sil(info->GetSIL());
+ if(sil)
+ {
+ this->UI->SILModel.update(sil);
+ this->UI->Fields->expandAll();
+ }
info->Delete();
}
}
virtual void linkServerManagerProperties();
class pqUI;
pqUI* UI;
- std::vector<pqTreeWidgetItemObject *> _all_lev4;
};
#endif
//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<vtkMutableDirectedGraph *>(g));
int idNames(0);
+ if(!g2)
+ return ;
vtkAbstractArray *verticesNames(g2->GetVertexData()->GetAbstractArray("Names",idNames));
vtkStringArray *verticesNames2(vtkStringArray::SafeDownCast(verticesNames));
vtkIdType id0;
this->UI->SILUpdateStamp = stamp;
vtkPVSILInformation* info = vtkPVSILInformation::New();
reader->GatherInformation(info);
- this->UI->SILModel.update(info->GetSIL());
- this->UI->Fields->expandAll();
- info->Delete();
- }
-}
-
-void pqExtractGroupPanel::aLev4HasBeenFired()
-{
- pqTreeWidgetItemObject *zeItem(qobject_cast<pqTreeWidgetItemObject *>(sender()));
- if(!zeItem)
- return;
- pqTreeWidgetItemObject *father(dynamic_cast<pqTreeWidgetItemObject *>(zeItem->QTreeWidgetItem::parent()));
- if(!father)
- return ;
- if(zeItem->isChecked())
- {
- // This part garantees that all leaves having not the same father than zeItem are desactivated
- foreach(pqTreeWidgetItemObject* elt,this->_all_lev4)
- {
- QTreeWidgetItem *testFath(elt->QTreeWidgetItem::parent());
- if(testFath!=father)
- if(elt->isChecked())
- elt->setChecked(false);
- }
- //If all leaves are checked the father is check too
- bool allItemsAreChked(true);
- for(int i=0;i<father->childCount() && allItemsAreChked;i++)
- {
- pqTreeWidgetItemObject *elt(dynamic_cast<pqTreeWidgetItemObject *>(father->child(i)));
- if(elt && !elt->isChecked())
- allItemsAreChked=false;
- }
- if(allItemsAreChked && !father->isChecked())
- father->setChecked(true);
- }
- else
- {
- // if all are unchecked - check it again
- bool allItemsAreUnChked(true);
- foreach(pqTreeWidgetItemObject* elt,this->_all_lev4)
- {
- if(elt && elt->isChecked())
- allItemsAreUnChked=false;
- }
- if(allItemsAreUnChked)
- zeItem->setChecked(true);// OK zeItem was required to be unchecked but as it is the last one. Recheck it !
- else
- {// if all items are uncheked inside a same parent - uncheck the parent
- allItemsAreUnChked=true;
- for(int i=0;i<father->childCount() && allItemsAreUnChked;i++)
- {
- pqTreeWidgetItemObject *elt(dynamic_cast<pqTreeWidgetItemObject *>(father->child(i)));
- if(elt && elt->isChecked())
- allItemsAreUnChked=false;
- }
- if(allItemsAreUnChked && father->isChecked())
- father->setChecked(false);
- }
+ vtkGraph *sil(info->GetSIL());
+ if(sil)
+ {
+ this->UI->SILModel.update(sil);
+ this->UI->Fields->expandAll();
+ info->Delete();
+ }
}
}
pqExtractGroupPanel(pqProxy* proxy, QWidget* p = NULL);
~pqExtractGroupPanel();
protected slots:
- void aLev4HasBeenFired();
void updateSIL();
private:
static std::map<std::string,int> DeduceMapOfFamilyFromSIL(vtkMutableDirectedGraph *graph);
virtual void linkServerManagerProperties();
class pqUI;
pqUI* UI;
- std::vector<pqTreeWidgetItemObject *> _all_lev4;
};
#endif
SET_TESTS_PROPERTIES(testMEDReader11 PROPERTIES ENVIRONMENT "${tests_env}")
ADD_TEST(testMEDReader12 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/testMEDReader12.py)
SET_TESTS_PROPERTIES(testMEDReader12 PROPERTIES ENVIRONMENT "${tests_env}")
+ADD_TEST(testMEDReader13 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/testMEDReader13.py)
+SET_TESTS_PROPERTIES(testMEDReader13 PROPERTIES ENVIRONMENT "${tests_env}")
DataRepresentation1.Representation = 'Wireframe'
DataRepresentation1.ScalarOpacityFunction = a1_ENTHALPIE_PiecewiseFunction
-DataRepresentation1.ColorArrayName = ('CELL_DATA', 'ENTHALPIE')
+DataRepresentation1.ColorArrayName = ('CELLS', 'ENTHALPIE')
DataRepresentation1.LookupTable = a1_ENTHALPIE_PVLookupTable
-DataRepresentation1.ColorAttributeType = 'CELL_DATA'
testMEDReader11_med = MEDReader( FileName=fname )
a1_VITESSEX_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.0, 0.0, 0.5, 0.0, 1e-16, 1.0, 0.5, 0.0] )
DataRepresentation2.ScalarOpacityFunction = a1_VITESSEX_PiecewiseFunction
-DataRepresentation2.ColorArrayName = ('CELL_DATA', 'VITESSE X')
+DataRepresentation2.ColorArrayName = ('CELLS', 'VITESSE X')
DataRepresentation2.LookupTable = a1_VITESSEX_PVLookupTable
-DataRepresentation2.ColorAttributeType = 'CELL_DATA'
a1_VITESSEX_PVLookupTable.RGBPoints = [-0.04176214531137861, 0.23, 0.299, 0.754, 0.35689831830849095, 0.865, 0.865, 0.865, 0.7555587819283606, 0.706, 0.016, 0.15]
a1_VITESSEX_PVLookupTable.ScalarOpacityFunction = a1_VITESSEX_PiecewiseFunction
a1_POROSITE_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.4734426322438599, 0.0, 0.5, 0.0, 0.5814307903048255, 1.0, 0.5, 0.0] )
DataRepresentation2.ScalarOpacityFunction = a1_POROSITE_PiecewiseFunction
-DataRepresentation2.ColorArrayName = ('CELL_DATA', 'POROSITE')
+DataRepresentation2.ColorArrayName = ('CELLS', 'POROSITE')
DataRepresentation2.LookupTable = a1_POROSITE_PVLookupTable
-DataRepresentation2.ColorAttributeType = 'CELL_DATA'
Render()
RenderView1.ViewSize =[300,300]
--- /dev/null
+# -*- coding: iso-8859-1 -*-
+# Copyright (C) 2007-2014 CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# Author : Anthony Geay
+
+from MEDLoader import *
+
+""" This test is non regression test to check non regression of EDF 8761. ELNO Mesh filter on vector field with 4 comps cut of using GenerateVectors"""
+
+fname="testMEDReader13.med"
+outImgName="testMEDReader13.png"
+#
+
+m=MEDCouplingUMesh("mesh",2)
+m.setCoords(DataArrayDouble([0.,0.,0.,1.,0.,0.,2.,0.,0.,1.,1.,0.],4,3))
+m.allocateCells()
+m.insertNextCell(NORM_TRI3,[0,1,3]) ; m.insertNextCell(NORM_TRI3,[1,2,3])
+f=MEDCouplingFieldDouble(ON_GAUSS_NE) ; f.setName("fieldELNO") ; f.setMesh(m)
+arr=DataArrayDouble([0.2,1.1,0.7,0.5,-0.3,0.4])
+f.setArray(DataArrayDouble.Meld(4*[arr]))
+f.checkCoherency()
+MEDLoader.WriteField(fname,f,True)
+
+################### MED write is done -> Go to MEDReader
+
+from paraview.simple import *
+
+testMEDReader13_med = MEDReader( FileName=fname )
+
+testMEDReader13_med.GenerateVectors = 1
+testMEDReader13_med.AllArrays = ['TS0/mesh/ComSup0/fieldELNO@@][@@GSSNE']
+
+RenderView1 = GetRenderView()
+RenderView1.CameraPosition = [1.0, 0.5, 10000.0]
+
+RenderView1.CameraPosition = [1.0, 0.5, 4.319751617610021]
+RenderView1.CameraClippingRange = [4.276554101433921, 4.384547891874171]
+
+ELNOMesh3 = ELNOMesh(Input=testMEDReader13_med)
+
+DataRepresentation2 = Show()
+#DataRepresentation2.ConstantRadius = 1.9999333620071411
+DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]
+#DataRepresentation2.PointSpriteDefaultsInitialized = 1
+DataRepresentation2.SelectionPointFieldDataArrayName = 'fieldELNO'
+DataRepresentation2.SelectionCellFieldDataArrayName = 'FamilyIdCell'
+#DataRepresentation2.SelectInputVectors = ['POINTS', 'fieldELNO_Vector']
+DataRepresentation2.ScalarOpacityUnitDistance = 1.7746382108908556
+DataRepresentation2.Texture = []
+DataRepresentation2.ExtractedBlockIndex = 1
+#DataRepresentation2.RadiusRange = [6.666666740784422e-05, 1.9999333620071411]
+DataRepresentation2.ScaleFactor = 0.19998666953397334
+
+#DataRepresentation2.RadiusRange = [6.66667e-05, 1.99993]
+DataRepresentation2.ColorArrayName = ('POINT_DATA', 'fieldELNO_Vector')
+
+a3_fieldELNO_Vector_PVLookupTable = GetLookupTableForArray( "fieldELNO_Vector", 3, RGBPoints=[0.3464101615137755, 0.23, 0.299, 0.754, 1.1258330249197703, 0.865, 0.865, 0.865, 1.9052558883257653, 0.706, 0.016, 0.15], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ColorSpace='Diverging', ScalarRangeInitialized=1.0 )
+
+a3_fieldELNO_Vector_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.3464101615137755, 0.0, 0.5, 0.0, 1.9052558883257653, 1.0, 0.5, 0.0] )
+
+Render()
+RenderView1.ViewSize =[300,300]
+WriteImage(outImgName)
a2_ACellField_PiecewiseFunction=CreatePiecewiseFunction( Points=[0.0, 0.0, 0.5, 0.0, 1.0, 1.0, 0.5, 0.0] )
a2_ACellField_PVLookupTable.ScalarOpacityFunction = a2_ACellField_PiecewiseFunction
DataRepresentation5.ScalarOpacityFunction = a2_ACellField_PiecewiseFunction
-DataRepresentation5.ColorArrayName = 'ACellField'
DataRepresentation5.LookupTable = a2_ACellField_PVLookupTable
-DataRepresentation5.ColorAttributeType = 'CELL_DATA'
+DataRepresentation5.ColorArrayName = ("CELLS", "ACellField")
RenderView1 = GetRenderView()
RenderView1.CenterOfRotation = [3.0, 3.0, 3.0]
testMEDReader4_med.AllArrays=['TS0/mesh/ComSup0/f0NoPfl@@][@@P1','TS0/mesh/ComSup0/mesh@@][@@P1']
#testMEDReader4_med.AllTimeSteps=['0000']
-Glyph1=Glyph(GlyphType="Sphere",GlyphTransform="Transform2" )
+Glyph1=Glyph(Input=testMEDReader4_med,GlyphType='Sphere')
Glyph1.Scalars=['POINTS','f0NoPfl']
-Glyph1.SetScaleFactor=0.3
+Glyph1.ScaleFactor=0.3
Glyph1.Vectors=['POINTS', '']
Glyph1.GlyphTransform="Transform2"
DataRepresentation2.ScalarOpacityUnitDistance = 1.5768745057161244
DataRepresentation2.ExtractedBlockIndex = 1
DataRepresentation2.ScaleFactor = 0.4
-DataRepresentation2.ColorArrayName='fNode'
+DataRepresentation2.ColorArrayName=('POINTS','fNode')
DataRepresentation2.LookupTable=LookupTable
-DataRepresentation2.ColorAttributeType='POINT_DATA'
RenderView1.ViewSize=[300,300]
Glyph1 = Glyph( Input=GaussPoints1, GlyphType="Sphere", GlyphTransform="Transform2" )
Glyph1.GlyphType = "Sphere"
Glyph1.Vectors = ['POINTS', '']
-Glyph1.SetScaleFactor = 0.29
+Glyph1.ScaleFactor = 0.29
RenderView1 = GetRenderView()
RenderView1.CameraFocalPoint = [1.5, 1.5, 0.0]
SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_var fieldCorba=SALOME_MED::MEDCouplingFieldDoubleCorbaInterface::_narrow(obj);
std::vector<double> times;
vtkDataSet *part=ParaMEDMEM2VTK::BuildFullyFilledFromMEDCouplingFieldDoubleInstance(fieldCorba,times);
- tmp->SetInputData(part);
+ tmp->AddInputData(part);
part->Delete();
}
+ tmp->Update();
vtkCompositeDataToUnstructuredGridFilter *tmp2=vtkCompositeDataToUnstructuredGridFilter::New();
tmp2->SetInputData(tmp->GetOutput());
tmp2->Update();
delete iorTab;
CORBA::release(objPara);
}
- // This vtkInformationRequestKey is no more present in PV4.2
- //myInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),this->TotalNumberOfPieces);
+ myInfo->Set(CAN_HANDLE_PIECE_REQUEST(), 1);
}
return 1;
}