Version: 9.16.0
SMESH_Object.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// SMESH OBJECT : interactive object for SMESH visualization
24// File : SMESH_Object.h
25// Author : Nicolas REJNERI
26// Module : SMESH
27//
28#ifndef SMESH_OBJECT_H
29#define SMESH_OBJECT_H
30
31#ifdef WIN32
32 #if defined SMESHOBJECT_EXPORTS || defined SMESHObject_EXPORTS
33 #define SMESHOBJECT_EXPORT __declspec( dllexport )
34 #else
35 #define SMESHOBJECT_EXPORT __declspec( dllimport )
36 #endif
37#else
38 #define SMESHOBJECT_EXPORT
39#endif
40
41#include <boost/shared_ptr.hpp>
42#include <vtkSystemIncludes.h>
43
44#include "SMESH_Controls.hxx"
46
47#include <SALOMEconfig.h>
48#include <smIdType.hxx>
49#include CORBA_SERVER_HEADER(SMESH_Mesh)
50
51class SMDS_Mesh;
53
54/*
55 Class : SMESH_VisualObj
56 Description : Base class for all mesh objects to be visuilised
57*/
59{
60public:
61 virtual ~SMESH_VisualObj() {}
62 virtual bool Update( int theIsClear = true ) = 0;
63 virtual bool NulData() = 0;
64 virtual void UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor ) = 0;
65 virtual int GetElemDimension( const smIdType theObjId ) = 0;
66
67 virtual smIdType GetNbEntities( const SMDSAbs_ElementType theType) const = 0;
68 virtual SMDS_Mesh* GetMesh() const = 0;
69 virtual SMESH::SMESH_Mesh_ptr GetMeshServer() = 0;
70
71 virtual bool GetEdgeNodes( const smIdType theElemId,
72 const int theEdgeNum,
73 smIdType& theNodeId1,
74 smIdType& theNodeId2 ) const = 0;
75 virtual bool IsValid() const = 0;
76
78
79 virtual vtkIdType GetNodeObjId( vtkIdType theVTKID ) = 0;
80 virtual vtkIdType GetNodeVTKId( vtkIdType theObjID ) = 0;
81 virtual vtkIdType GetElemObjId( vtkIdType theVTKID ) = 0;
82 virtual vtkIdType GetElemVTKId( vtkIdType theObjID ) = 0;
83 virtual void ClearEntitiesFlags() = 0;
84 virtual bool GetEntitiesFlag() = 0;
85 virtual unsigned int GetEntitiesState() = 0;
86};
87
88typedef boost::shared_ptr<SMESH_VisualObj> TVisualObjPtr;
89
90#endif
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
Definition: SMDSAbs_ElementType.hxx:34
boost::shared_ptr< SMESH_VisualObj > TVisualObjPtr
Definition: SMESH_Object.h:88
#define SMESHOBJECT_EXPORT
Definition: SMESH_Object.h:38
Definition: SMDS_Mesh.hxx:53
Definition: SMESH_Object.h:59
virtual unsigned int GetEntitiesState()=0
virtual void ClearEntitiesFlags()=0
virtual vtkUnstructuredGrid * GetUnstructuredGrid()=0
virtual SMDS_Mesh * GetMesh() const =0
virtual void UpdateFunctor(const SMESH::Controls::FunctorPtr &theFunctor)=0
virtual bool Update(int theIsClear=true)=0
virtual vtkIdType GetElemObjId(vtkIdType theVTKID)=0
virtual vtkIdType GetNodeVTKId(vtkIdType theObjID)=0
virtual smIdType GetNbEntities(const SMDSAbs_ElementType theType) const =0
virtual bool IsValid() const =0
virtual int GetElemDimension(const smIdType theObjId)=0
virtual vtkIdType GetNodeObjId(vtkIdType theVTKID)=0
virtual SMESH::SMESH_Mesh_ptr GetMeshServer()=0
virtual vtkIdType GetElemVTKId(vtkIdType theObjID)=0
virtual ~SMESH_VisualObj()
Definition: SMESH_Object.h:61
virtual bool GetEntitiesFlag()=0
virtual bool NulData()=0
virtual bool GetEdgeNodes(const smIdType theElemId, const int theEdgeNum, smIdType &theNodeId1, smIdType &theNodeId2) const =0
boost::shared_ptr< Functor > FunctorPtr
Definition: SMESH_Controls.hxx:60