X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_ObjectDef.h;h=f136c3714289f4a8a02fc5e354a9fb0b401a8fa8;hp=e472a2121c2882208f7c0194d80ffbaf9a486f33;hb=8c1dfe2d90664a70f4451f77af48c1cde5638b60;hpb=0635c9fc80f67d1e5dc0e94ec85f487286a92070 diff --git a/src/OBJECT/SMESH_ObjectDef.h b/src/OBJECT/SMESH_ObjectDef.h index e472a2121..f136c3714 100644 --- a/src/OBJECT/SMESH_ObjectDef.h +++ b/src/OBJECT/SMESH_ObjectDef.h @@ -61,6 +61,7 @@ public: virtual ~SMESH_VisualObjDef(); virtual bool Update( int theIsClear = true ) = 0; + virtual bool NulData() {return 0; }; virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ) = 0; virtual int GetElemDimension( const int theObjId ) = 0; @@ -69,12 +70,14 @@ public: virtual bool IsNodePrs() const = 0; virtual SMDS_Mesh* GetMesh() const = 0; + virtual bool IsValid() const; + virtual bool GetEdgeNodes( const int theElemId, const int theEdgeNum, int& theNodeId1, int& theNodeId2 ) const; - virtual vtkUnstructuredGrid* GetUnstructuredGrid() { return myGrid; } + virtual vtkUnstructuredGrid* GetUnstructuredGrid(); virtual vtkIdType GetNodeObjId( int theVTKID ); virtual vtkIdType GetNodeVTKId( int theObjID ); @@ -84,16 +87,17 @@ public: protected: void createPoints( vtkPoints* ); - void buildPrs(); + void buildPrs(bool buildGrid = false); void buildNodePrs(); void buildElemPrs(); -private: +//private: TMapOfIds mySMDS2VTKNodes; TMapOfIds myVTK2SMDSNodes; TMapOfIds mySMDS2VTKElems; TMapOfIds myVTK2SMDSElems; + bool myLocalGrid; vtkUnstructuredGrid* myGrid; }; @@ -112,6 +116,7 @@ public: virtual ~SMESH_MeshObj(); virtual bool Update( int theIsClear = true ); + virtual bool NulData(); virtual int GetNbEntities( const SMDSAbs_ElementType) const; virtual int GetEntities( const SMDSAbs_ElementType, TEntityList& ) const; @@ -126,6 +131,7 @@ public: protected: SMESH_Client myClient; + vtkUnstructuredGrid* myEmptyGrid; }; @@ -168,6 +174,8 @@ public: virtual int GetEntities( const SMDSAbs_ElementType, TEntityList& ) const; virtual bool IsNodePrs() const; + virtual SMDSAbs_ElementType GetElementType() const; + private: SMESH::SMESH_GroupBase_var myGroupServer;