Salome HOME
[test] Adding test on geometry for VoroGaus plugin
[modules/paravis.git] / src / Plugins / MEDReader / plugin / MEDReaderIO / vtkExtractCellType.cxx
index af4d2465d3b0a4cc77cf0e2dfa8ec9fc0c681c10..310de97b06e31d52909a6472a59ec2f051516809 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -23,7 +23,7 @@
 #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:
@@ -216,7 +217,7 @@ bool vtkExtractCellType::vtkExtractCellTypeInternal::getStatusOfEntryStr(const c
       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;
@@ -230,7 +231,7 @@ void vtkExtractCellType::vtkExtractCellTypeInternal::setStatusOfEntryStr(const c
       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;
     }
@@ -267,10 +268,11 @@ void ExtractCellTypeStatus::feedSIL(vtkMutableDirectedGraph *sil, vtkIdType root
 {
   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
 
 ////////////////////
 
@@ -294,7 +296,7 @@ void vtkExtractCellType::SetInsideOut(int val)
     }
 }
 
-int vtkExtractCellType::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   try
     {
@@ -369,14 +371,14 @@ int vtkExtractCellType::RequestInformation(vtkInformation *request, vtkInformati
 
 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);
@@ -414,14 +416,14 @@ vtkDataSet *FilterFamilies(vtkDataSet *input, const std::vector<int>& idsToKeep,
   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());