X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_Object.h;h=0692f065d047a9ecf01393bd7cddf3a37c36ee09;hp=6ed30e2fa0533146757ce2bd0155bacf75c0847b;hb=0febe018bcde111dc7aca1f3e44d4aa2995b59a2;hpb=0de991099a7f8bea2687d44c20021be3066f3615 diff --git a/src/OBJECT/SMESH_Object.h b/src/OBJECT/SMESH_Object.h index 6ed30e2fa..0692f065d 100644 --- a/src/OBJECT/SMESH_Object.h +++ b/src/OBJECT/SMESH_Object.h @@ -30,16 +30,17 @@ #define SMESH_OBJECT_H // IDL Headers -#include +#include "SALOMEconfig.h" #include CORBA_SERVER_HEADER(SMESH_Mesh) #include CORBA_SERVER_HEADER(SMESH_Group) -#include CORBA_SERVER_HEADER(SMESH_Filter) #include #include #include #include +#include "SMESH_Controls.hxx" + class vtkUnstructuredGrid; class vtkPoints; class SALOME_ExtractUnstructuredGrid; @@ -57,7 +58,6 @@ typedef boost::shared_ptr TVisualObjPtr; Class : SMESH_VisualObj Description : Base class for all mesh objects to be visuilised */ - class SMESH_VisualObj { protected: @@ -70,12 +70,18 @@ public: virtual ~SMESH_VisualObj(); virtual void Update( int theIsClear = true ) = 0; - virtual void UpdateFunctor( SMESH::Functor_ptr theFunctor ) = 0; + virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ) = 0; virtual int GetElemDimension( const int theObjId ) = 0; virtual int GetNbEntities( const SMESH::ElementType) const = 0; virtual int GetEntities( const SMESH::ElementType, TEntityList& ) const = 0; virtual bool IsNodePrs() const = 0; + virtual SMDS_Mesh* GetMesh() const = 0; + + bool GetEdgeNodes( const int theElemId, + const int theEdgeNum, + int& theNodeId1, + int& theNodeId2 ) const; vtkUnstructuredGrid* GetUnstructuredGrid() { return myGrid; } @@ -91,7 +97,7 @@ protected: void buildNodePrs(); void buildElemPrs(); -private: +private: TMapOfIds mySMDS2VTKNodes; TMapOfIds myVTK2SMDSNodes; @@ -122,10 +128,10 @@ public: virtual int GetElemDimension( const int theObjId ); - virtual void UpdateFunctor( SMESH::Functor_ptr f ); + virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ); SMESH::SMESH_Mesh_ptr GetMeshServer() { return myMeshServer.in(); } - SMDS_Mesh* GetMesh() { return myMesh; } + SMDS_Mesh* GetMesh() const { return myMesh; } protected: @@ -148,8 +154,9 @@ public: virtual void Update( int theIsClear = true ); - virtual void UpdateFunctor( SMESH::Functor_ptr ); + virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ); virtual int GetElemDimension( const int theObjId ); + virtual SMDS_Mesh* GetMesh() const { return myMeshObj->GetMesh(); } protected: