-// Copyright (C) 2010-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2010-2021 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
#include "MEDFileFieldOverView.hxx"
#include "vtkAdjacentVertexIterator.h"
-#include "vtkDataArrayTemplate.h"
+#include "vtkAOSDataArrayTemplate.h"
#include "vtkIntArray.h"
#include "vtkCellData.h"
#include "vtkPointData.h"
#include <map>
#include <deque>
-vtkStandardNewMacro(vtkExtractCellType);
+vtkStandardNewMacro(vtkExtractCellType)
-vtkCxxSetObjectMacro(vtkExtractCellType, SIL, vtkMutableDirectedGraph);
+vtkCxxSetObjectMacro(vtkExtractCellType, SIL, vtkMutableDirectedGraph)
///////////////////
+/// \cond PRIVATE
class ExtractCellTypeStatus
{
public:
const ExtractCellTypeStatus& elt(getEntry(entry));
return elt.getStatus();
}
- catch (INTERP_KERNEL::Exception e)
+ catch (INTERP_KERNEL::Exception& /*e*/)
{
//std::cerr << vtkDebugMacro"Exception has been thrown in vtkExtractCellType::vtkExtractCellTypeInternal::getStatusOfEntryStr : " << e.what() << std::endl;
return false;
const ExtractCellTypeStatus& elt(getEntry(entry));
elt.setStatus(status);
}
- catch (INTERP_KERNEL::Exception e)
+ catch (INTERP_KERNEL::Exception& /*e*/)
{
//std::cerr << "Exception has been thrown in vtkExtractCellType::vtkExtractCellTypeInternal::setStatusOfEntryStr : " << e.what() << std::endl;
}
{
vtkIdType InfoGeoType(sil->AddChild(root,childEdge));
names.push_back(_type_str);
- vtkIdType InfoVTKID(sil->AddChild(InfoGeoType,childEdge));
+ /*vtkIdType InfoVTKID(*/sil->AddChild(InfoGeoType,childEdge)/*)*/; // todo: unused
std::ostringstream oss; oss << _vtkt;
names.push_back(oss.str());
}
+/// \endcond PRIVATE
////////////////////
}
}
-int vtkExtractCellType::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
try
{
vtkDataSet *FilterFamilies(vtkDataSet *input, const std::vector<int>& idsToKeep, bool insideOut)
{
- const int VTK_DATA_ARRAY_DELETE=vtkDataArrayTemplate<double>::VTK_DATA_ARRAY_DELETE;
+ const int VTK_DATA_ARRAY_DELETE=vtkAOSDataArrayTemplate<double>::VTK_DATA_ARRAY_DELETE;
const char ZE_SELECTION_ARR_NAME[]="@@ZeSelection@@";
vtkDataSet *output(input->NewInstance());
output->ShallowCopy(input);
vtkSmartPointer<vtkThreshold> thres(vtkSmartPointer<vtkThreshold>::New());
thres->SetInputData(output);
- vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData());
- vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData());
+ //vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData()); // todo: unused
+ //vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData()); // todo: unused
//
double vMin(insideOut==0?1.:0.),vMax(insideOut==0?2.:1.);
thres->ThresholdBetween(vMin,vMax);
return zeComputedOutput;
}
-int vtkExtractCellType::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
try
{
//std::cerr << "########################################## vtkExtractCellType::RequestData ##########################################" << std::endl;
vtkInformation* inputInfo=inputVector[0]->GetInformationObject(0);
vtkDataSet *input(vtkDataSet::SafeDownCast(inputInfo->Get(vtkDataObject::DATA_OBJECT())));
- vtkInformation *info(input->GetInformation());
+ //vtkInformation *info(input->GetInformation()); // todo: unused
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkDataSet *output(vtkDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
std::vector<int> idsToKeep(this->Internal->getIdsToKeep());