X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_PreVisualObj.cxx;h=209a52f647077c9538841bd42b436d1329424d1b;hb=0fc0831670e27a5611b941c52dc152fd63964515;hp=8107a117b204bc28a671c63ac81dfd68aae310d8;hpb=193c49c87753b6ccabb2b5e6dc935aa480d2d43e;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx b/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx index 8107a117b..209a52f64 100644 --- a/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx +++ b/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -22,12 +22,17 @@ #include "SMESHGUI_PreVisualObj.h" -#include +#include #include SMESHGUI_PreVisualObj::SMESHGUI_PreVisualObj() { - myMesh = new SMDS_Mesh(); + myMesh = new SMESHDS_Mesh(0,true); +} + +SMDS_Mesh* SMESHGUI_PreVisualObj::GetMesh() const +{ + return myMesh; } bool SMESHGUI_PreVisualObj::Update( int theIsClear = true ) @@ -98,7 +103,7 @@ bool SMESHGUI_PreVisualObj::IsValid() const vtkUnstructuredGrid* SMESHGUI_PreVisualObj::GetUnstructuredGrid() { - return myMesh->getGrid(); + return myMesh->GetGrid(); } @@ -116,13 +121,13 @@ vtkIdType SMESHGUI_PreVisualObj::GetNodeVTKId( int theObjID ) vtkIdType SMESHGUI_PreVisualObj::GetElemObjId( int theVTKID ) { - return this->GetMesh()->fromVtkToSmds(theVTKID); + return this->GetMesh()->FromVtkToSmds(theVTKID); } vtkIdType SMESHGUI_PreVisualObj::GetElemVTKId( int theObjID ) { const SMDS_MeshElement* e = myMesh->FindElement(theObjID); - return e ? e->getVtkId() : -1; + return e ? e->GetVtkID() : -1; } void SMESHGUI_PreVisualObj::ClearEntitiesFlags()