Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef SMESH_OBJECT_H
00030 #define SMESH_OBJECT_H
00031
00032 #ifdef WNT
00033 #if defined SMESHOBJECT_EXPORTS || defined SMESHObject_EXPORTS
00034 #define SMESHOBJECT_EXPORT __declspec( dllexport )
00035 #else
00036 #define SMESHOBJECT_EXPORT __declspec( dllimport )
00037 #endif
00038 #else
00039 #define SMESHOBJECT_EXPORT
00040 #endif
00041
00042 #include <boost/shared_ptr.hpp>
00043 #include <vtkSystemIncludes.h>
00044
00045 #include "SMESH_Controls.hxx"
00046 #include "SMDSAbs_ElementType.hxx"
00047
00048 class SMDS_Mesh;
00049 class vtkUnstructuredGrid;
00050
00051
00052
00053
00054
00055 class SMESHOBJECT_EXPORT SMESH_VisualObj
00056 {
00057 public:
00058 virtual bool Update( int theIsClear = true ) = 0;
00059 virtual bool NulData() = 0;
00060 virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ) = 0;
00061 virtual int GetElemDimension( const int theObjId ) = 0;
00062
00063 virtual int GetNbEntities( const SMDSAbs_ElementType theType) const = 0;
00064 virtual SMDS_Mesh* GetMesh() const = 0;
00065
00066 virtual bool GetEdgeNodes( const int theElemId,
00067 const int theEdgeNum,
00068 int& theNodeId1,
00069 int& theNodeId2 ) const = 0;
00070 virtual bool IsValid() const = 0;
00071
00072 virtual vtkUnstructuredGrid* GetUnstructuredGrid() = 0;
00073
00074 virtual vtkIdType GetNodeObjId( int theVTKID ) = 0;
00075 virtual vtkIdType GetNodeVTKId( int theObjID ) = 0;
00076 virtual vtkIdType GetElemObjId( int theVTKID ) = 0;
00077 virtual vtkIdType GetElemVTKId( int theObjID ) = 0;
00078 };
00079
00080 typedef boost::shared_ptr<SMESH_VisualObj> TVisualObjPtr;
00081
00082 #endif