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
Add DLL specs.
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_PreVisualObj.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
b/src/SMESHGUI/SMESHGUI_PreVisualObj.cxx
index 1aa8e927e941ea3ee8ac3b7e776f141bd9cbcc60..6910bde4973ebaba28f18837d499b4b558e757f0 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
21
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;
}
@@
-40,7
+45,7
@@
void SMESHGUI_PreVisualObj::UpdateFunctor( const SMESH::Controls::FunctorPtr& th
if ( theFunctor ) theFunctor->SetMesh( GetMesh() );
}
if ( theFunctor ) theFunctor->SetMesh( GetMesh() );
}
-int SMESHGUI_PreVisualObj::GetElemDimension( const
int
theObjId )
+int SMESHGUI_PreVisualObj::GetElemDimension( const
smIdType
theObjId )
{
if ( const SMDS_MeshElement* anElem = myMesh->FindElement( theObjId ))
{
{
if ( const SMDS_MeshElement* anElem = myMesh->FindElement( theObjId ))
{
@@
-57,7
+62,7
@@
int SMESHGUI_PreVisualObj::GetElemDimension( const int theObjId )
return -1;
}
return -1;
}
-
int
SMESHGUI_PreVisualObj::GetNbEntities( const SMDSAbs_ElementType theType ) const
+
smIdType
SMESHGUI_PreVisualObj::GetNbEntities( const SMDSAbs_ElementType theType ) const
{
return myMesh->GetMeshInfo().NbElements( theType );
}
{
return myMesh->GetMeshInfo().NbElements( theType );
}
@@
-72,10
+77,10
@@
SMESH::SMESH_Mesh_ptr SMESHGUI_PreVisualObj::GetMeshServer()
// purpose : Retrieve ids of nodes from edge of elements ( edge is numbered from 1 )
//=================================================================================
// purpose : Retrieve ids of nodes from edge of elements ( edge is numbered from 1 )
//=================================================================================
-bool SMESHGUI_PreVisualObj::GetEdgeNodes( const
int
theElemId,
- const int theEdgeNum,
-
int
& theNodeId1,
-
int
& theNodeId2 ) const
+bool SMESHGUI_PreVisualObj::GetEdgeNodes( const
smIdType
theElemId,
+ const int
theEdgeNum,
+
smIdType
& theNodeId1,
+
smIdType
& theNodeId2 ) const
{
const SMDS_MeshElement* e = myMesh->FindElement( theElemId );
if ( !e || e->GetType() != SMDSAbs_Face )
{
const SMDS_MeshElement* e = myMesh->FindElement( theElemId );
if ( !e || e->GetType() != SMDSAbs_Face )
@@
-102,24
+107,24
@@
vtkUnstructuredGrid* SMESHGUI_PreVisualObj::GetUnstructuredGrid()
}
}
-vtkIdType SMESHGUI_PreVisualObj::GetNodeObjId(
int
theVTKID )
+vtkIdType SMESHGUI_PreVisualObj::GetNodeObjId(
vtkIdType
theVTKID )
{
const SMDS_MeshNode* aNode = myMesh->FindNodeVtk( theVTKID );
return aNode ? aNode->GetID() : -1;
}
{
const SMDS_MeshNode* aNode = myMesh->FindNodeVtk( theVTKID );
return aNode ? aNode->GetID() : -1;
}
-vtkIdType SMESHGUI_PreVisualObj::GetNodeVTKId(
int
theObjID )
+vtkIdType SMESHGUI_PreVisualObj::GetNodeVTKId(
vtkIdType
theObjID )
{
const SMDS_MeshNode* aNode = myMesh->FindNode( theObjID );
return aNode ? aNode->GetID() : -1;
}
{
const SMDS_MeshNode* aNode = myMesh->FindNode( theObjID );
return aNode ? aNode->GetID() : -1;
}
-vtkIdType SMESHGUI_PreVisualObj::GetElemObjId(
int
theVTKID )
+vtkIdType SMESHGUI_PreVisualObj::GetElemObjId(
vtkIdType
theVTKID )
{
return this->GetMesh()->FromVtkToSmds(theVTKID);
}
{
return this->GetMesh()->FromVtkToSmds(theVTKID);
}
-vtkIdType SMESHGUI_PreVisualObj::GetElemVTKId(
int
theObjID )
+vtkIdType SMESHGUI_PreVisualObj::GetElemVTKId(
vtkIdType
theObjID )
{
const SMDS_MeshElement* e = myMesh->FindElement(theObjID);
return e ? e->GetVtkID() : -1;
{
const SMDS_MeshElement* e = myMesh->FindElement(theObjID);
return e ? e->GetVtkID() : -1;