Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oubli
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_PreVisualObj.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
b/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
index 5b350d06e62ac0436bf3934e84ca7f4441776778..6f329dd130f88494bdf9d45b3acd7e5dc2b24a21 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
+++ b/
src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
20
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
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-22,15
+22,20
@@
#include "SMESHGUI_PreVisualObj.h"
#include "SMESHGUI_PreVisualObj.h"
-#include <SMDS_Mesh.hxx>
+#include <SM
ESH
DS_Mesh.hxx>
#include <SMESH_Actor.h>
SMESHGUI_PreVisualObj::SMESHGUI_PreVisualObj()
{
#include <SMESH_Actor.h>
SMESHGUI_PreVisualObj::SMESHGUI_PreVisualObj()
{
- myMesh = new SM
DS_Mesh(
);
+ myMesh = new SM
ESHDS_Mesh(0,true
);
}
}
-bool SMESHGUI_PreVisualObj::Update( int theIsClear = true )
+SMDS_Mesh* SMESHGUI_PreVisualObj::GetMesh() const
+{
+ return myMesh;
+}
+
+bool SMESHGUI_PreVisualObj::Update( int /*theIsClear*/)
{
return false;
}
{
return false;
}
@@
-98,7
+103,7
@@
bool SMESHGUI_PreVisualObj::IsValid() const
vtkUnstructuredGrid* SMESHGUI_PreVisualObj::GetUnstructuredGrid()
{
vtkUnstructuredGrid* SMESHGUI_PreVisualObj::GetUnstructuredGrid()
{
- return myMesh->
g
etGrid();
+ return myMesh->
G
etGrid();
}
}
@@
-116,13
+121,13
@@
vtkIdType SMESHGUI_PreVisualObj::GetNodeVTKId( int theObjID )
vtkIdType SMESHGUI_PreVisualObj::GetElemObjId( int theVTKID )
{
vtkIdType SMESHGUI_PreVisualObj::GetElemObjId( int theVTKID )
{
- return this->GetMesh()->
f
romVtkToSmds(theVTKID);
+ return this->GetMesh()->
F
romVtkToSmds(theVTKID);
}
vtkIdType SMESHGUI_PreVisualObj::GetElemVTKId( int theObjID )
{
const SMDS_MeshElement* e = myMesh->FindElement(theObjID);
}
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()
}
void SMESHGUI_PreVisualObj::ClearEntitiesFlags()