theName = "";
- TColStd_IndexedMapOfInteger aMapIndex;
+ SVTK_TIndexedMapOfVtkId aMapIndex;
theSelector->GetIndex(theIO,aMapIndex);
typedef std::set<int> TIdContainer;
- std::set<int> anIdContainer;
+ std::set<vtkIdType> anIdContainer;
- for( int i = 1; i <= aMapIndex.Extent(); i++)
+ for( vtkIdType i = 1; i <= aMapIndex.Extent(); i++)
anIdContainer.insert(aMapIndex(i));
- std::set<int>::const_iterator anIter = anIdContainer.begin();
+ std::set<vtkIdType>::const_iterator anIter = anIdContainer.begin();
for( ; anIter != anIdContainer.end(); anIter++)
theName += QString(" %1").arg(*anIter);
#include "vtkCellArray.h"
#include "vtkPolyData.h"
-#include <VTKViewer_CellLocationsArray.h>
+//#include <VTKViewer_CellLocationsArray.h>
#include <SVTK_ViewModel.h>
#include "HEXABLOCKGUI_Trace.hxx"
// 0 1 3 2 4 5 7 6
// Insert cells in grid
- VTKViewer_CellLocationsArray* aCellLocationsArray = VTKViewer_CellLocationsArray::New();
+ vtkIdTypeArray* aCellLocationsArray = vtkIdTypeArray::New();
aCellLocationsArray->SetNumberOfComponents( 1 );
aCellLocationsArray->SetNumberOfTuples( aNbCells );
// std::cout << "aNbCells =>" << aNbCells << std::endl;
// 0 1 3 2 4 5 7 6
// Insert cells in grid
- VTKViewer_CellLocationsArray* aCellLocationsArray = VTKViewer_CellLocationsArray::New();
+ vtkIdTypeArray* aCellLocationsArray = vtkIdTypeArray::New();
aCellLocationsArray->SetNumberOfComponents( 1 );
aCellLocationsArray->SetNumberOfTuples( aNbCells );
// std::cout << "aNbCells =>" << aNbCells << std::endl;
// viewWindow->SetSelectionMode(VolumeSelection);
// --- elements highlight ---
- TColStd_IndexedMapOfInteger aMap;
- int vtkElemsId;
+ SVTK_TIndexedMapOfVtkId aMap;
+ vtkIdType vtkElemsId;
QString eltEntry;
foreach( const QModelIndex& iElt, elts ){
case VertexNode: viewWindow->SetSelectionMode(NodeSelection); break;
}
- TColStd_MapOfInteger aMap;
- int vtkElemsId;
+ SVTK_TVtkIDsMap aMap;
+ vtkIdType vtkElemsId;
QString eltEntry;
foreach( const QModelIndex& iElt, iElements ){
// Set selection mode in VTK view
viewWindow->SetSelectionMode(EdgeSelection);
- TColStd_MapOfInteger aMap;
- int vtkElemsId;
+ SVTK_TVtkIDsMap aMap;
+ vtkIdType vtkElemsId;
QString edgeEntry;
foreach( const QModelIndex& iEdge, iEdges ){