From: sln Date: Fri, 22 Jun 2012 11:54:25 +0000 (+0000) Subject: Debian 6 compilation X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=45768e09fd8bb695b9940749e357ae716b239878;p=modules%2Fgui.git Debian 6 compilation --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 73d7ef787..d70e80840 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -31,6 +31,8 @@ #include #include +#include + #ifdef WIN32 #include #else diff --git a/src/CAM/Makefile.am b/src/CAM/Makefile.am index 3b80df3f8..44283644a 100755 --- a/src/CAM/Makefile.am +++ b/src/CAM/Makefile.am @@ -49,7 +49,7 @@ nodist_libCAM_la_SOURCES = $(MOC_FILES) nodist_salomeres_DATA = \ CAM_msg_en.qm \ - CAM_msg_en.qm + CAM_msg_fr.qm libCAM_la_CPPFLAGS = $(QT_INCLUDES) -I$(srcdir)/../SUIT -I$(srcdir)/../STD -I$(srcdir)/../Qtx libCAM_la_LDFLAGS = $(QT_MT_LIBS) diff --git a/src/Qtx/QtxMultiAction.cxx b/src/Qtx/QtxMultiAction.cxx index c46689ffb..903e11798 100644 --- a/src/Qtx/QtxMultiAction.cxx +++ b/src/Qtx/QtxMultiAction.cxx @@ -84,7 +84,7 @@ protected: { QHelpEvent* help = static_cast( e ); QWidget* w = QApplication::widgetAt( help->globalPos() ); - if ( w && Qtx::isParent( w, this ) ) + if ( w && w != this && Qtx::isParent( w, this ) ) { QHelpEvent he( help->type(), w->mapFromGlobal( help->globalPos() ), help->globalPos() ); QApplication::sendEvent( w, &he ); diff --git a/src/Qtx/QtxSplash.cxx b/src/Qtx/QtxSplash.cxx index 044d8fe88..3fb5bbb0f 100644 --- a/src/Qtx/QtxSplash.cxx +++ b/src/Qtx/QtxSplash.cxx @@ -28,6 +28,8 @@ #include #include +#include + /*! \class ProgressEvent \internal diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 5ad12139c..e7849756a 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -38,6 +38,8 @@ #include #include +#include + /*! \class QtxWorkstackArea::WidgetEvent \internal diff --git a/src/SUIT/SUIT_DataObject.cxx b/src/SUIT/SUIT_DataObject.cxx index bb64cafa4..ebd6c74b4 100755 --- a/src/SUIT/SUIT_DataObject.cxx +++ b/src/SUIT/SUIT_DataObject.cxx @@ -23,6 +23,8 @@ #include "SUIT_DataObject.h" #include "SUIT_DataObjectKey.h" +#include + SUIT_DataObject::Signal* SUIT_DataObject::mySignal = 0; /*! diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 589dee0aa..9583cc3f2 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -163,6 +163,7 @@ SALOME_Actor ::SALOME_Actor(): myRenderer(NULL), myInteractor(NULL), + myPrehighlightedCellId(-1), mySelectionMode(ActorSelection), myPreHighlightActor(SVTK_Actor::New()), myHighlightActor(SVTK_Actor::New()), @@ -448,6 +449,7 @@ SALOME_Actor SVTK_SelectionEvent* theSelectionEvent, bool theIsHighlight) { + myPrehighlightedCellId = -1; if ( !GetPickable() ) return false; @@ -517,6 +519,7 @@ SALOME_Actor if ( anObjId >= 0 ) { myIsPreselected = CheckDimensionId(aSelectionMode,this,anObjId); if(myIsPreselected){ + myPrehighlightedCellId = anObjId; const TColStd_IndexedMapOfInteger& aMapIndex = myPreHighlightActor->GetMapIndex(); int anExtent = aMapIndex.Extent(); anIsChanged |= (anExtent == 0 || anExtent > 0 && anObjId != aMapIndex(1)); @@ -594,6 +597,16 @@ SALOME_Actor return anIsChanged; } +/*! + Returns id of the prehighlighted cell (-1 if no cell is highlighted) +*/ +int +SALOME_Actor +::GetPrehighlightedCellId() const +{ + return myPrehighlightedCellId; +} + /*! To process highlight (called from SVTK_InteractorStyle) */ diff --git a/src/SVTK/SALOME_Actor.h b/src/SVTK/SALOME_Actor.h index e51d4eb43..8c635f5f4 100644 --- a/src/SVTK/SALOME_Actor.h +++ b/src/SVTK/SALOME_Actor.h @@ -171,6 +171,11 @@ class SVTK_EXPORT SALOME_Actor : public VTKViewer_Actor SVTK_SelectionEvent* theSelectionEvent, bool theIsHighlight); + //! Returns id of the prehighlighted cell (-1 if no cell is highlighted) + virtual + int + GetPrehighlightedCellId() const; + //! To process highlight (called from #SVTK_InteractorStyle) virtual bool @@ -214,6 +219,8 @@ class SVTK_EXPORT SALOME_Actor : public VTKViewer_Actor Handle(SALOME_InteractiveObject) myIO; + int myPrehighlightedCellId; + SALOME_Actor(); ~SALOME_Actor(); diff --git a/src/SVTK/SVTK_Actor.cxx b/src/SVTK/SVTK_Actor.cxx index 11bfa36c0..400067055 100644 --- a/src/SVTK/SVTK_Actor.cxx +++ b/src/SVTK/SVTK_Actor.cxx @@ -144,7 +144,7 @@ SVTK_Actor int aPartId = theMapIndex( i+1 ); if(vtkFloatingPointType* aCoord = theMapActor->GetNodeCoord(aPartId)){ aPoints->SetPoint(i,aCoord); - myUnstructuredGrid->InsertNextCell(VTK_VERTEX,1,&i); + myUnstructuredGrid->InsertNextCell(VTK_VERTEX,1,(vtkIdType*)&i); } } myUnstructuredGrid->SetPoints(aPoints); diff --git a/src/SVTK/SVTK_Renderer.cxx b/src/SVTK/SVTK_Renderer.cxx index cab5ca695..c2fd4ea62 100644 --- a/src/SVTK/SVTK_Renderer.cxx +++ b/src/SVTK/SVTK_Renderer.cxx @@ -37,25 +37,26 @@ #include "VTKViewer_Transform.h" #include "VTKViewer_Utilities.h" -#include -#include -#include -#include +#include #include - +#include +#include +#include +#include #include #include -#include - #include +#include +#include +#include // undefining min and max because CASCADE's defines them and // it clashes with std::min(), std::max() included in utilities.h #undef min #undef max - vtkStandardNewMacro(SVTK_Renderer); +vtkStandardNewMacro(SVTK_CellPicker); /*! Constructor @@ -67,7 +68,7 @@ SVTK_Renderer myPriority(0.0), myEventCallbackCommand(vtkCallbackCommand::New()), myPointPicker(vtkPointPicker::New()), - myCellPicker(vtkCellPicker::New()), + myCellPicker(SVTK_CellPicker::New()), myPointRectPicker(SVTK_RectPicker::New()), myCellRectPicker(SVTK_RectPicker::New()), myPreHighlightProperty(vtkProperty::New()), @@ -751,3 +752,108 @@ SVTK_Renderer aCamera->SetFocalPoint(0,0,0); this->OnFitAll(); } + +/*! + SVTK_CellPicker constructor +*/ +SVTK_CellPicker::SVTK_CellPicker() +{ + this->Cell = vtkGenericCell::New(); +} + +/*! + SVTK_CellPicker destructor +*/ +SVTK_CellPicker::~SVTK_CellPicker() +{ + this->Cell->Delete(); +} + +/*! + Redefined virtual method of the vtkCellPicker class +*/ +double SVTK_CellPicker::IntersectWithLine(double p1[3], double p2[3], double tol, + vtkAssemblyPath *path, + vtkProp3D *prop3D, + vtkAbstractMapper3D *m) +{ + vtkIdType numCells, cellId, minCellId; + int i, minSubId, subId; + double x[3], tMin, t, pcoords[3], minXYZ[3], minPcoords[3]; + vtkDataSet *input; + vtkMapper *mapper; + vtkAbstractVolumeMapper *volumeMapper; + + // Get the underlying dataset + if ( (mapper=vtkMapper::SafeDownCast(m)) != NULL ) + { + input = mapper->GetInput(); + } + else if ( (volumeMapper=vtkAbstractVolumeMapper::SafeDownCast(m)) != NULL ) + { + input = volumeMapper->GetDataSetInput(); + } + else + { + return VTK_DOUBLE_MAX; + } + + if ( (numCells = input->GetNumberOfCells()) < 1 ) + { + return 2.0; + } + + // Intersect each cell with ray. Keep track of one closest to + // the eye (within the tolerance tol) and within the clipping range). + // Note that we fudge the "closest to" (tMin+this->Tolerance) a little and + // keep track of the cell with the best pick based on parametric + // coordinate (pick the minimum, maximum parametric distance). This + // breaks ties in a reasonable way when cells are the same distance + // from the eye (like cells lying on a 2D plane). + // + minCellId = -1; + minSubId = -1; + pcoords[0] = pcoords[1] = pcoords[2] = 0; + double pDistMin=VTK_DOUBLE_MAX, pDist; + for (tMin=VTK_DOUBLE_MAX,cellId=0; cellIdGetCell(cellId, this->Cell); + + if ( this->Cell->IntersectWithLine(p1, p2, tol, t, x, pcoords, subId) + && t <= (tMin+this->Tolerance) ) + { + pDist = this->Cell->GetParametricDistance(pcoords); + // This is the only difference of this method from the vtkCellPicker's one + static double aTolerance = 1E-7; + //if ( pDist < pDistMin || (pDist == pDistMin && t < tMin ) ) + if ( pDist < pDistMin || (pDist == pDistMin && t < tMin + aTolerance ) ) + { + minCellId = cellId; + minSubId = subId; + for (i=0; i<3; i++) + { + minXYZ[i] = x[i]; + minPcoords[i] = pcoords[i]; + } + tMin = t; + pDistMin = pDist; +// cout << "cell id: " << minCellId << "\n"; + }//if minimum, maximum + }//if a close cell + }//for all cells + + // Now compare this against other actors. + // + if ( minCellId>(-1) && tMin < this->GlobalTMin ) + { + this->MarkPicked(path, prop3D, m, tMin, minXYZ); + this->CellId = minCellId; + this->SubId = minSubId; + for (i=0; i<3; i++) + { + this->PCoords[i] = minPcoords[i]; + } + vtkDebugMacro("Picked cell id= " << minCellId); + } + return tMin; +} diff --git a/src/SVTK/SVTK_Renderer.h b/src/SVTK/SVTK_Renderer.h index 8dbd981b2..1b08d5965 100644 --- a/src/SVTK/SVTK_Renderer.h +++ b/src/SVTK/SVTK_Renderer.h @@ -34,6 +34,7 @@ #include #include +#include class vtkRenderer; class vtkCallbackCommand; @@ -41,7 +42,6 @@ class vtkRenderWindowInteractor; class vtkPicker; class vtkPointPicker; -class vtkCellPicker; class vtkProperty; class SVTK_RectPicker; @@ -51,6 +51,7 @@ class VTKViewer_Transform; class SVTK_CubeAxesActor2D; class VTKViewer_Actor; class SVTK_Selector; +class SVTK_CellPicker; #ifdef WIN32 #pragma warning ( disable:4251 ) @@ -236,7 +237,7 @@ class SVTK_EXPORT SVTK_Renderer : public vtkObject //---------------------------------------------------------------------------- // Highlight/ Prehighlight devices vtkSmartPointer myPointPicker; - vtkSmartPointer myCellPicker; + vtkSmartPointer myCellPicker; vtkSmartPointer myPointRectPicker; vtkSmartPointer myCellRectPicker; @@ -252,6 +253,33 @@ class SVTK_EXPORT SVTK_Renderer : public vtkObject vtkFloatingPointType myBndBox[6]; }; +/*! + \class SVTK_CellPicker + The class is intended to redefine the IntersectWithLine() + to correct the mechanism of picking coincident cells +*/ +class SVTK_CellPicker : public vtkCellPicker +{ +public: + static SVTK_CellPicker* New(); + vtkTypeMacro(SVTK_CellPicker,vtkCellPicker); + +protected: + SVTK_CellPicker(); + ~SVTK_CellPicker(); + + virtual double IntersectWithLine(double p1[3], double p2[3], double tol, + vtkAssemblyPath *path, vtkProp3D *p, + vtkAbstractMapper3D *m); + +private: + vtkGenericCell *Cell; //used to accelerate picking + +private: + SVTK_CellPicker(const SVTK_CellPicker&); // Not implemented. + void operator=(const SVTK_CellPicker&); // Not implemented. +}; + #ifdef WIN32 //#pragma warning ( default:4251 ) #endif diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index 630b7870a..cd83d7505 100755 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -350,7 +350,7 @@ VTKViewer_GeometryFilter { for ( i=0; i < numFacePts; i++) aNewPts[i] = pts[faceVerts[i]]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -375,7 +375,7 @@ VTKViewer_GeometryFilter { for ( i=0; i < numFacePts; i++) aNewPts[i] = pts[faceVerts[PixelConvert[i]]]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -400,7 +400,7 @@ VTKViewer_GeometryFilter { for ( i=0; i < numFacePts; i++) aNewPts[i] = pts[faceVerts[i]]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -430,7 +430,7 @@ VTKViewer_GeometryFilter { for ( i=0; i < numFacePts; i++) aNewPts[i] = pts[faceVerts[i]]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -460,7 +460,7 @@ VTKViewer_GeometryFilter { for ( i=0; i < numFacePts; i++) aNewPts[i] = pts[faceVerts[i]]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -489,7 +489,7 @@ VTKViewer_GeometryFilter for (i=0; i < pts->GetNumberOfIds(); i+=2) { aNewPts[0] = pts->GetId(i); aNewPts[1] = pts->GetId(i+1); - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -503,7 +503,7 @@ VTKViewer_GeometryFilter aNewPts[0] = pts->GetId(i); aNewPts[1] = pts->GetId(i+1); aNewPts[2] = pts->GetId(i+2); - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -522,7 +522,7 @@ VTKViewer_GeometryFilter aNewPts[0] = pts->GetId(i); aNewPts[1] = pts->GetId(i+1); aNewPts[2] = pts->GetId(i+2); - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -544,7 +544,7 @@ VTKViewer_GeometryFilter aNewPts[2] = pts[1]; aNewPts[1] = pts[2]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -562,7 +562,7 @@ VTKViewer_GeometryFilter aNewPts[4] = pts[2]; aNewPts[5] = pts[5]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -582,7 +582,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[3]; aNewPts[7] = pts[7]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -601,7 +601,7 @@ VTKViewer_GeometryFilter aNewPts[4] = pts[2]; aNewPts[5] = pts[6]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -615,7 +615,7 @@ VTKViewer_GeometryFilter aNewPts[4] = pts[1]; aNewPts[5] = pts[4]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -629,7 +629,7 @@ VTKViewer_GeometryFilter aNewPts[4] = pts[2]; aNewPts[5] = pts[5]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -643,7 +643,7 @@ VTKViewer_GeometryFilter aNewPts[4] = pts[0]; aNewPts[5] = pts[6]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -662,7 +662,7 @@ VTKViewer_GeometryFilter aNewPts[3] = pts[7]; aNewPts[4] = pts[2]; aNewPts[5] = pts[8]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -675,7 +675,7 @@ VTKViewer_GeometryFilter aNewPts[3] = pts[10]; aNewPts[4] = pts[5]; aNewPts[5] = pts[11]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -691,7 +691,7 @@ VTKViewer_GeometryFilter aNewPts[5] = pts[11]; aNewPts[6] = pts[3]; aNewPts[7] = pts[12]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -706,7 +706,7 @@ VTKViewer_GeometryFilter aNewPts[5] = pts[14]; aNewPts[6] = pts[2]; aNewPts[7] = pts[7]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -721,7 +721,7 @@ VTKViewer_GeometryFilter aNewPts[5] = pts[13]; aNewPts[6] = pts[1]; aNewPts[7] = pts[6]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); outputCD->CopyData(cd,cellId,newCellId); @@ -741,7 +741,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[4]; aNewPts[7] = pts[16]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -757,7 +757,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[5]; aNewPts[7] = pts[17]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -773,7 +773,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[6]; aNewPts[7] = pts[18]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -789,7 +789,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[7]; aNewPts[7] = pts[19]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -805,7 +805,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[3]; aNewPts[7] = pts[11]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId); @@ -821,7 +821,7 @@ VTKViewer_GeometryFilter aNewPts[6] = pts[7]; aNewPts[7] = pts[15]; - newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts); + newCellId = output->InsertNextCell(aCellType,numFacePts,(vtkIdType*)aNewPts); if(myStoreMapping) myVTK2ObjIds.push_back(cellId);