anAction->setToolTip(tr("TOP_DELETE_ALL"));
anAction->setStatusTip(tr("STB_DELETE_ALL"));
registerAction(DeleteAllId, anAction);
- new pqDeleteReaction(anAction, true);
+ new pqDeleteReaction(anAction, pqDeleteReaction::DeleteModes::ALL);
// Setting
ArrayRenamer
JSONReader
DevelopedSurface
- StaticMesh
+ #StaticMesh
GaussToCell
VoroGauss
)
}
//--------------------------------------------------------------------------------------------------
-int vtkDifferenceTimestepsFilter::RequestData(vtkInformation* vtkNotUsed(theRequest),
+/*int vtkDifferenceTimestepsFilter::RequestData(vtkInformation* vtkNotUsed(theRequest),
vtkInformationVector** theInputVector, vtkInformationVector* theOutputVector)
{
// Get the information objects
}
return 1;
-}
+}*/
//--------------------------------------------------------------------------------------------------
vtkDataObject* vtkDifferenceTimestepsFilter::DifferenceDataObject(
int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
- int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
+ //int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
// Description:
// General computation differences routine for any type on input data. This
#include "vtkWarpScalar.h"
#include "vtkQuadratureSchemeDefinition.h"
#include "vtkInformationQuadratureSchemeDefinitionVectorKey.h"
-#include "vtkCompositeDataToUnstructuredGridFilter.h"
+#include "vtkMergeBlocks.h"
#include "vtkMultiBlockDataGroupFilter.h"
#include "MEDCouplingMemArray.hxx"
#include "vtkDataObjectTreeIterator.h"
#include "vtkThreshold.h"
#include "vtkMultiBlockDataGroupFilter.h"
-#include "vtkCompositeDataToUnstructuredGridFilter.h"
+#include "vtkMergeBlocks.h"
#include "vtkInformationDataObjectMetaDataKey.h"
#include <map>
//vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData()); // todo: unused
//
double vMin(insideOut==0?1.:0.),vMax(insideOut==0?2.:1.);
- thres->ThresholdBetween(vMin,vMax);
+ thres->SetUpperThreshold(vMax);
+ thres->SetLowerThreshold(vMin);
// OK for the output
//
CellPointExtractor cpe2(input);
#include <vtkCellData.h>
#include "vtkMutableDirectedGraph.h"
#include "vtkInformationDataObjectMetaDataKey.h"
-#include <vtkCompositeDataToUnstructuredGridFilter.h>
+#include <vtkMergeBlocks.h>
#include <vtkMultiBlockDataGroupFilter.h>
#include <vtkDoubleArray.h>
#include <vtkInformation.h>
#include <vtkCellData.h>
#include "vtkMutableDirectedGraph.h"
#include "vtkInformationDataObjectMetaDataKey.h"
-#include <vtkCompositeDataToUnstructuredGridFilter.h>
+#include <vtkMergeBlocks.h>
#include <vtkMultiBlockDataGroupFilter.h>
#include <vtkDoubleArray.h>
#include <vtkInformation.h>
#ifdef MEDREADER_USE_MPI
#include "vtkMultiProcessController.h"
-#include "vtkPUnstructuredGridGhostCellsGenerator.h"
+#include "vtkGhostCellsGenerator.h"
#endif
#include "MEDFileFieldRepresentationTree.hxx"
nbParts = vmpc->GetNumberOfProcesses();
if(this->Internal->GCGCP && nbParts>1)
{
- vtkSmartPointer<vtkPUnstructuredGridGhostCellsGenerator> gcg(vtkSmartPointer<vtkPUnstructuredGridGhostCellsGenerator>::New());
+ vtkSmartPointer<vtkGhostCellsGenerator> gcg(vtkSmartPointer<vtkGhostCellsGenerator>::New());
{
vtkDataSet *ret(RetrieveDataSetAtTime(reqTS,&ti));
gcg->SetInputData(ret);
ret->Delete();
}
- gcg->SetUseGlobalPointIds(true);
+ // To be checked
+ // gcg->SetUseGlobalPointIds(true);
gcg->SetBuildIfRequired(false);
gcg->Update();
output->SetBlock(0,gcg->GetOutput());
#DataRepresentation2.SelectInputVectors = ['POINTS', 'fieldELNO_Vector']
DataRepresentation2.ScalarOpacityUnitDistance = 1.7746382108908556
DataRepresentation2.Texture = []
- DataRepresentation2.ExtractedBlockIndex = 1
+ #DataRepresentation2.ExtractedBlockIndex = 1
#DataRepresentation2.RadiusRange = [6.666666740784422e-05, 1.9999333620071411]
DataRepresentation2.ScaleFactor = 0.19998666953397334
def test(baseline_file):
fname = GenerateCase()
################### MED write is done -> Go to MEDReader
- testMEDReader1=MEDReader(FileName=fname)
+ testMEDReader1=MEDReader(FileName=fname,registrationName='testMEDReader2.med')
testMEDReader1.AllArrays=['TS0/mesh/ComSup0/ACellField@@][@@P0']
- testMEDReader2=MEDReader(FileName=fname)
+ testMEDReader2=MEDReader(FileName=fname,registrationName='testMEDReader2_bis.med')
testMEDReader2.AllArrays=['TS0/mesh/ComSup1/mesh@@][@@P0']
GroupDatasets1=GroupDatasets(Input=[testMEDReader1,testMEDReader2])
+ #GroupDatasets1.BlockNames = ['testMEDReader2.med', 'testMEDReader2_bis.med']
Clip1 = Clip(ClipType="Plane",Input=GroupDatasets1)
Clip1.Scalars=['FamilyIdCell']
DataRepresentation4.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation4.SelectionCellFieldDataArrayName = 'ACellField'
DataRepresentation4.ScalarOpacityUnitDistance = 1.61104723630366
- DataRepresentation4.ExtractedBlockIndex = 2
+ DataRepresentation4.BlockSelectors = ['/Root']
DataRepresentation4.ScaleFactor = 0.6000000000000001
DataRepresentation4.Visibility = 1
DataRepresentation4.Representation = 'Wireframe'
-
ExtractBlock1 = ExtractBlock(Input=Clip1)
- ExtractBlock1.BlockIndices=[1, 2]
+ ExtractBlock1.Selectors = ['/Root/testMEDReader2med']
DataRepresentation5 = Show()
DataRepresentation5.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation2.SelectionPointFieldDataArrayName='ANodeField'
DataRepresentation2.SelectionCellFieldDataArrayName='FamilyIdCell'
DataRepresentation2.ScalarOpacityUnitDistance=1.4142135623730951
- DataRepresentation2.ExtractedBlockIndex=1
+ #DataRepresentation2.ExtractedBlockIndex=1
DataRepresentation2.ScaleFactor=0.1
a1_ANodeField_PVLookupTable=GetLookupTableForArray("ANodeField",1,RGBPoints=[0.0,0.23,0.299,0.754,4.0,0.706,0.016,0.15],VectorMode='Magnitude',NanColor=[0.25,0.0,0.0],
#include "vtkUnstructuredGrid.h"
#include "vtkMultiBlockDataSet.h"
#include "vtkMultiBlockDataGroupFilter.h"
-#include "vtkCompositeDataToUnstructuredGridFilter.h"
+#include "vtkMergeBlocks.h"
std::vector<double> ParaMEDMEM2VTK::FillMEDCouplingParaFieldDoubleInstanceFrom(SALOME_MED::ParaMEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr, int begin, int end,
vtkMultiBlockDataSet *ret)
part->Delete();
}
tmp->Update();
- vtkCompositeDataToUnstructuredGridFilter *tmp2=vtkCompositeDataToUnstructuredGridFilter::New();
+ vtkMergeBlocks *tmp2=vtkMergeBlocks::New();
tmp2->SetInputData(tmp->GetOutput());
tmp2->Update();
//
- vtkUnstructuredGrid *ret3=tmp2->GetOutput();
+ vtkUnstructuredGrid *ret3=static_cast<vtkUnstructuredGrid*>(tmp2->GetOutput());
ret->SetBlock(0,ret3);
//
tmp->Delete();
#include <vtkAlgorithmOutput.h>
#include <vtkCellData.h>
#include <vtkCharArray.h>
-#include <vtkCompositeDataToUnstructuredGridFilter.h>
+#include <vtkMergeBlocks.h>
#include <vtkDataArraySelection.h>
#include <vtkDataObjectTreeIterator.h>
#include <vtkDataSet.h>
#include <vtkNew.h>
#include <vtkPlaneCutter.h>
#include <vtkSmartPointer.h>
+#include <vtkUnstructuredGrid.h>
#include <vector>
#include "vtkWarpScalar.h"
#include "vtkQuadratureSchemeDefinition.h"
#include "vtkInformationQuadratureSchemeDefinitionVectorKey.h"
-#include "vtkCompositeDataToUnstructuredGridFilter.h"
+#include "vtkMergeBlocks.h"
#include "vtkMultiBlockDataGroupFilter.h"
#include "MEDCouplingMemArray.hxx"
if(res.empty())
throw INTERP_KERNEL::Exception("Dataset is empty !");
vtkSmartPointer<vtkMultiBlockDataGroupFilter> mb(vtkSmartPointer<vtkMultiBlockDataGroupFilter>::New());
- vtkSmartPointer<vtkCompositeDataToUnstructuredGridFilter> cd(vtkSmartPointer<vtkCompositeDataToUnstructuredGridFilter>::New());
+ vtkSmartPointer<vtkMergeBlocks> cd(vtkSmartPointer<vtkMergeBlocks>::New());
for(std::vector< vtkSmartPointer<vtkUnstructuredGrid> >::const_iterator it=res.begin();it!=res.end();it++)
mb->AddInputData(*it);
cd->SetInputConnection(mb->GetOutputPort());
cd->SetMergePoints(0);
cd->Update();
vtkSmartPointer<vtkUnstructuredGrid> ret;
- ret=cd->GetOutput();
+ ret=static_cast<vtkUnstructuredGrid*>(cd->GetOutput());
return ret;
}