X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_PreVisualObj.h;h=5d58d6321f3f15f0543bd027844999a1695278b0;hb=53cfbcdd3398697cb1581f0dcd92fb3cd7805fc3;hp=83745e40fe0e4329e285c45fdbdc0ebf1e954bbf;hpb=385d4cede5f752d0eec26c306f3b5e14511e2a3d;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_PreVisualObj.h b/src/SMESHGUI/SMESHGUI_PreVisualObj.h index 83745e40f..5d58d6321 100644 --- a/src/SMESHGUI/SMESHGUI_PreVisualObj.h +++ b/src/SMESHGUI/SMESHGUI_PreVisualObj.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 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 @@ -29,6 +29,8 @@ #include "SMESH_Object.h" +class SMESHDS_Mesh; + /*! * \brief Incarnation of SMESH_VisualObj allowing usage of SMESH_Actor * to show arbitrary mesh data. SMESHGUI_PreVisualObj encapsulates @@ -37,29 +39,30 @@ */ class SMESHGUI_EXPORT SMESHGUI_PreVisualObj : public SMESH_VisualObj { - mutable SMDS_Mesh* myMesh; - bool myEntitiesFlag; - unsigned int myEntitiesState; + mutable SMESHDS_Mesh* myMesh; + bool myEntitiesFlag; + unsigned int myEntitiesState; public: SMESHGUI_PreVisualObj(); - virtual SMDS_Mesh* GetMesh() const { return myMesh; } + virtual SMDS_Mesh* GetMesh() const; + SMESHDS_Mesh* GetMeshDS() const { return myMesh; } virtual bool Update( int theIsClear ); virtual bool NulData() { return false; } virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ); - virtual int GetElemDimension( const int theObjId ); - virtual int GetNbEntities( const SMDSAbs_ElementType theType) const; + virtual int GetElemDimension( const smIdType theObjId ); + virtual smIdType GetNbEntities( const SMDSAbs_ElementType theType) const; virtual bool IsValid() const; - virtual bool GetEdgeNodes( const int theElemId, - const int theEdgeNum, - int& theNodeId1, - int& theNodeId2 ) const; + virtual bool GetEdgeNodes( const smIdType theElemId, + const int theEdgeNum, + smIdType& theNodeId1, + smIdType& theNodeId2 ) const; - virtual vtkIdType GetNodeObjId( int theVTKID ); - virtual vtkIdType GetNodeVTKId( int theObjID ); - virtual vtkIdType GetElemObjId( int theVTKID ); - virtual vtkIdType GetElemVTKId( int theObjID ); + virtual vtkIdType GetNodeObjId( vtkIdType theVTKID ); + virtual vtkIdType GetNodeVTKId( vtkIdType theObjID ); + virtual vtkIdType GetElemObjId( vtkIdType theVTKID ); + virtual vtkIdType GetElemVTKId( vtkIdType theObjID ); virtual void ClearEntitiesFlags(); virtual bool GetEntitiesFlag(); virtual unsigned int GetEntitiesState();