From: jrt Date: Thu, 4 Sep 2003 14:50:14 +0000 (+0000) Subject: Remove no longer needed files X-Git-Tag: V1_2_2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=c914dd6b709ee7af0c6665003e328c06563af431 Remove no longer needed files --- diff --git a/src/SMDS/Handle_SMDSControl_BoundaryEdges.hxx b/src/SMDS/Handle_SMDSControl_BoundaryEdges.hxx deleted file mode 100644 index 48c2707e1..000000000 --- a/src/SMDS/Handle_SMDSControl_BoundaryEdges.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDSControl_BoundaryEdges.hxx -// Module : SMESH - -#ifndef _Handle_SMDSControl_BoundaryEdges_HeaderFile -#define _Handle_SMDSControl_BoundaryEdges_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDSControl_MeshBoundary_HeaderFile -#include "Handle_SMDSControl_MeshBoundary.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDSControl_MeshBoundary); -class SMDSControl_BoundaryEdges; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDSControl_BoundaryEdges); - -class Handle(SMDSControl_BoundaryEdges) : public Handle(SMDSControl_MeshBoundary) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDSControl_BoundaryEdges)():Handle(SMDSControl_MeshBoundary)() {} - Handle(SMDSControl_BoundaryEdges)(const Handle(SMDSControl_BoundaryEdges)& aHandle) : Handle(SMDSControl_MeshBoundary)(aHandle) - { - } - - Handle(SMDSControl_BoundaryEdges)(const SMDSControl_BoundaryEdges* anItem) : Handle(SMDSControl_MeshBoundary)((SMDSControl_MeshBoundary *)anItem) - { - } - - Handle(SMDSControl_BoundaryEdges)& operator=(const Handle(SMDSControl_BoundaryEdges)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDSControl_BoundaryEdges)& operator=(const SMDSControl_BoundaryEdges* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDSControl_BoundaryEdges* operator->() - { - return (SMDSControl_BoundaryEdges *)ControlAccess(); - } - - SMDSControl_BoundaryEdges* operator->() const - { - return (SMDSControl_BoundaryEdges *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDSControl_BoundaryEdges)(); - - Standard_EXPORT static const Handle(SMDSControl_BoundaryEdges) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDSControl_BoundaryFaces.hxx b/src/SMDS/Handle_SMDSControl_BoundaryFaces.hxx deleted file mode 100644 index 3446dd6e4..000000000 --- a/src/SMDS/Handle_SMDSControl_BoundaryFaces.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDSControl_BoundaryFaces.hxx -// Module : SMESH - -#ifndef _Handle_SMDSControl_BoundaryFaces_HeaderFile -#define _Handle_SMDSControl_BoundaryFaces_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDSControl_MeshBoundary_HeaderFile -#include "Handle_SMDSControl_MeshBoundary.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDSControl_MeshBoundary); -class SMDSControl_BoundaryFaces; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDSControl_BoundaryFaces); - -class Handle(SMDSControl_BoundaryFaces) : public Handle(SMDSControl_MeshBoundary) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDSControl_BoundaryFaces)():Handle(SMDSControl_MeshBoundary)() {} - Handle(SMDSControl_BoundaryFaces)(const Handle(SMDSControl_BoundaryFaces)& aHandle) : Handle(SMDSControl_MeshBoundary)(aHandle) - { - } - - Handle(SMDSControl_BoundaryFaces)(const SMDSControl_BoundaryFaces* anItem) : Handle(SMDSControl_MeshBoundary)((SMDSControl_MeshBoundary *)anItem) - { - } - - Handle(SMDSControl_BoundaryFaces)& operator=(const Handle(SMDSControl_BoundaryFaces)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDSControl_BoundaryFaces)& operator=(const SMDSControl_BoundaryFaces* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDSControl_BoundaryFaces* operator->() - { - return (SMDSControl_BoundaryFaces *)ControlAccess(); - } - - SMDSControl_BoundaryFaces* operator->() const - { - return (SMDSControl_BoundaryFaces *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDSControl_BoundaryFaces)(); - - Standard_EXPORT static const Handle(SMDSControl_BoundaryFaces) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDSControl_MeshBoundary.hxx b/src/SMDS/Handle_SMDSControl_MeshBoundary.hxx deleted file mode 100644 index 30891c9b1..000000000 --- a/src/SMDS/Handle_SMDSControl_MeshBoundary.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDSControl_MeshBoundary.hxx -// Module : SMESH - -#ifndef _Handle_SMDSControl_MeshBoundary_HeaderFile -#define _Handle_SMDSControl_MeshBoundary_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_MMgt_TShared_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(MMgt_TShared); -class SMDSControl_MeshBoundary; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDSControl_MeshBoundary); - -class Handle(SMDSControl_MeshBoundary) : public Handle(MMgt_TShared) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDSControl_MeshBoundary)():Handle(MMgt_TShared)() {} - Handle(SMDSControl_MeshBoundary)(const Handle(SMDSControl_MeshBoundary)& aHandle) : Handle(MMgt_TShared)(aHandle) - { - } - - Handle(SMDSControl_MeshBoundary)(const SMDSControl_MeshBoundary* anItem) : Handle(MMgt_TShared)((MMgt_TShared *)anItem) - { - } - - Handle(SMDSControl_MeshBoundary)& operator=(const Handle(SMDSControl_MeshBoundary)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDSControl_MeshBoundary)& operator=(const SMDSControl_MeshBoundary* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDSControl_MeshBoundary* operator->() - { - return (SMDSControl_MeshBoundary *)ControlAccess(); - } - - SMDSControl_MeshBoundary* operator->() const - { - return (SMDSControl_MeshBoundary *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDSControl_MeshBoundary)(); - - Standard_EXPORT static const Handle(SMDSControl_MeshBoundary) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx b/src/SMDS/Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx deleted file mode 100644 index c5764edce..000000000 --- a/src/SMDS/Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#define _Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_DataMapNodeOfDataMapOfIntegerMeshElement; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement); - -class Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)():Handle(TCollection_MapNode)() {} - Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)(const Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)(const SMDS_DataMapNodeOfDataMapOfIntegerMeshElement* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)& operator=(const Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)& operator=(const SMDS_DataMapNodeOfDataMapOfIntegerMeshElement* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_DataMapNodeOfDataMapOfIntegerMeshElement* operator->() - { - return (SMDS_DataMapNodeOfDataMapOfIntegerMeshElement *)ControlAccess(); - } - - SMDS_DataMapNodeOfDataMapOfIntegerMeshElement* operator->() const - { - return (SMDS_DataMapNodeOfDataMapOfIntegerMeshElement *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)(); - - Standard_EXPORT static const Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx b/src/SMDS/Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx deleted file mode 100644 index caf5e286b..000000000 --- a/src/SMDS/Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#define _Handle_SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_DataMapNodeOfDataMapOfPntInteger; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfPntInteger); - -class Handle(SMDS_DataMapNodeOfDataMapOfPntInteger) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)():Handle(TCollection_MapNode)() {} - Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)(const Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)(const SMDS_DataMapNodeOfDataMapOfPntInteger* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)& operator=(const Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)& operator=(const SMDS_DataMapNodeOfDataMapOfPntInteger* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_DataMapNodeOfDataMapOfPntInteger* operator->() - { - return (SMDS_DataMapNodeOfDataMapOfPntInteger *)ControlAccess(); - } - - SMDS_DataMapNodeOfDataMapOfPntInteger* operator->() const - { - return (SMDS_DataMapNodeOfDataMapOfPntInteger *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)(); - - Standard_EXPORT static const Handle(SMDS_DataMapNodeOfDataMapOfPntInteger) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_EdgePosition.hxx b/src/SMDS/Handle_SMDS_EdgePosition.hxx deleted file mode 100644 index 906b39b01..000000000 --- a/src/SMDS/Handle_SMDS_EdgePosition.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_EdgePosition.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_EdgePosition_HeaderFile -#define _Handle_SMDS_EdgePosition_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_Position_HeaderFile -#include "Handle_SMDS_Position.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_Position); -class SMDS_EdgePosition; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_EdgePosition); - -class Handle(SMDS_EdgePosition) : public Handle(SMDS_Position) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_EdgePosition)():Handle(SMDS_Position)() {} - Handle(SMDS_EdgePosition)(const Handle(SMDS_EdgePosition)& aHandle) : Handle(SMDS_Position)(aHandle) - { - } - - Handle(SMDS_EdgePosition)(const SMDS_EdgePosition* anItem) : Handle(SMDS_Position)((SMDS_Position *)anItem) - { - } - - Handle(SMDS_EdgePosition)& operator=(const Handle(SMDS_EdgePosition)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_EdgePosition)& operator=(const SMDS_EdgePosition* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_EdgePosition* operator->() - { - return (SMDS_EdgePosition *)ControlAccess(); - } - - SMDS_EdgePosition* operator->() const - { - return (SMDS_EdgePosition *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_EdgePosition)(); - - Standard_EXPORT static const Handle(SMDS_EdgePosition) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_FacePosition.hxx b/src/SMDS/Handle_SMDS_FacePosition.hxx deleted file mode 100644 index 08bc50f5a..000000000 --- a/src/SMDS/Handle_SMDS_FacePosition.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_FacePosition.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_FacePosition_HeaderFile -#define _Handle_SMDS_FacePosition_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_Position_HeaderFile -#include "Handle_SMDS_Position.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_Position); -class SMDS_FacePosition; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_FacePosition); - -class Handle(SMDS_FacePosition) : public Handle(SMDS_Position) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_FacePosition)():Handle(SMDS_Position)() {} - Handle(SMDS_FacePosition)(const Handle(SMDS_FacePosition)& aHandle) : Handle(SMDS_Position)(aHandle) - { - } - - Handle(SMDS_FacePosition)(const SMDS_FacePosition* anItem) : Handle(SMDS_Position)((SMDS_Position *)anItem) - { - } - - Handle(SMDS_FacePosition)& operator=(const Handle(SMDS_FacePosition)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_FacePosition)& operator=(const SMDS_FacePosition* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_FacePosition* operator->() - { - return (SMDS_FacePosition *)ControlAccess(); - } - - SMDS_FacePosition* operator->() const - { - return (SMDS_FacePosition *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_FacePosition)(); - - Standard_EXPORT static const Handle(SMDS_FacePosition) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_HSequenceOfMesh.hxx b/src/SMDS/Handle_SMDS_HSequenceOfMesh.hxx deleted file mode 100644 index 883d53f99..000000000 --- a/src/SMDS/Handle_SMDS_HSequenceOfMesh.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDS_HSequenceOfMesh.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_HSequenceOfMesh_HeaderFile -#define _Handle_SMDS_HSequenceOfMesh_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_MMgt_TShared_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(MMgt_TShared); -class SMDS_HSequenceOfMesh; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_HSequenceOfMesh); - -class Handle(SMDS_HSequenceOfMesh) : public Handle(MMgt_TShared) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_HSequenceOfMesh)():Handle(MMgt_TShared)() {} - Handle(SMDS_HSequenceOfMesh)(const Handle(SMDS_HSequenceOfMesh)& aHandle) : Handle(MMgt_TShared)(aHandle) - { - } - - Handle(SMDS_HSequenceOfMesh)(const SMDS_HSequenceOfMesh* anItem) : Handle(MMgt_TShared)((MMgt_TShared *)anItem) - { - } - - Handle(SMDS_HSequenceOfMesh)& operator=(const Handle(SMDS_HSequenceOfMesh)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_HSequenceOfMesh)& operator=(const SMDS_HSequenceOfMesh* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_HSequenceOfMesh* operator->() - { - return (SMDS_HSequenceOfMesh *)ControlAccess(); - } - - SMDS_HSequenceOfMesh* operator->() const - { - return (SMDS_HSequenceOfMesh *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_HSequenceOfMesh)(); - - Standard_EXPORT static const Handle(SMDS_HSequenceOfMesh) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_ListNodeOfListOfMesh.hxx b/src/SMDS/Handle_SMDS_ListNodeOfListOfMesh.hxx deleted file mode 100644 index c6ed284ed..000000000 --- a/src/SMDS/Handle_SMDS_ListNodeOfListOfMesh.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_ListNodeOfListOfMesh.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_ListNodeOfListOfMesh_HeaderFile -#define _Handle_SMDS_ListNodeOfListOfMesh_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include "Handle_TCollection_MapNode.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_ListNodeOfListOfMesh; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_ListNodeOfListOfMesh); - -class Handle(SMDS_ListNodeOfListOfMesh) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_ListNodeOfListOfMesh)():Handle(TCollection_MapNode)() {} - Handle(SMDS_ListNodeOfListOfMesh)(const Handle(SMDS_ListNodeOfListOfMesh)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_ListNodeOfListOfMesh)(const SMDS_ListNodeOfListOfMesh* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_ListNodeOfListOfMesh)& operator=(const Handle(SMDS_ListNodeOfListOfMesh)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_ListNodeOfListOfMesh)& operator=(const SMDS_ListNodeOfListOfMesh* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_ListNodeOfListOfMesh* operator->() - { - return (SMDS_ListNodeOfListOfMesh *)ControlAccess(); - } - - SMDS_ListNodeOfListOfMesh* operator->() const - { - return (SMDS_ListNodeOfListOfMesh *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_ListNodeOfListOfMesh)(); - - Standard_EXPORT static const Handle(SMDS_ListNodeOfListOfMesh) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_ListNodeOfListOfMeshElement.hxx b/src/SMDS/Handle_SMDS_ListNodeOfListOfMeshElement.hxx deleted file mode 100644 index 577fd8872..000000000 --- a/src/SMDS/Handle_SMDS_ListNodeOfListOfMeshElement.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_ListNodeOfListOfMeshElement.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_ListNodeOfListOfMeshElement_HeaderFile -#define _Handle_SMDS_ListNodeOfListOfMeshElement_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_ListNodeOfListOfMeshElement; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_ListNodeOfListOfMeshElement); - -class Handle(SMDS_ListNodeOfListOfMeshElement) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_ListNodeOfListOfMeshElement)():Handle(TCollection_MapNode)() {} - Handle(SMDS_ListNodeOfListOfMeshElement)(const Handle(SMDS_ListNodeOfListOfMeshElement)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_ListNodeOfListOfMeshElement)(const SMDS_ListNodeOfListOfMeshElement* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_ListNodeOfListOfMeshElement)& operator=(const Handle(SMDS_ListNodeOfListOfMeshElement)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_ListNodeOfListOfMeshElement)& operator=(const SMDS_ListNodeOfListOfMeshElement* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_ListNodeOfListOfMeshElement* operator->() - { - return (SMDS_ListNodeOfListOfMeshElement *)ControlAccess(); - } - - SMDS_ListNodeOfListOfMeshElement* operator->() const - { - return (SMDS_ListNodeOfListOfMeshElement *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_ListNodeOfListOfMeshElement)(); - - Standard_EXPORT static const Handle(SMDS_ListNodeOfListOfMeshElement) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_ListNodeOfListOfMeshGroup.hxx b/src/SMDS/Handle_SMDS_ListNodeOfListOfMeshGroup.hxx deleted file mode 100644 index 864fc2d7c..000000000 --- a/src/SMDS/Handle_SMDS_ListNodeOfListOfMeshGroup.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDS_ListNodeOfListOfMeshGroup.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#define _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_ListNodeOfListOfMeshGroup; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup); - -class Handle(SMDS_ListNodeOfListOfMeshGroup) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_ListNodeOfListOfMeshGroup)():Handle(TCollection_MapNode)() {} - Handle(SMDS_ListNodeOfListOfMeshGroup)(const Handle(SMDS_ListNodeOfListOfMeshGroup)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_ListNodeOfListOfMeshGroup)(const SMDS_ListNodeOfListOfMeshGroup* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_ListNodeOfListOfMeshGroup)& operator=(const Handle(SMDS_ListNodeOfListOfMeshGroup)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_ListNodeOfListOfMeshGroup)& operator=(const SMDS_ListNodeOfListOfMeshGroup* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_ListNodeOfListOfMeshGroup* operator->() - { - return (SMDS_ListNodeOfListOfMeshGroup *)ControlAccess(); - } - - SMDS_ListNodeOfListOfMeshGroup* operator->() const - { - return (SMDS_ListNodeOfListOfMeshGroup *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_ListNodeOfListOfMeshGroup)(); - - Standard_EXPORT static const Handle(SMDS_ListNodeOfListOfMeshGroup) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_Mesh.hxx b/src/SMDS/Handle_SMDS_Mesh.hxx deleted file mode 100644 index 32d3f1020..000000000 --- a/src/SMDS/Handle_SMDS_Mesh.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_Mesh.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_Mesh_HeaderFile -#define _Handle_SMDS_Mesh_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshObject_HeaderFile -#include "Handle_SMDS_MeshObject.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshObject); -class SMDS_Mesh; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_Mesh); - -class Handle(SMDS_Mesh) : public Handle(SMDS_MeshObject) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_Mesh)():Handle(SMDS_MeshObject)() {} - Handle(SMDS_Mesh)(const Handle(SMDS_Mesh)& aHandle) : Handle(SMDS_MeshObject)(aHandle) - { - } - - Handle(SMDS_Mesh)(const SMDS_Mesh* anItem) : Handle(SMDS_MeshObject)((SMDS_MeshObject *)anItem) - { - } - - Handle(SMDS_Mesh)& operator=(const Handle(SMDS_Mesh)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_Mesh)& operator=(const SMDS_Mesh* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_Mesh* operator->() - { - return (SMDS_Mesh *)ControlAccess(); - } - - SMDS_Mesh* operator->() const - { - return (SMDS_Mesh *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_Mesh)(); - - Standard_EXPORT static const Handle(SMDS_Mesh) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshEdge.hxx b/src/SMDS/Handle_SMDS_MeshEdge.hxx deleted file mode 100644 index 09b69908f..000000000 --- a/src/SMDS/Handle_SMDS_MeshEdge.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshEdge.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshEdge_HeaderFile -#define _Handle_SMDS_MeshEdge_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshElement); -class SMDS_MeshEdge; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshEdge); - -class Handle(SMDS_MeshEdge) : public Handle(SMDS_MeshElement) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshEdge)():Handle(SMDS_MeshElement)() {} - Handle(SMDS_MeshEdge)(const Handle(SMDS_MeshEdge)& aHandle) : Handle(SMDS_MeshElement)(aHandle) - { - } - - Handle(SMDS_MeshEdge)(const SMDS_MeshEdge* anItem) : Handle(SMDS_MeshElement)((SMDS_MeshElement *)anItem) - { - } - - Handle(SMDS_MeshEdge)& operator=(const Handle(SMDS_MeshEdge)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshEdge)& operator=(const SMDS_MeshEdge* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshEdge* operator->() - { - return (SMDS_MeshEdge *)ControlAccess(); - } - - SMDS_MeshEdge* operator->() const - { - return (SMDS_MeshEdge *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshEdge)(); - - Standard_EXPORT static const Handle(SMDS_MeshEdge) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshElement.hxx b/src/SMDS/Handle_SMDS_MeshElement.hxx deleted file mode 100644 index 422ded19d..000000000 --- a/src/SMDS/Handle_SMDS_MeshElement.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshElement.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#define _Handle_SMDS_MeshElement_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshObject_HeaderFile -#include "Handle_SMDS_MeshObject.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshObject); -class SMDS_MeshElement; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshElement); - -class Handle(SMDS_MeshElement) : public Handle(SMDS_MeshObject) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshElement)():Handle(SMDS_MeshObject)() {} - Handle(SMDS_MeshElement)(const Handle(SMDS_MeshElement)& aHandle) : Handle(SMDS_MeshObject)(aHandle) - { - } - - Handle(SMDS_MeshElement)(const SMDS_MeshElement* anItem) : Handle(SMDS_MeshObject)((SMDS_MeshObject *)anItem) - { - } - - Handle(SMDS_MeshElement)& operator=(const Handle(SMDS_MeshElement)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshElement)& operator=(const SMDS_MeshElement* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshElement* operator->() - { - return (SMDS_MeshElement *)ControlAccess(); - } - - SMDS_MeshElement* operator->() const - { - return (SMDS_MeshElement *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshElement)(); - - Standard_EXPORT static const Handle(SMDS_MeshElement) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshElementIDFactory.hxx b/src/SMDS/Handle_SMDS_MeshElementIDFactory.hxx deleted file mode 100644 index 73b1c993c..000000000 --- a/src/SMDS/Handle_SMDS_MeshElementIDFactory.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshElementIDFactory.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshElementIDFactory_HeaderFile -#define _Handle_SMDS_MeshElementIDFactory_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshIDFactory_HeaderFile -#include "Handle_SMDS_MeshIDFactory.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshIDFactory); -class SMDS_MeshElementIDFactory; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshElementIDFactory); - -class Handle(SMDS_MeshElementIDFactory) : public Handle(SMDS_MeshIDFactory) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshElementIDFactory)():Handle(SMDS_MeshIDFactory)() {} - Handle(SMDS_MeshElementIDFactory)(const Handle(SMDS_MeshElementIDFactory)& aHandle) : Handle(SMDS_MeshIDFactory)(aHandle) - { - } - - Handle(SMDS_MeshElementIDFactory)(const SMDS_MeshElementIDFactory* anItem) : Handle(SMDS_MeshIDFactory)((SMDS_MeshIDFactory *)anItem) - { - } - - Handle(SMDS_MeshElementIDFactory)& operator=(const Handle(SMDS_MeshElementIDFactory)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshElementIDFactory)& operator=(const SMDS_MeshElementIDFactory* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshElementIDFactory* operator->() - { - return (SMDS_MeshElementIDFactory *)ControlAccess(); - } - - SMDS_MeshElementIDFactory* operator->() const - { - return (SMDS_MeshElementIDFactory *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshElementIDFactory)(); - - Standard_EXPORT static const Handle(SMDS_MeshElementIDFactory) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshFace.hxx b/src/SMDS/Handle_SMDS_MeshFace.hxx deleted file mode 100644 index 741b1097b..000000000 --- a/src/SMDS/Handle_SMDS_MeshFace.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshFace.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshFace_HeaderFile -#define _Handle_SMDS_MeshFace_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshElement); -class SMDS_MeshFace; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshFace); - -class Handle(SMDS_MeshFace) : public Handle(SMDS_MeshElement) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshFace)():Handle(SMDS_MeshElement)() {} - Handle(SMDS_MeshFace)(const Handle(SMDS_MeshFace)& aHandle) : Handle(SMDS_MeshElement)(aHandle) - { - } - - Handle(SMDS_MeshFace)(const SMDS_MeshFace* anItem) : Handle(SMDS_MeshElement)((SMDS_MeshElement *)anItem) - { - } - - Handle(SMDS_MeshFace)& operator=(const Handle(SMDS_MeshFace)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshFace)& operator=(const SMDS_MeshFace* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshFace* operator->() - { - return (SMDS_MeshFace *)ControlAccess(); - } - - SMDS_MeshFace* operator->() const - { - return (SMDS_MeshFace *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshFace)(); - - Standard_EXPORT static const Handle(SMDS_MeshFace) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshGroup.hxx b/src/SMDS/Handle_SMDS_MeshGroup.hxx deleted file mode 100644 index ddf47d818..000000000 --- a/src/SMDS/Handle_SMDS_MeshGroup.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDS_MeshGroup.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshGroup_HeaderFile -#define _Handle_SMDS_MeshGroup_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshObject_HeaderFile -#include "Handle_SMDS_MeshObject.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshObject); -class SMDS_MeshGroup; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshGroup); - -class Handle(SMDS_MeshGroup) : public Handle(SMDS_MeshObject) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshGroup)():Handle(SMDS_MeshObject)() {} - Handle(SMDS_MeshGroup)(const Handle(SMDS_MeshGroup)& aHandle) : Handle(SMDS_MeshObject)(aHandle) - { - } - - Handle(SMDS_MeshGroup)(const SMDS_MeshGroup* anItem) : Handle(SMDS_MeshObject)((SMDS_MeshObject *)anItem) - { - } - - Handle(SMDS_MeshGroup)& operator=(const Handle(SMDS_MeshGroup)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshGroup)& operator=(const SMDS_MeshGroup* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshGroup* operator->() - { - return (SMDS_MeshGroup *)ControlAccess(); - } - - SMDS_MeshGroup* operator->() const - { - return (SMDS_MeshGroup *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshGroup)(); - - Standard_EXPORT static const Handle(SMDS_MeshGroup) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshHexahedron.hxx b/src/SMDS/Handle_SMDS_MeshHexahedron.hxx deleted file mode 100644 index bb20daab3..000000000 --- a/src/SMDS/Handle_SMDS_MeshHexahedron.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshHexahedron.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshHexahedron_HeaderFile -#define _Handle_SMDS_MeshHexahedron_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshVolume_HeaderFile -#include "Handle_SMDS_MeshVolume.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshVolume); -class SMDS_MeshHexahedron; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshHexahedron); - -class Handle(SMDS_MeshHexahedron) : public Handle(SMDS_MeshVolume) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshHexahedron)():Handle(SMDS_MeshVolume)() {} - Handle(SMDS_MeshHexahedron)(const Handle(SMDS_MeshHexahedron)& aHandle) : Handle(SMDS_MeshVolume)(aHandle) - { - } - - Handle(SMDS_MeshHexahedron)(const SMDS_MeshHexahedron* anItem) : Handle(SMDS_MeshVolume)((SMDS_MeshVolume *)anItem) - { - } - - Handle(SMDS_MeshHexahedron)& operator=(const Handle(SMDS_MeshHexahedron)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshHexahedron)& operator=(const SMDS_MeshHexahedron* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshHexahedron* operator->() - { - return (SMDS_MeshHexahedron *)ControlAccess(); - } - - SMDS_MeshHexahedron* operator->() const - { - return (SMDS_MeshHexahedron *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshHexahedron)(); - - Standard_EXPORT static const Handle(SMDS_MeshHexahedron) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshIDFactory.hxx b/src/SMDS/Handle_SMDS_MeshIDFactory.hxx deleted file mode 100644 index 51e2bdf40..000000000 --- a/src/SMDS/Handle_SMDS_MeshIDFactory.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshIDFactory.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshIDFactory_HeaderFile -#define _Handle_SMDS_MeshIDFactory_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshObject_HeaderFile -#include "Handle_SMDS_MeshObject.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshObject); -class SMDS_MeshIDFactory; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshIDFactory); - -class Handle(SMDS_MeshIDFactory) : public Handle(SMDS_MeshObject) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshIDFactory)():Handle(SMDS_MeshObject)() {} - Handle(SMDS_MeshIDFactory)(const Handle(SMDS_MeshIDFactory)& aHandle) : Handle(SMDS_MeshObject)(aHandle) - { - } - - Handle(SMDS_MeshIDFactory)(const SMDS_MeshIDFactory* anItem) : Handle(SMDS_MeshObject)((SMDS_MeshObject *)anItem) - { - } - - Handle(SMDS_MeshIDFactory)& operator=(const Handle(SMDS_MeshIDFactory)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshIDFactory)& operator=(const SMDS_MeshIDFactory* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshIDFactory* operator->() - { - return (SMDS_MeshIDFactory *)ControlAccess(); - } - - SMDS_MeshIDFactory* operator->() const - { - return (SMDS_MeshIDFactory *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshIDFactory)(); - - Standard_EXPORT static const Handle(SMDS_MeshIDFactory) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshNode.hxx b/src/SMDS/Handle_SMDS_MeshNode.hxx deleted file mode 100644 index 3a9be3d72..000000000 --- a/src/SMDS/Handle_SMDS_MeshNode.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshNode.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshNode_HeaderFile -#define _Handle_SMDS_MeshNode_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshElement); -class SMDS_MeshNode; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshNode); - -class Handle(SMDS_MeshNode) : public Handle(SMDS_MeshElement) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshNode)():Handle(SMDS_MeshElement)() {} - Handle(SMDS_MeshNode)(const Handle(SMDS_MeshNode)& aHandle) : Handle(SMDS_MeshElement)(aHandle) - { - } - - Handle(SMDS_MeshNode)(const SMDS_MeshNode* anItem) : Handle(SMDS_MeshElement)((SMDS_MeshElement *)anItem) - { - } - - Handle(SMDS_MeshNode)& operator=(const Handle(SMDS_MeshNode)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshNode)& operator=(const SMDS_MeshNode* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshNode* operator->() - { - return (SMDS_MeshNode *)ControlAccess(); - } - - SMDS_MeshNode* operator->() const - { - return (SMDS_MeshNode *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshNode)(); - - Standard_EXPORT static const Handle(SMDS_MeshNode) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshNodeIDFactory.hxx b/src/SMDS/Handle_SMDS_MeshNodeIDFactory.hxx deleted file mode 100644 index e79eaca59..000000000 --- a/src/SMDS/Handle_SMDS_MeshNodeIDFactory.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshNodeIDFactory.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshNodeIDFactory_HeaderFile -#define _Handle_SMDS_MeshNodeIDFactory_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshIDFactory_HeaderFile -#include "Handle_SMDS_MeshIDFactory.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshIDFactory); -class SMDS_MeshNodeIDFactory; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshNodeIDFactory); - -class Handle(SMDS_MeshNodeIDFactory) : public Handle(SMDS_MeshIDFactory) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshNodeIDFactory)():Handle(SMDS_MeshIDFactory)() {} - Handle(SMDS_MeshNodeIDFactory)(const Handle(SMDS_MeshNodeIDFactory)& aHandle) : Handle(SMDS_MeshIDFactory)(aHandle) - { - } - - Handle(SMDS_MeshNodeIDFactory)(const SMDS_MeshNodeIDFactory* anItem) : Handle(SMDS_MeshIDFactory)((SMDS_MeshIDFactory *)anItem) - { - } - - Handle(SMDS_MeshNodeIDFactory)& operator=(const Handle(SMDS_MeshNodeIDFactory)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshNodeIDFactory)& operator=(const SMDS_MeshNodeIDFactory* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshNodeIDFactory* operator->() - { - return (SMDS_MeshNodeIDFactory *)ControlAccess(); - } - - SMDS_MeshNodeIDFactory* operator->() const - { - return (SMDS_MeshNodeIDFactory *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshNodeIDFactory)(); - - Standard_EXPORT static const Handle(SMDS_MeshNodeIDFactory) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshObject.hxx b/src/SMDS/Handle_SMDS_MeshObject.hxx deleted file mode 100644 index eb952b2fa..000000000 --- a/src/SMDS/Handle_SMDS_MeshObject.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshObject.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshObject_HeaderFile -#define _Handle_SMDS_MeshObject_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_MMgt_TShared_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(MMgt_TShared); -class SMDS_MeshObject; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshObject); - -class Handle(SMDS_MeshObject) : public Handle(MMgt_TShared) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshObject)():Handle(MMgt_TShared)() {} - Handle(SMDS_MeshObject)(const Handle(SMDS_MeshObject)& aHandle) : Handle(MMgt_TShared)(aHandle) - { - } - - Handle(SMDS_MeshObject)(const SMDS_MeshObject* anItem) : Handle(MMgt_TShared)((MMgt_TShared *)anItem) - { - } - - Handle(SMDS_MeshObject)& operator=(const Handle(SMDS_MeshObject)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshObject)& operator=(const SMDS_MeshObject* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshObject* operator->() - { - return (SMDS_MeshObject *)ControlAccess(); - } - - SMDS_MeshObject* operator->() const - { - return (SMDS_MeshObject *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshObject)(); - - Standard_EXPORT static const Handle(SMDS_MeshObject) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshPrism.hxx b/src/SMDS/Handle_SMDS_MeshPrism.hxx deleted file mode 100644 index 61bd28d7d..000000000 --- a/src/SMDS/Handle_SMDS_MeshPrism.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshPrism.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshPrism_HeaderFile -#define _Handle_SMDS_MeshPrism_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshVolume_HeaderFile -#include "Handle_SMDS_MeshVolume.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshVolume); -class SMDS_MeshPrism; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshPrism); - -class Handle(SMDS_MeshPrism) : public Handle(SMDS_MeshVolume) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshPrism)():Handle(SMDS_MeshVolume)() {} - Handle(SMDS_MeshPrism)(const Handle(SMDS_MeshPrism)& aHandle) : Handle(SMDS_MeshVolume)(aHandle) - { - } - - Handle(SMDS_MeshPrism)(const SMDS_MeshPrism* anItem) : Handle(SMDS_MeshVolume)((SMDS_MeshVolume *)anItem) - { - } - - Handle(SMDS_MeshPrism)& operator=(const Handle(SMDS_MeshPrism)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshPrism)& operator=(const SMDS_MeshPrism* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshPrism* operator->() - { - return (SMDS_MeshPrism *)ControlAccess(); - } - - SMDS_MeshPrism* operator->() const - { - return (SMDS_MeshPrism *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshPrism)(); - - Standard_EXPORT static const Handle(SMDS_MeshPrism) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshPyramid.hxx b/src/SMDS/Handle_SMDS_MeshPyramid.hxx deleted file mode 100644 index da3d683b9..000000000 --- a/src/SMDS/Handle_SMDS_MeshPyramid.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshPyramid.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshPyramid_HeaderFile -#define _Handle_SMDS_MeshPyramid_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshVolume_HeaderFile -#include "Handle_SMDS_MeshVolume.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshVolume); -class SMDS_MeshPyramid; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshPyramid); - -class Handle(SMDS_MeshPyramid) : public Handle(SMDS_MeshVolume) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshPyramid)():Handle(SMDS_MeshVolume)() {} - Handle(SMDS_MeshPyramid)(const Handle(SMDS_MeshPyramid)& aHandle) : Handle(SMDS_MeshVolume)(aHandle) - { - } - - Handle(SMDS_MeshPyramid)(const SMDS_MeshPyramid* anItem) : Handle(SMDS_MeshVolume)((SMDS_MeshVolume *)anItem) - { - } - - Handle(SMDS_MeshPyramid)& operator=(const Handle(SMDS_MeshPyramid)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshPyramid)& operator=(const SMDS_MeshPyramid* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshPyramid* operator->() - { - return (SMDS_MeshPyramid *)ControlAccess(); - } - - SMDS_MeshPyramid* operator->() const - { - return (SMDS_MeshPyramid *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshPyramid)(); - - Standard_EXPORT static const Handle(SMDS_MeshPyramid) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshQuadrangle.hxx b/src/SMDS/Handle_SMDS_MeshQuadrangle.hxx deleted file mode 100644 index 187d9d6ef..000000000 --- a/src/SMDS/Handle_SMDS_MeshQuadrangle.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshQuadrangle.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshQuadrangle_HeaderFile -#define _Handle_SMDS_MeshQuadrangle_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshFace_HeaderFile -#include "Handle_SMDS_MeshFace.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshFace); -class SMDS_MeshQuadrangle; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshQuadrangle); - -class Handle(SMDS_MeshQuadrangle) : public Handle(SMDS_MeshFace) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshQuadrangle)():Handle(SMDS_MeshFace)() {} - Handle(SMDS_MeshQuadrangle)(const Handle(SMDS_MeshQuadrangle)& aHandle) : Handle(SMDS_MeshFace)(aHandle) - { - } - - Handle(SMDS_MeshQuadrangle)(const SMDS_MeshQuadrangle* anItem) : Handle(SMDS_MeshFace)((SMDS_MeshFace *)anItem) - { - } - - Handle(SMDS_MeshQuadrangle)& operator=(const Handle(SMDS_MeshQuadrangle)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshQuadrangle)& operator=(const SMDS_MeshQuadrangle* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshQuadrangle* operator->() - { - return (SMDS_MeshQuadrangle *)ControlAccess(); - } - - SMDS_MeshQuadrangle* operator->() const - { - return (SMDS_MeshQuadrangle *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshQuadrangle)(); - - Standard_EXPORT static const Handle(SMDS_MeshQuadrangle) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshTetrahedron.hxx b/src/SMDS/Handle_SMDS_MeshTetrahedron.hxx deleted file mode 100644 index e7949d8ad..000000000 --- a/src/SMDS/Handle_SMDS_MeshTetrahedron.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshTetrahedron.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshTetrahedron_HeaderFile -#define _Handle_SMDS_MeshTetrahedron_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshVolume_HeaderFile -#include "Handle_SMDS_MeshVolume.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshVolume); -class SMDS_MeshTetrahedron; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshTetrahedron); - -class Handle(SMDS_MeshTetrahedron) : public Handle(SMDS_MeshVolume) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshTetrahedron)():Handle(SMDS_MeshVolume)() {} - Handle(SMDS_MeshTetrahedron)(const Handle(SMDS_MeshTetrahedron)& aHandle) : Handle(SMDS_MeshVolume)(aHandle) - { - } - - Handle(SMDS_MeshTetrahedron)(const SMDS_MeshTetrahedron* anItem) : Handle(SMDS_MeshVolume)((SMDS_MeshVolume *)anItem) - { - } - - Handle(SMDS_MeshTetrahedron)& operator=(const Handle(SMDS_MeshTetrahedron)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshTetrahedron)& operator=(const SMDS_MeshTetrahedron* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshTetrahedron* operator->() - { - return (SMDS_MeshTetrahedron *)ControlAccess(); - } - - SMDS_MeshTetrahedron* operator->() const - { - return (SMDS_MeshTetrahedron *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshTetrahedron)(); - - Standard_EXPORT static const Handle(SMDS_MeshTetrahedron) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshTriangle.hxx b/src/SMDS/Handle_SMDS_MeshTriangle.hxx deleted file mode 100644 index 74d6d21ba..000000000 --- a/src/SMDS/Handle_SMDS_MeshTriangle.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshTriangle.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshTriangle_HeaderFile -#define _Handle_SMDS_MeshTriangle_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshFace_HeaderFile -#include "Handle_SMDS_MeshFace.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshFace); -class SMDS_MeshTriangle; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshTriangle); - -class Handle(SMDS_MeshTriangle) : public Handle(SMDS_MeshFace) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshTriangle)():Handle(SMDS_MeshFace)() {} - Handle(SMDS_MeshTriangle)(const Handle(SMDS_MeshTriangle)& aHandle) : Handle(SMDS_MeshFace)(aHandle) - { - } - - Handle(SMDS_MeshTriangle)(const SMDS_MeshTriangle* anItem) : Handle(SMDS_MeshFace)((SMDS_MeshFace *)anItem) - { - } - - Handle(SMDS_MeshTriangle)& operator=(const Handle(SMDS_MeshTriangle)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshTriangle)& operator=(const SMDS_MeshTriangle* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshTriangle* operator->() - { - return (SMDS_MeshTriangle *)ControlAccess(); - } - - SMDS_MeshTriangle* operator->() const - { - return (SMDS_MeshTriangle *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshTriangle)(); - - Standard_EXPORT static const Handle(SMDS_MeshTriangle) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_MeshVolume.hxx b/src/SMDS/Handle_SMDS_MeshVolume.hxx deleted file mode 100644 index 80d79e660..000000000 --- a/src/SMDS/Handle_SMDS_MeshVolume.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_MeshVolume.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_MeshVolume_HeaderFile -#define _Handle_SMDS_MeshVolume_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_MeshElement); -class SMDS_MeshVolume; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_MeshVolume); - -class Handle(SMDS_MeshVolume) : public Handle(SMDS_MeshElement) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_MeshVolume)():Handle(SMDS_MeshElement)() {} - Handle(SMDS_MeshVolume)(const Handle(SMDS_MeshVolume)& aHandle) : Handle(SMDS_MeshElement)(aHandle) - { - } - - Handle(SMDS_MeshVolume)(const SMDS_MeshVolume* anItem) : Handle(SMDS_MeshElement)((SMDS_MeshElement *)anItem) - { - } - - Handle(SMDS_MeshVolume)& operator=(const Handle(SMDS_MeshVolume)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_MeshVolume)& operator=(const SMDS_MeshVolume* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_MeshVolume* operator->() - { - return (SMDS_MeshVolume *)ControlAccess(); - } - - SMDS_MeshVolume* operator->() const - { - return (SMDS_MeshVolume *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_MeshVolume)(); - - Standard_EXPORT static const Handle(SMDS_MeshVolume) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_Position.hxx b/src/SMDS/Handle_SMDS_Position.hxx deleted file mode 100644 index fcf380fde..000000000 --- a/src/SMDS/Handle_SMDS_Position.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_Position.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_Position_HeaderFile -#define _Handle_SMDS_Position_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_MMgt_TShared_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(MMgt_TShared); -class SMDS_Position; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_Position); - -class Handle(SMDS_Position) : public Handle(MMgt_TShared) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_Position)():Handle(MMgt_TShared)() {} - Handle(SMDS_Position)(const Handle(SMDS_Position)& aHandle) : Handle(MMgt_TShared)(aHandle) - { - } - - Handle(SMDS_Position)(const SMDS_Position* anItem) : Handle(MMgt_TShared)((MMgt_TShared *)anItem) - { - } - - Handle(SMDS_Position)& operator=(const Handle(SMDS_Position)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_Position)& operator=(const SMDS_Position* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_Position* operator->() - { - return (SMDS_Position *)ControlAccess(); - } - - SMDS_Position* operator->() const - { - return (SMDS_Position *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_Position)(); - - Standard_EXPORT static const Handle(SMDS_Position) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx b/src/SMDS/Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx deleted file mode 100644 index 7a92a2f14..000000000 --- a/src/SMDS/Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx +++ /dev/null @@ -1,99 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile -#define _Handle_SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_SeqNode_HeaderFile -#include -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_SeqNode); -class SMDS_SequenceNodeOfSequenceOfMesh; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh); - -class Handle(SMDS_SequenceNodeOfSequenceOfMesh) : public Handle(TCollection_SeqNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_SequenceNodeOfSequenceOfMesh)():Handle(TCollection_SeqNode)() {} - Handle(SMDS_SequenceNodeOfSequenceOfMesh)(const Handle(SMDS_SequenceNodeOfSequenceOfMesh)& aHandle) : Handle(TCollection_SeqNode)(aHandle) - { - } - - Handle(SMDS_SequenceNodeOfSequenceOfMesh)(const SMDS_SequenceNodeOfSequenceOfMesh* anItem) : Handle(TCollection_SeqNode)((TCollection_SeqNode *)anItem) - { - } - - Handle(SMDS_SequenceNodeOfSequenceOfMesh)& operator=(const Handle(SMDS_SequenceNodeOfSequenceOfMesh)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_SequenceNodeOfSequenceOfMesh)& operator=(const SMDS_SequenceNodeOfSequenceOfMesh* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_SequenceNodeOfSequenceOfMesh* operator->() - { - return (SMDS_SequenceNodeOfSequenceOfMesh *)ControlAccess(); - } - - SMDS_SequenceNodeOfSequenceOfMesh* operator->() const - { - return (SMDS_SequenceNodeOfSequenceOfMesh *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_SequenceNodeOfSequenceOfMesh)(); - - Standard_EXPORT static const Handle(SMDS_SequenceNodeOfSequenceOfMesh) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_SpacePosition.hxx b/src/SMDS/Handle_SMDS_SpacePosition.hxx deleted file mode 100644 index 175eaa620..000000000 --- a/src/SMDS/Handle_SMDS_SpacePosition.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_SpacePosition.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_SpacePosition_HeaderFile -#define _Handle_SMDS_SpacePosition_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_Position_HeaderFile -#include "Handle_SMDS_Position.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_Position); -class SMDS_SpacePosition; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_SpacePosition); - -class Handle(SMDS_SpacePosition) : public Handle(SMDS_Position) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_SpacePosition)():Handle(SMDS_Position)() {} - Handle(SMDS_SpacePosition)(const Handle(SMDS_SpacePosition)& aHandle) : Handle(SMDS_Position)(aHandle) - { - } - - Handle(SMDS_SpacePosition)(const SMDS_SpacePosition* anItem) : Handle(SMDS_Position)((SMDS_Position *)anItem) - { - } - - Handle(SMDS_SpacePosition)& operator=(const Handle(SMDS_SpacePosition)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_SpacePosition)& operator=(const SMDS_SpacePosition* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_SpacePosition* operator->() - { - return (SMDS_SpacePosition *)ControlAccess(); - } - - SMDS_SpacePosition* operator->() const - { - return (SMDS_SpacePosition *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_SpacePosition)(); - - Standard_EXPORT static const Handle(SMDS_SpacePosition) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_StdMapNodeOfExtendedMap.hxx b/src/SMDS/Handle_SMDS_StdMapNodeOfExtendedMap.hxx deleted file mode 100644 index c1ebb77f0..000000000 --- a/src/SMDS/Handle_SMDS_StdMapNodeOfExtendedMap.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_StdMapNodeOfExtendedMap.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_StdMapNodeOfExtendedMap_HeaderFile -#define _Handle_SMDS_StdMapNodeOfExtendedMap_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include "Handle_TCollection_MapNode.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_StdMapNodeOfExtendedMap; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_StdMapNodeOfExtendedMap); - -class Handle(SMDS_StdMapNodeOfExtendedMap) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_StdMapNodeOfExtendedMap)():Handle(TCollection_MapNode)() {} - Handle(SMDS_StdMapNodeOfExtendedMap)(const Handle(SMDS_StdMapNodeOfExtendedMap)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_StdMapNodeOfExtendedMap)(const SMDS_StdMapNodeOfExtendedMap* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_StdMapNodeOfExtendedMap)& operator=(const Handle(SMDS_StdMapNodeOfExtendedMap)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_StdMapNodeOfExtendedMap)& operator=(const SMDS_StdMapNodeOfExtendedMap* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_StdMapNodeOfExtendedMap* operator->() - { - return (SMDS_StdMapNodeOfExtendedMap *)ControlAccess(); - } - - SMDS_StdMapNodeOfExtendedMap* operator->() const - { - return (SMDS_StdMapNodeOfExtendedMap *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_StdMapNodeOfExtendedMap)(); - - Standard_EXPORT static const Handle(SMDS_StdMapNodeOfExtendedMap) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx b/src/SMDS/Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx deleted file mode 100644 index 464b0c5d4..000000000 --- a/src/SMDS/Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#define _Handle_SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_TCollection_MapNode_HeaderFile -#include "Handle_TCollection_MapNode.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(TCollection_MapNode); -class SMDS_StdMapNodeOfExtendedOrientedMap; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_StdMapNodeOfExtendedOrientedMap); - -class Handle(SMDS_StdMapNodeOfExtendedOrientedMap) : public Handle(TCollection_MapNode) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_StdMapNodeOfExtendedOrientedMap)():Handle(TCollection_MapNode)() {} - Handle(SMDS_StdMapNodeOfExtendedOrientedMap)(const Handle(SMDS_StdMapNodeOfExtendedOrientedMap)& aHandle) : Handle(TCollection_MapNode)(aHandle) - { - } - - Handle(SMDS_StdMapNodeOfExtendedOrientedMap)(const SMDS_StdMapNodeOfExtendedOrientedMap* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem) - { - } - - Handle(SMDS_StdMapNodeOfExtendedOrientedMap)& operator=(const Handle(SMDS_StdMapNodeOfExtendedOrientedMap)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_StdMapNodeOfExtendedOrientedMap)& operator=(const SMDS_StdMapNodeOfExtendedOrientedMap* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_StdMapNodeOfExtendedOrientedMap* operator->() - { - return (SMDS_StdMapNodeOfExtendedOrientedMap *)ControlAccess(); - } - - SMDS_StdMapNodeOfExtendedOrientedMap* operator->() const - { - return (SMDS_StdMapNodeOfExtendedOrientedMap *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_StdMapNodeOfExtendedOrientedMap)(); - - Standard_EXPORT static const Handle(SMDS_StdMapNodeOfExtendedOrientedMap) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/Handle_SMDS_VertexPosition.hxx b/src/SMDS/Handle_SMDS_VertexPosition.hxx deleted file mode 100644 index 21f2d7510..000000000 --- a/src/SMDS/Handle_SMDS_VertexPosition.hxx +++ /dev/null @@ -1,100 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : Handle_SMDS_VertexPosition.hxx -// Module : SMESH - -#ifndef _Handle_SMDS_VertexPosition_HeaderFile -#define _Handle_SMDS_VertexPosition_HeaderFile - -#ifndef _Standard_Macro_HeaderFile -#include -#endif -#ifndef _Standard_HeaderFile -#include -#endif - -#ifndef _Handle_SMDS_Position_HeaderFile -#include "Handle_SMDS_Position.hxx" -#endif - -class Standard_Transient; -class Handle_Standard_Type; -class Handle(SMDS_Position); -class SMDS_VertexPosition; -Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMDS_VertexPosition); - -class Handle(SMDS_VertexPosition) : public Handle(SMDS_Position) { - public: - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - Handle(SMDS_VertexPosition)():Handle(SMDS_Position)() {} - Handle(SMDS_VertexPosition)(const Handle(SMDS_VertexPosition)& aHandle) : Handle(SMDS_Position)(aHandle) - { - } - - Handle(SMDS_VertexPosition)(const SMDS_VertexPosition* anItem) : Handle(SMDS_Position)((SMDS_Position *)anItem) - { - } - - Handle(SMDS_VertexPosition)& operator=(const Handle(SMDS_VertexPosition)& aHandle) - { - Assign(aHandle.Access()); - return *this; - } - - Handle(SMDS_VertexPosition)& operator=(const SMDS_VertexPosition* anItem) - { - Assign((Standard_Transient *)anItem); - return *this; - } - - SMDS_VertexPosition* operator->() - { - return (SMDS_VertexPosition *)ControlAccess(); - } - - SMDS_VertexPosition* operator->() const - { - return (SMDS_VertexPosition *)ControlAccess(); - } - - Standard_EXPORT ~Handle(SMDS_VertexPosition)(); - - Standard_EXPORT static const Handle(SMDS_VertexPosition) DownCast(const Handle(Standard_Transient)& AnObject); -}; -#endif diff --git a/src/SMDS/SMDS.cdl b/src/SMDS/SMDS.cdl deleted file mode 100755 index 485d53591..000000000 --- a/src/SMDS/SMDS.cdl +++ /dev/null @@ -1,168 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -package SMDS - - ---Purpose: This package provides the classes Mesh and MeshElement - -- - -- class Mesh: - -- - contains the main definition of the - -- mesh and have access to the MeshElement objects - -- - -- class MeshElement: - -- - defines the topological constituants of the Mesh (i.e - -- the Node, Edge, Face and Volume entities. - -- - -- These two last classes inherits from an abstract - -- class MeshObject. - -uses - SMDSAbs, - MMgt, - TCollection, - TColStd, - TColgp, - gp - - -is - - ---================================= - ---Category: enumerations - -- - ---================================= - - enumeration TypeOfPosition is - TOP_UNSPEC, - TOP_3DSPACE, - TOP_VERTEX, - TOP_EDGE, - TOP_FACE - end TypeOfPosition; - ---Purpose: defines the type of position of a node (see SMDS_Position) - -- TOP_UNSPEC : node position not specfied - -- TOP_3DSPACE : just a 3d point in space not related - -- to a CAD geometry - -- TOP_VERTEX : to characterize a node with a CAD vertex - -- TOP_EDGE : to characterize a node with a CAD edge - -- TOP_FACE : to characterize a node with a CAD face - - ---===================================== - ---Category: public classes - -- Mesh object related classes - ---===================================== - - class MeshOrientedElementMapHasher; - - class MeshElementMapHasher; - - class PntHasher; - - deferred class MeshObject; - - class Mesh; - - deferred class MeshElement; - class MeshNode; - class MeshEdge; - deferred class MeshFace; - class MeshTriangle; - class MeshQuadrangle; - deferred class MeshVolume; - class MeshTetrahedron; - class MeshPyramid; - class MeshPrism; - class MeshHexahedron; - - private deferred class MeshIDFactory; - private class MeshNodeIDFactory; - private class MeshElementIDFactory; - - deferred class MeshElementsIterator; - class MeshVolumesIterator; - class MeshFacesIterator; - class MeshEdgesIterator; - class MeshNodesIterator; - - - deferred class Position; - class SpacePosition; - class VertexPosition; - class EdgePosition; - class FacePosition; - - ---================================= - ---Category: public classes - -- Mesh group - ---================================= - - class MeshGroup; - - ---================================= - ---Category: public classes - -- Mesh collection classes - ---================================= - - class ExtendedMap - instantiates Map from TCollection (MeshElement from SMDS, - MeshElementMapHasher from SMDS); - - class ExtendedOrientedMap - instantiates Map from TCollection (MeshElement from SMDS, - MeshOrientedElementMapHasher from SMDS); - - class DataMapOfPntInteger - instantiates DataMap from TCollection (Pnt from gp, - Integer, - PntHasher from SMDS); - class DataMapOfIntegerMeshElement instantiates - DataMap from TCollection(Integer,MeshElement from SMDS, - MapIntegerHasher from TColStd); - - class ListOfMeshElement - instantiates List from TCollection (MeshElement from SMDS); - - class ListOfMesh - instantiates List from TCollection (Mesh from SMDS); - - class MapOfMeshElement; - - class MapOfMeshOrientedElement; - - class SequenceOfMesh - instantiates Sequence from TCollection (Mesh from SMDS); - - class HSequenceOfMesh - instantiates HSequence from TCollection (Mesh from SMDS, - SequenceOfMesh from SMDS); - - - class ListOfMeshGroup - instantiates List from TCollection(MeshGroup from SMDS); - -end SMDS; - diff --git a/src/SMDS/SMDSAbs.cdl b/src/SMDS/SMDSAbs.cdl deleted file mode 100644 index bf71b9a2d..000000000 --- a/src/SMDS/SMDSAbs.cdl +++ /dev/null @@ -1,43 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSAbs.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -package SMDSAbs - - ---Purpose: This package provides enumeration and resources - -- for SMDS mesh -is - - enumeration ElementType is - All, - Node, - Edge, - Face, - Volume - end ElementType; - ---Purpose: type of mesh elements - - -end SMDSAbs; diff --git a/src/SMDS/SMDSControl.cdl b/src/SMDS/SMDSControl.cdl deleted file mode 100644 index 1acb1489c..000000000 --- a/src/SMDS/SMDSControl.cdl +++ /dev/null @@ -1,58 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSControl.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -package SMDSControl - - ---Purpose: provides classes for controlling the mesh - -- according to several criteria - -uses - - SMDS - -is - - ---Category: Classes - -- - - deferred class MeshBoundary; - class BoundaryEdges; - - class BoundaryFaces; - - ---Category: Package methods - -- - - ComputeNeighborFaces(M:Mesh from SMDS; ME: MeshElement from SMDS; idnode1,idnode2: Integer) - returns Integer; - - ComputeNeighborVolumes(M:Mesh from SMDS; ME: MeshElement from SMDS; idnode1,idnode2,idnode3: Integer) - returns Integer; - - ComputeNeighborVolumes(M:Mesh from SMDS; ME: MeshElement from SMDS; idnode1,idnode2,idnode3,idnode4: Integer) - returns Integer; - -end SMDSControl; diff --git a/src/SMDS/SMDSControl.ixx b/src/SMDS/SMDSControl.ixx deleted file mode 100644 index 2217757f3..000000000 --- a/src/SMDS/SMDSControl.ixx +++ /dev/null @@ -1,30 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl.ixx -// Module : SMESH - -#include "SMDSControl.jxx" - - - - diff --git a/src/SMDS/SMDSControl.jxx b/src/SMDS/SMDSControl.jxx deleted file mode 100644 index e12f32523..000000000 --- a/src/SMDS/SMDSControl.jxx +++ /dev/null @@ -1,34 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDSControl_HeaderFile -#include "SMDSControl.hxx" -#endif diff --git a/src/SMDS/SMDSControl_BoundaryEdges.cdl b/src/SMDS/SMDSControl_BoundaryEdges.cdl deleted file mode 100644 index b8edaeeaa..000000000 --- a/src/SMDS/SMDSControl_BoundaryEdges.cdl +++ /dev/null @@ -1,48 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSControl_BoundaryEdges.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class BoundaryEdges from SMDSControl inherits MeshBoundary from SMDSControl - - ---Purpose: compute the boudary edges of a mesh that is the - -- edges that are shared by only one face the result - -- is a new mesh created in the same factory as the - -- original mesh that contains only edges - -uses - - Mesh from SMDS, - MapOfMeshElement from SMDS -is - - Create(M: Mesh from SMDS) returns BoundaryEdges from SMDSControl; - - Compute(me: mutable) is redefined virtual; - -fields - - myBoundaryEdges : MapOfMeshElement from SMDS; - -end BoundaryEdges; diff --git a/src/SMDS/SMDSControl_BoundaryEdges.ixx b/src/SMDS/SMDSControl_BoundaryEdges.ixx deleted file mode 100644 index 4a90989c9..000000000 --- a/src/SMDS/SMDSControl_BoundaryEdges.ixx +++ /dev/null @@ -1,82 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl_BoundaryEdges.ixx -// Module : SMESH - -#include - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDSControl_BoundaryEdges::~SMDSControl_BoundaryEdges() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDSControl_BoundaryEdges_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDSControl_MeshBoundary); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDSControl_MeshBoundary); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDSControl_BoundaryEdges", - sizeof(SMDSControl_BoundaryEdges), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDSControl_BoundaryEdges) Handle(SMDSControl_BoundaryEdges)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDSControl_BoundaryEdges) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDSControl_BoundaryEdges))) { - _anOtherObject = Handle(SMDSControl_BoundaryEdges)((Handle(SMDSControl_BoundaryEdges)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDSControl_BoundaryEdges::DynamicType() const -{ - return STANDARD_TYPE(SMDSControl_BoundaryEdges) ; -} -Standard_Boolean SMDSControl_BoundaryEdges::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDSControl_BoundaryEdges) == AType || SMDSControl_MeshBoundary::IsKind(AType)); -} -Handle_SMDSControl_BoundaryEdges::~Handle_SMDSControl_BoundaryEdges() {} - diff --git a/src/SMDS/SMDSControl_BoundaryEdges.jxx b/src/SMDS/SMDSControl_BoundaryEdges.jxx deleted file mode 100644 index 2a9aae70f..000000000 --- a/src/SMDS/SMDSControl_BoundaryEdges.jxx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl_BoundaryEdges.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDSControl_BoundaryEdges_HeaderFile -#include "SMDSControl_BoundaryEdges.hxx" -#endif diff --git a/src/SMDS/SMDSControl_BoundaryFaces.cdl b/src/SMDS/SMDSControl_BoundaryFaces.cdl deleted file mode 100644 index 218139dda..000000000 --- a/src/SMDS/SMDSControl_BoundaryFaces.cdl +++ /dev/null @@ -1,50 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSControl_BoundaryFaces.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class BoundaryFaces from SMDSControl inherits MeshBoundary from SMDSControl - - ---Purpose: compute the boudary faces of a mesh that is the - -- faces that are shared by only one volume the result - -- is a new mesh created in the same factory as the - -- original mesh that contains only faces - -uses - - Mesh from SMDS, - MapOfMeshElement from SMDS - -is - - Create(M: Mesh from SMDS) returns BoundaryFaces from SMDSControl; - - Compute(me: mutable) is redefined virtual; - - -fields - - myBoundaryFaces : MapOfMeshElement from SMDS; - -end BoundaryFaces; diff --git a/src/SMDS/SMDSControl_BoundaryFaces.ixx b/src/SMDS/SMDSControl_BoundaryFaces.ixx deleted file mode 100644 index e8e2de439..000000000 --- a/src/SMDS/SMDSControl_BoundaryFaces.ixx +++ /dev/null @@ -1,82 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl_BoundaryFaces.ixx -// Module : SMESH - -#include "SMDSControl_BoundaryFaces.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDSControl_BoundaryFaces::~SMDSControl_BoundaryFaces() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDSControl_BoundaryFaces_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDSControl_MeshBoundary); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDSControl_MeshBoundary); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDSControl_BoundaryFaces", - sizeof(SMDSControl_BoundaryFaces), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDSControl_BoundaryFaces) Handle(SMDSControl_BoundaryFaces)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDSControl_BoundaryFaces) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDSControl_BoundaryFaces))) { - _anOtherObject = Handle(SMDSControl_BoundaryFaces)((Handle(SMDSControl_BoundaryFaces)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDSControl_BoundaryFaces::DynamicType() const -{ - return STANDARD_TYPE(SMDSControl_BoundaryFaces) ; -} -Standard_Boolean SMDSControl_BoundaryFaces::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDSControl_BoundaryFaces) == AType || SMDSControl_MeshBoundary::IsKind(AType)); -} -Handle_SMDSControl_BoundaryFaces::~Handle_SMDSControl_BoundaryFaces() {} - diff --git a/src/SMDS/SMDSControl_BoundaryFaces.jxx b/src/SMDS/SMDSControl_BoundaryFaces.jxx deleted file mode 100644 index 16e2d374d..000000000 --- a/src/SMDS/SMDSControl_BoundaryFaces.jxx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl_BoundaryFaces.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDSControl_BoundaryFaces_HeaderFile -#include "SMDSControl_BoundaryFaces.hxx" -#endif diff --git a/src/SMDS/SMDSControl_MeshBoundary.cdl b/src/SMDS/SMDSControl_MeshBoundary.cdl deleted file mode 100644 index 3d2981e46..000000000 --- a/src/SMDS/SMDSControl_MeshBoundary.cdl +++ /dev/null @@ -1,54 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSControl_MeshBoundary.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class MeshBoundary from SMDSControl inherits TShared from MMgt - - ---Purpose: common interface for classes which extract - -- boundaries from a mesh - -uses - - Mesh from SMDS - -is - Initialize; - ---Purpose: Initialize an empty MeshBoundary - - - Initialize (M : Mesh from SMDS); - ---Purpose: Initialize a MeshBoundary. - - - Compute(me: mutable) is deferred; - - ResultMesh(me: mutable) returns Mesh from SMDS; - - -fields - myMesh : Mesh from SMDS is protected; - myBoundaryMesh : Mesh from SMDS is protected; - -end MeshBoundary; diff --git a/src/SMDS/SMDSControl_MeshBoundary.ixx b/src/SMDS/SMDSControl_MeshBoundary.ixx deleted file mode 100644 index 701986b74..000000000 --- a/src/SMDS/SMDSControl_MeshBoundary.ixx +++ /dev/null @@ -1,80 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl_MeshBoundary.ixx -// Module : SMESH - -#include "SMDSControl_MeshBoundary.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include "Standard_TypeMismatch.hxx" -#endif - -SMDSControl_MeshBoundary::~SMDSControl_MeshBoundary() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDSControl_MeshBoundary_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDSControl_MeshBoundary", - sizeof(SMDSControl_MeshBoundary), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDSControl_MeshBoundary) Handle(SMDSControl_MeshBoundary)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDSControl_MeshBoundary) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDSControl_MeshBoundary))) { - _anOtherObject = Handle(SMDSControl_MeshBoundary)((Handle(SMDSControl_MeshBoundary)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDSControl_MeshBoundary::DynamicType() const -{ - return STANDARD_TYPE(SMDSControl_MeshBoundary) ; -} -Standard_Boolean SMDSControl_MeshBoundary::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDSControl_MeshBoundary) == AType || MMgt_TShared::IsKind(AType)); -} -Handle_SMDSControl_MeshBoundary::~Handle_SMDSControl_MeshBoundary() {} - diff --git a/src/SMDS/SMDSControl_MeshBoundary.jxx b/src/SMDS/SMDSControl_MeshBoundary.jxx deleted file mode 100644 index 3174236fd..000000000 --- a/src/SMDS/SMDSControl_MeshBoundary.jxx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSControl_MeshBoundary.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDSControl_MeshBoundary_HeaderFile -#include "SMDSControl_MeshBoundary.hxx" -#endif diff --git a/src/SMDS/SMDSEdit.cdl b/src/SMDS/SMDSEdit.cdl deleted file mode 100644 index f8302327c..000000000 --- a/src/SMDS/SMDSEdit.cdl +++ /dev/null @@ -1,43 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSEdit.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -package SMDSEdit - - ---Level : Public. - -- All methods of all classes will be public. - - ---Purpose: This package provides tool classes to edit or modify - -- Meshes or MeshElements - -- - -uses - SMDS, - gp -is - class Transform; - ---Purpose: tool class to modify a Mesh or MeshElements by a Transformation - -end SMDSEdit; diff --git a/src/SMDS/SMDSEdit_Transform.cdl b/src/SMDS/SMDSEdit_Transform.cdl deleted file mode 100644 index 1e8ee26d7..000000000 --- a/src/SMDS/SMDSEdit_Transform.cdl +++ /dev/null @@ -1,66 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDSEdit_Transform.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class Transform from SMDSEdit - - ---Purpose: tool to modify a Mesh or MeshElements by applying - -- a transformation - -uses - Mesh from SMDS, - ListOfMeshElement from SMDS, - Trsf from gp - -is - Create (aMesh : Mesh from SMDS; aTrsf: Trsf from gp) - returns Transform from SMDSEdit; - ---Purpose: create a transform tool on a whole mesh - - Create (aMesh : Mesh from SMDS; aListOfME : ListOfMeshElement from SMDS; - aTrsf : Trsf from gp) - returns Transform from SMDSEdit; - ---Purpose: create a transform tool to be applied on a list of - -- meshelements from the mesh aMesh. MeshElements from the - -- list that do not belong to the mesh will not be treated - - Perform (me: in out); - ---Purpose: Perform the current transformation on the Mesh or on - -- the list of meshelements if it is not empty - - SetTrsf(me: in out; aTrsf: Trsf from gp); - ---Purpose: replace the field myTrsf by the one given in argument - -- This can be used to apply another transformation on a mesh - -- without creating another instance of SMDSEdit_Transform - - GetTrsf(me) returns Trsf from gp; - ---Purpose: returns the stored Trsf - - -fields - myMesh : Mesh from SMDS; - myTrsf : Trsf from gp; - myListOfME : ListOfMeshElement from SMDS; -end Transform; diff --git a/src/SMDS/SMDSEdit_Transform.ixx b/src/SMDS/SMDSEdit_Transform.ixx deleted file mode 100644 index 27f75513a..000000000 --- a/src/SMDS/SMDSEdit_Transform.ixx +++ /dev/null @@ -1,30 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSEdit_Transform.ixx -// Module : SMESH - -#include "SMDSEdit_Transform.jxx" - - - - diff --git a/src/SMDS/SMDSEdit_Transform.jxx b/src/SMDS/SMDSEdit_Transform.jxx deleted file mode 100644 index e562e3427..000000000 --- a/src/SMDS/SMDSEdit_Transform.jxx +++ /dev/null @@ -1,37 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDSEdit_Transform.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _gp_Trsf_HeaderFile -#include -#endif -#ifndef _SMDS_ListOfMeshElement_HeaderFile -#include "SMDS_ListOfMeshElement.hxx" -#endif -#ifndef _SMDSEdit_Transform_HeaderFile -#include "SMDSEdit_Transform.hxx" -#endif diff --git a/src/SMDS/SMDS_BasicMap.lxx b/src/SMDS/SMDS_BasicMap.lxx deleted file mode 100644 index e388a1a12..000000000 --- a/src/SMDS/SMDS_BasicMap.lxx +++ /dev/null @@ -1,27 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_BasicMap.lxx -// Module : SMESH - -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_BasicMap.lxx has disappeared diff --git a/src/SMDS/SMDS_BasicMapIterator.lxx b/src/SMDS/SMDS_BasicMapIterator.lxx deleted file mode 100644 index e57713035..000000000 --- a/src/SMDS/SMDS_BasicMapIterator.lxx +++ /dev/null @@ -1,27 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_BasicMapIterator.lxx -// Module : SMESH - -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_BasicMapIterator.lxx has disappeared diff --git a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx b/src/SMDS/SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx deleted file mode 100644 index c122fadb6..000000000 --- a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx +++ /dev/null @@ -1,118 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_HeaderFile -#define _SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_HeaderFile - -#ifndef _TCollection_BasicMapIterator_HeaderFile -#include -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#include "Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx" -#endif -class Standard_NoSuchObject; -class SMDS_MeshElement; -class TColStd_MapIntegerHasher; -class SMDS_DataMapOfIntegerMeshElement; -class SMDS_DataMapNodeOfDataMapOfIntegerMeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement : public TCollection_BasicMapIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement(); -Standard_EXPORT SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement(const SMDS_DataMapOfIntegerMeshElement& aMap); -Standard_EXPORT void Initialize(const SMDS_DataMapOfIntegerMeshElement& aMap) ; -Standard_EXPORT const Standard_Integer& Key() const; -Standard_EXPORT const Handle_SMDS_MeshElement& Value() const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_0.cxx b/src/SMDS/SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_0.cxx deleted file mode 100644 index 70284221a..000000000 --- a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_0.cxx +++ /dev/null @@ -1,62 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _TColStd_MapIntegerHasher_HeaderFile -#include -#endif -#ifndef _SMDS_DataMapOfIntegerMeshElement_HeaderFile -#include "SMDS_DataMapOfIntegerMeshElement.hxx" -#endif -#ifndef _SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#include "SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx" -#endif - - -#define TheKey Standard_Integer -#define TheKey_hxx -#define TheItem Handle_SMDS_MeshElement -#define TheItem_hxx -#define Hasher TColStd_MapIntegerHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_() -#define TCollection_DataMap SMDS_DataMapOfIntegerMeshElement -#define TCollection_DataMap_hxx -#include - diff --git a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx b/src/SMDS/SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx deleted file mode 100644 index ceedae5e0..000000000 --- a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx +++ /dev/null @@ -1,115 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx -// Module : SMESH - -#ifndef _SMDS_DataMapIteratorOfDataMapOfPntInteger_HeaderFile -#define _SMDS_DataMapIteratorOfDataMapOfPntInteger_HeaderFile - -#ifndef _TCollection_BasicMapIterator_HeaderFile -#include -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#include "Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx" -#endif -class Standard_NoSuchObject; -class gp_Pnt; -class SMDS_PntHasher; -class SMDS_DataMapOfPntInteger; -class SMDS_DataMapNodeOfDataMapOfPntInteger; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_DataMapIteratorOfDataMapOfPntInteger : public TCollection_BasicMapIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_DataMapIteratorOfDataMapOfPntInteger(); -Standard_EXPORT SMDS_DataMapIteratorOfDataMapOfPntInteger(const SMDS_DataMapOfPntInteger& aMap); -Standard_EXPORT void Initialize(const SMDS_DataMapOfPntInteger& aMap) ; -Standard_EXPORT const gp_Pnt& Key() const; -Standard_EXPORT const Standard_Integer& Value() const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfPntInteger_0.cxx b/src/SMDS/SMDS_DataMapIteratorOfDataMapOfPntInteger_0.cxx deleted file mode 100644 index 055d7c670..000000000 --- a/src/SMDS/SMDS_DataMapIteratorOfDataMapOfPntInteger_0.cxx +++ /dev/null @@ -1,62 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapIteratorOfDataMapOfPntInteger_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_PntHasher_HeaderFile -#include "SMDS_PntHasher.hxx" -#endif -#ifndef _SMDS_DataMapOfPntInteger_HeaderFile -#include "SMDS_DataMapOfPntInteger.hxx" -#endif -#ifndef _SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#include "SMDS_DataMapNodeOfDataMapOfPntInteger.hxx" -#endif - - -#define TheKey gp_Pnt -#define TheKey_hxx -#define TheItem Standard_Integer -#define TheItem_hxx -#define Hasher SMDS_PntHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfPntInteger -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfPntInteger_Type_() -#define TCollection_DataMap SMDS_DataMapOfPntInteger -#define TCollection_DataMap_hxx -#include - diff --git a/src/SMDS/SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx b/src/SMDS/SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx deleted file mode 100644 index 0bdf8a6d0..000000000 --- a/src/SMDS/SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx +++ /dev/null @@ -1,152 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#define _SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#include "Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx" -#endif - -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class SMDS_MeshElement; -class TColStd_MapIntegerHasher; -class SMDS_DataMapOfIntegerMeshElement; -class SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement; - - -class SMDS_DataMapNodeOfDataMapOfIntegerMeshElement : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_DataMapNodeOfDataMapOfIntegerMeshElement(const Standard_Integer& K,const Handle(SMDS_MeshElement)& I,const TCollection_MapNodePtr& n); -Standard_EXPORT inline Standard_Integer& Key() const; -Standard_EXPORT inline Handle_SMDS_MeshElement& Value() const; -Standard_EXPORT ~SMDS_DataMapNodeOfDataMapOfIntegerMeshElement(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Standard_Integer myKey; -Handle_SMDS_MeshElement myValue; - - -}; - -#define TheKey Standard_Integer -#define TheKey_hxx -#define TheItem Handle_SMDS_MeshElement -#define TheItem_hxx -#define Hasher TColStd_MapIntegerHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_() -#define TCollection_DataMap SMDS_DataMapOfIntegerMeshElement -#define TCollection_DataMap_hxx - -#include - -#undef TheKey -#undef TheKey_hxx -#undef TheItem -#undef TheItem_hxx -#undef Hasher -#undef Hasher_hxx -#undef TCollection_DataMapNode -#undef TCollection_DataMapNode_hxx -#undef TCollection_DataMapIterator -#undef TCollection_DataMapIterator_hxx -#undef Handle_TCollection_DataMapNode -#undef TCollection_DataMapNode_Type_ -#undef TCollection_DataMap -#undef TCollection_DataMap_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_0.cxx b/src/SMDS/SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_0.cxx deleted file mode 100644 index b7af02b90..000000000 --- a/src/SMDS/SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_0.cxx +++ /dev/null @@ -1,111 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _TColStd_MapIntegerHasher_HeaderFile -#include -#endif -#ifndef _SMDS_DataMapOfIntegerMeshElement_HeaderFile -#include "SMDS_DataMapOfIntegerMeshElement.hxx" -#endif -#ifndef _SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_HeaderFile -#include "SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx" -#endif -SMDS_DataMapNodeOfDataMapOfIntegerMeshElement::~SMDS_DataMapNodeOfDataMapOfIntegerMeshElement() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_DataMapNodeOfDataMapOfIntegerMeshElement", - sizeof(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement) Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement))) { - _anOtherObject = Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)((Handle(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_DataMapNodeOfDataMapOfIntegerMeshElement::DynamicType() const -{ - return STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement) ; -} -Standard_Boolean SMDS_DataMapNodeOfDataMapOfIntegerMeshElement::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfIntegerMeshElement) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement::~Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement() {} -#define TheKey Standard_Integer -#define TheKey_hxx -#define TheItem Handle_SMDS_MeshElement -#define TheItem_hxx -#define Hasher TColStd_MapIntegerHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_() -#define TCollection_DataMap SMDS_DataMapOfIntegerMeshElement -#define TCollection_DataMap_hxx -#include - diff --git a/src/SMDS/SMDS_DataMapNodeOfDataMapOfPntInteger.hxx b/src/SMDS/SMDS_DataMapNodeOfDataMapOfPntInteger.hxx deleted file mode 100644 index 367ac1fa4..000000000 --- a/src/SMDS/SMDS_DataMapNodeOfDataMapOfPntInteger.hxx +++ /dev/null @@ -1,152 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapNodeOfDataMapOfPntInteger.hxx -// Module : SMESH - -#ifndef _SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#define _SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#include "Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx" -#endif - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class gp_Pnt; -class SMDS_PntHasher; -class SMDS_DataMapOfPntInteger; -class SMDS_DataMapIteratorOfDataMapOfPntInteger; - - -class SMDS_DataMapNodeOfDataMapOfPntInteger : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_DataMapNodeOfDataMapOfPntInteger(const gp_Pnt& K,const Standard_Integer& I,const TCollection_MapNodePtr& n); -Standard_EXPORT inline gp_Pnt& Key() const; -Standard_EXPORT inline Standard_Integer& Value() const; -Standard_EXPORT ~SMDS_DataMapNodeOfDataMapOfPntInteger(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_DataMapNodeOfDataMapOfPntInteger_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -gp_Pnt myKey; -Standard_Integer myValue; - - -}; - -#define TheKey gp_Pnt -#define TheKey_hxx -#define TheItem Standard_Integer -#define TheItem_hxx -#define Hasher SMDS_PntHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfPntInteger -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfPntInteger_Type_() -#define TCollection_DataMap SMDS_DataMapOfPntInteger -#define TCollection_DataMap_hxx - -#include - -#undef TheKey -#undef TheKey_hxx -#undef TheItem -#undef TheItem_hxx -#undef Hasher -#undef Hasher_hxx -#undef TCollection_DataMapNode -#undef TCollection_DataMapNode_hxx -#undef TCollection_DataMapIterator -#undef TCollection_DataMapIterator_hxx -#undef Handle_TCollection_DataMapNode -#undef TCollection_DataMapNode_Type_ -#undef TCollection_DataMap -#undef TCollection_DataMap_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_DataMapNodeOfDataMapOfPntInteger_0.cxx b/src/SMDS/SMDS_DataMapNodeOfDataMapOfPntInteger_0.cxx deleted file mode 100644 index 9ce9ef29c..000000000 --- a/src/SMDS/SMDS_DataMapNodeOfDataMapOfPntInteger_0.cxx +++ /dev/null @@ -1,111 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapNodeOfDataMapOfPntInteger_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_DataMapNodeOfDataMapOfPntInteger.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_PntHasher_HeaderFile -#include "SMDS_PntHasher.hxx" -#endif -#ifndef _SMDS_DataMapOfPntInteger_HeaderFile -#include "SMDS_DataMapOfPntInteger.hxx" -#endif -#ifndef _SMDS_DataMapIteratorOfDataMapOfPntInteger_HeaderFile -#include "SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx" -#endif -SMDS_DataMapNodeOfDataMapOfPntInteger::~SMDS_DataMapNodeOfDataMapOfPntInteger() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_DataMapNodeOfDataMapOfPntInteger_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_DataMapNodeOfDataMapOfPntInteger", - sizeof(SMDS_DataMapNodeOfDataMapOfPntInteger), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_DataMapNodeOfDataMapOfPntInteger) Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_DataMapNodeOfDataMapOfPntInteger) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfPntInteger))) { - _anOtherObject = Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)((Handle(SMDS_DataMapNodeOfDataMapOfPntInteger)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_DataMapNodeOfDataMapOfPntInteger::DynamicType() const -{ - return STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfPntInteger) ; -} -Standard_Boolean SMDS_DataMapNodeOfDataMapOfPntInteger::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_DataMapNodeOfDataMapOfPntInteger) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_DataMapNodeOfDataMapOfPntInteger::~Handle_SMDS_DataMapNodeOfDataMapOfPntInteger() {} -#define TheKey gp_Pnt -#define TheKey_hxx -#define TheItem Standard_Integer -#define TheItem_hxx -#define Hasher SMDS_PntHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfPntInteger -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfPntInteger_Type_() -#define TCollection_DataMap SMDS_DataMapOfPntInteger -#define TCollection_DataMap_hxx -#include - diff --git a/src/SMDS/SMDS_DataMapOfIntegerMeshElement.hxx b/src/SMDS/SMDS_DataMapOfIntegerMeshElement.hxx deleted file mode 100644 index 94582b6fb..000000000 --- a/src/SMDS/SMDS_DataMapOfIntegerMeshElement.hxx +++ /dev/null @@ -1,147 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapOfIntegerMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_DataMapOfIntegerMeshElement_HeaderFile -#define _SMDS_DataMapOfIntegerMeshElement_HeaderFile - -#ifndef _TCollection_BasicMap_HeaderFile -#include -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#include "Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_DomainError; -class Standard_NoSuchObject; -class SMDS_MeshElement; -class TColStd_MapIntegerHasher; -class SMDS_DataMapNodeOfDataMapOfIntegerMeshElement; -class SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_DataMapOfIntegerMeshElement : public TCollection_BasicMap { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_DataMapOfIntegerMeshElement(const Standard_Integer NbBuckets = 1); -Standard_EXPORT SMDS_DataMapOfIntegerMeshElement& Assign(const SMDS_DataMapOfIntegerMeshElement& Other) ; - SMDS_DataMapOfIntegerMeshElement& operator =(const SMDS_DataMapOfIntegerMeshElement& Other) -{ - return Assign(Other); -} - -Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ; -Standard_EXPORT void Clear() ; -~SMDS_DataMapOfIntegerMeshElement() -{ - Clear(); -} - -Standard_EXPORT Standard_Boolean Bind(const Standard_Integer& K,const Handle(SMDS_MeshElement)& I) ; -Standard_EXPORT Standard_Boolean IsBound(const Standard_Integer& K) const; -Standard_EXPORT Standard_Boolean UnBind(const Standard_Integer& K) ; -Standard_EXPORT const Handle_SMDS_MeshElement& Find(const Standard_Integer& K) const; - const Handle_SMDS_MeshElement& operator()(const Standard_Integer& K) const -{ - return Find(K); -} - -Standard_EXPORT Handle_SMDS_MeshElement& ChangeFind(const Standard_Integer& K) ; - Handle_SMDS_MeshElement& operator()(const Standard_Integer& K) -{ - return ChangeFind(K); -} - - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_DataMapOfIntegerMeshElement(const SMDS_DataMapOfIntegerMeshElement& Other); - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_DataMapOfIntegerMeshElement_0.cxx b/src/SMDS/SMDS_DataMapOfIntegerMeshElement_0.cxx deleted file mode 100644 index 0d0158cd7..000000000 --- a/src/SMDS/SMDS_DataMapOfIntegerMeshElement_0.cxx +++ /dev/null @@ -1,65 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapOfIntegerMeshElement_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_DataMapOfIntegerMeshElement.hxx" - -#ifndef _Standard_DomainError_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _TColStd_MapIntegerHasher_HeaderFile -#include -#endif -#ifndef _SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile -#include "SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx" -#endif -#ifndef _SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement_HeaderFile -#include "SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx" -#endif - - -#define TheKey Standard_Integer -#define TheKey_hxx -#define TheItem Handle_SMDS_MeshElement -#define TheItem_hxx -#define Hasher TColStd_MapIntegerHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_() -#define TCollection_DataMap SMDS_DataMapOfIntegerMeshElement -#define TCollection_DataMap_hxx -#include - diff --git a/src/SMDS/SMDS_DataMapOfPntInteger.hxx b/src/SMDS/SMDS_DataMapOfPntInteger.hxx deleted file mode 100644 index b805354eb..000000000 --- a/src/SMDS/SMDS_DataMapOfPntInteger.hxx +++ /dev/null @@ -1,144 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapOfPntInteger.hxx -// Module : SMESH - -#ifndef _SMDS_DataMapOfPntInteger_HeaderFile -#define _SMDS_DataMapOfPntInteger_HeaderFile - -#ifndef _TCollection_BasicMap_HeaderFile -#include -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#include "Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_DomainError; -class Standard_NoSuchObject; -class gp_Pnt; -class SMDS_PntHasher; -class SMDS_DataMapNodeOfDataMapOfPntInteger; -class SMDS_DataMapIteratorOfDataMapOfPntInteger; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_DataMapOfPntInteger : public TCollection_BasicMap { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_DataMapOfPntInteger(const Standard_Integer NbBuckets = 1); -Standard_EXPORT SMDS_DataMapOfPntInteger& Assign(const SMDS_DataMapOfPntInteger& Other) ; - SMDS_DataMapOfPntInteger& operator =(const SMDS_DataMapOfPntInteger& Other) -{ - return Assign(Other); -} - -Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ; -Standard_EXPORT void Clear() ; -~SMDS_DataMapOfPntInteger() -{ - Clear(); -} - -Standard_EXPORT Standard_Boolean Bind(const gp_Pnt& K,const Standard_Integer& I) ; -Standard_EXPORT Standard_Boolean IsBound(const gp_Pnt& K) const; -Standard_EXPORT Standard_Boolean UnBind(const gp_Pnt& K) ; -Standard_EXPORT const Standard_Integer& Find(const gp_Pnt& K) const; - const Standard_Integer& operator()(const gp_Pnt& K) const -{ - return Find(K); -} - -Standard_EXPORT Standard_Integer& ChangeFind(const gp_Pnt& K) ; - Standard_Integer& operator()(const gp_Pnt& K) -{ - return ChangeFind(K); -} - - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_DataMapOfPntInteger(const SMDS_DataMapOfPntInteger& Other); - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_DataMapOfPntInteger_0.cxx b/src/SMDS/SMDS_DataMapOfPntInteger_0.cxx deleted file mode 100644 index 6ae2f2dc1..000000000 --- a/src/SMDS/SMDS_DataMapOfPntInteger_0.cxx +++ /dev/null @@ -1,65 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_DataMapOfPntInteger_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_DataMapOfPntInteger.hxx" - -#ifndef _Standard_DomainError_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_PntHasher_HeaderFile -#include "SMDS_PntHasher.hxx" -#endif -#ifndef _SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile -#include "SMDS_DataMapNodeOfDataMapOfPntInteger.hxx" -#endif -#ifndef _SMDS_DataMapIteratorOfDataMapOfPntInteger_HeaderFile -#include "SMDS_DataMapIteratorOfDataMapOfPntInteger.hxx" -#endif - - -#define TheKey gp_Pnt -#define TheKey_hxx -#define TheItem Standard_Integer -#define TheItem_hxx -#define Hasher SMDS_PntHasher -#define Hasher_hxx -#define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_hxx -#define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfPntInteger -#define TCollection_DataMapIterator_hxx -#define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfPntInteger -#define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfPntInteger_Type_() -#define TCollection_DataMap SMDS_DataMapOfPntInteger -#define TCollection_DataMap_hxx -#include - diff --git a/src/SMDS/SMDS_EdgePosition.cdl b/src/SMDS/SMDS_EdgePosition.cdl deleted file mode 100644 index 8ebaf5a3d..000000000 --- a/src/SMDS/SMDS_EdgePosition.cdl +++ /dev/null @@ -1,56 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_EdgePosition.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class EdgePosition from SMDS inherits Position from SMDS - - ---Purpose: used to characterize a MeshNode with a CAD edge - -uses - Pnt from gp - -is - - Create returns mutable EdgePosition; - ---Purpose: empty constructor. the edge is not set - - Create(aEdgeId : Integer; aUParam : Real) returns mutable EdgePosition; - - Coords(me) returns Pnt from gp is redefined virtual; - ---Purpose: returns the resulting 3d point to be set - -- in the MeshNode instance - - SetUParameter(me: mutable; aUparam : Real); - ---C++: inline - - GetUParameter(me) returns Real; - ---C++: inline - -fields - - myUParameter : Real; - -end EdgePosition; diff --git a/src/SMDS/SMDS_EdgePosition.ixx b/src/SMDS/SMDS_EdgePosition.ixx deleted file mode 100644 index 1205a4e0e..000000000 --- a/src/SMDS/SMDS_EdgePosition.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_EdgePosition.ixx -// Module : SMESH - -#include "SMDS_EdgePosition.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_EdgePosition::~SMDS_EdgePosition() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_EdgePosition_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_Position); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_Position); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_EdgePosition", - sizeof(SMDS_EdgePosition), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_EdgePosition) Handle(SMDS_EdgePosition)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_EdgePosition) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_EdgePosition))) { - _anOtherObject = Handle(SMDS_EdgePosition)((Handle(SMDS_EdgePosition)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_EdgePosition::DynamicType() const -{ - return STANDARD_TYPE(SMDS_EdgePosition) ; -} -Standard_Boolean SMDS_EdgePosition::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_EdgePosition) == AType || SMDS_Position::IsKind(AType)); -} -Handle_SMDS_EdgePosition::~Handle_SMDS_EdgePosition() {} - diff --git a/src/SMDS/SMDS_EdgePosition.jxx b/src/SMDS/SMDS_EdgePosition.jxx deleted file mode 100644 index 814aa9a70..000000000 --- a/src/SMDS/SMDS_EdgePosition.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_EdgePosition.jxx -// Module : SMESH - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_EdgePosition_HeaderFile -#include "SMDS_EdgePosition.hxx" -#endif diff --git a/src/SMDS/SMDS_EdgePosition.lxx b/src/SMDS/SMDS_EdgePosition.lxx deleted file mode 100644 index c96eaacea..000000000 --- a/src/SMDS/SMDS_EdgePosition.lxx +++ /dev/null @@ -1,41 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_EdgePosition.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline void SMDS_EdgePosition::SetUParameter(const Standard_Real aUparam) -{ - myUParameter = aUparam; -} - -//======================================================================= -//function : GetUParameter -//purpose : -//======================================================================= - -inline Standard_Real SMDS_EdgePosition::GetUParameter() const -{ - return myUParameter; -} diff --git a/src/SMDS/SMDS_ExtendedMap.hxx b/src/SMDS/SMDS_ExtendedMap.hxx deleted file mode 100644 index 25aa32283..000000000 --- a/src/SMDS/SMDS_ExtendedMap.hxx +++ /dev/null @@ -1,134 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ExtendedMap.hxx -// Module : SMESH - -#ifndef _SMDS_ExtendedMap_HeaderFile -#define _SMDS_ExtendedMap_HeaderFile - -#ifndef _TCollection_BasicMap_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_StdMapNodeOfExtendedMap_HeaderFile -#include "Handle_SMDS_StdMapNodeOfExtendedMap.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_DomainError; -class SMDS_MeshElement; -class SMDS_MeshElementMapHasher; -class SMDS_StdMapNodeOfExtendedMap; -class SMDS_MapIteratorOfExtendedMap; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ExtendedMap : public TCollection_BasicMap { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ExtendedMap(const Standard_Integer NbBuckets = 1); -Standard_EXPORT SMDS_ExtendedMap& Assign(const SMDS_ExtendedMap& Other) ; - SMDS_ExtendedMap& operator =(const SMDS_ExtendedMap& Other) -{ - return Assign(Other); -} - -Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ; -Standard_EXPORT void Clear() ; -~SMDS_ExtendedMap() -{ - Clear(); -} - -Standard_EXPORT Standard_Boolean Add(const Handle(SMDS_MeshElement)& aKey) ; -Standard_EXPORT Standard_Boolean Contains(const Handle(SMDS_MeshElement)& aKey) const; -Standard_EXPORT Standard_Boolean Remove(const Handle(SMDS_MeshElement)& aKey) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_ExtendedMap(const SMDS_ExtendedMap& Other); - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ExtendedMap_0.cxx b/src/SMDS/SMDS_ExtendedMap_0.cxx deleted file mode 100644 index f522b6205..000000000 --- a/src/SMDS/SMDS_ExtendedMap_0.cxx +++ /dev/null @@ -1,60 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ExtendedMap_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ExtendedMap.hxx" - -#ifndef _Standard_DomainError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#include "SMDS_MeshElementMapHasher.hxx" -#endif -#ifndef _SMDS_StdMapNodeOfExtendedMap_HeaderFile -#include "SMDS_StdMapNodeOfExtendedMap.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedMap.hxx" -#endif - - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedMap_Type_() -#define TCollection_Map SMDS_ExtendedMap -#define TCollection_Map_hxx -#include - diff --git a/src/SMDS/SMDS_ExtendedOrientedMap.hxx b/src/SMDS/SMDS_ExtendedOrientedMap.hxx deleted file mode 100644 index f1a0727d7..000000000 --- a/src/SMDS/SMDS_ExtendedOrientedMap.hxx +++ /dev/null @@ -1,134 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ExtendedOrientedMap.hxx -// Module : SMESH - -#ifndef _SMDS_ExtendedOrientedMap_HeaderFile -#define _SMDS_ExtendedOrientedMap_HeaderFile - -#ifndef _TCollection_BasicMap_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#include "Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_DomainError; -class SMDS_MeshElement; -class SMDS_MeshOrientedElementMapHasher; -class SMDS_StdMapNodeOfExtendedOrientedMap; -class SMDS_MapIteratorOfExtendedOrientedMap; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ExtendedOrientedMap : public TCollection_BasicMap { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ExtendedOrientedMap(const Standard_Integer NbBuckets = 1); -Standard_EXPORT SMDS_ExtendedOrientedMap& Assign(const SMDS_ExtendedOrientedMap& Other) ; - SMDS_ExtendedOrientedMap& operator =(const SMDS_ExtendedOrientedMap& Other) -{ - return Assign(Other); -} - -Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ; -Standard_EXPORT void Clear() ; -~SMDS_ExtendedOrientedMap() -{ - Clear(); -} - -Standard_EXPORT Standard_Boolean Add(const Handle(SMDS_MeshElement)& aKey) ; -Standard_EXPORT Standard_Boolean Contains(const Handle(SMDS_MeshElement)& aKey) const; -Standard_EXPORT Standard_Boolean Remove(const Handle(SMDS_MeshElement)& aKey) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_ExtendedOrientedMap(const SMDS_ExtendedOrientedMap& Other); - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ExtendedOrientedMap_0.cxx b/src/SMDS/SMDS_ExtendedOrientedMap_0.cxx deleted file mode 100644 index 7c32546a6..000000000 --- a/src/SMDS/SMDS_ExtendedOrientedMap_0.cxx +++ /dev/null @@ -1,60 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ExtendedOrientedMap_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ExtendedOrientedMap.hxx" - -#ifndef _Standard_DomainError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshOrientedElementMapHasher_HeaderFile -#include "SMDS_MeshOrientedElementMapHasher.hxx" -#endif -#ifndef _SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#include "SMDS_StdMapNodeOfExtendedOrientedMap.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedOrientedMap.hxx" -#endif - - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshOrientedElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedOrientedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedOrientedMap_Type_() -#define TCollection_Map SMDS_ExtendedOrientedMap -#define TCollection_Map_hxx -#include - diff --git a/src/SMDS/SMDS_FacePosition.cdl b/src/SMDS/SMDS_FacePosition.cdl deleted file mode 100644 index 47d7a4005..000000000 --- a/src/SMDS/SMDS_FacePosition.cdl +++ /dev/null @@ -1,64 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_FacePosition.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class FacePosition from SMDS inherits Position from SMDS - - ---Purpose: used to characterize a MeshNode with a CAD face - -uses - Pnt from gp - -is - - Create returns mutable FacePosition; - ---Purpose: empty constructor. the face is not set - - Create(aFaceId : Integer; aUParam,aVParam : Real) - returns mutable FacePosition; - - Coords(me) returns Pnt from gp is redefined virtual; - ---Purpose: returns the resulting 3d point to be set - -- in the MeshNode instance - - SetUParameter(me: mutable; aUparam : Real); - ---C++: inline - - SetVParameter(me: mutable; aVparam : Real); - ---C++: inline - - GetUParameter(me) returns Real; - ---C++: inline - - GetVParameter(me) returns Real; - ---C++: inline - -fields - - myUParameter : Real; - myVParameter : Real; - -end FacePosition; diff --git a/src/SMDS/SMDS_FacePosition.ixx b/src/SMDS/SMDS_FacePosition.ixx deleted file mode 100644 index c852c2fd4..000000000 --- a/src/SMDS/SMDS_FacePosition.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_FacePosition.ixx -// Module : SMESH - -#include "SMDS_FacePosition.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_FacePosition::~SMDS_FacePosition() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_FacePosition_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_Position); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_Position); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_FacePosition", - sizeof(SMDS_FacePosition), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_FacePosition) Handle(SMDS_FacePosition)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_FacePosition) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_FacePosition))) { - _anOtherObject = Handle(SMDS_FacePosition)((Handle(SMDS_FacePosition)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_FacePosition::DynamicType() const -{ - return STANDARD_TYPE(SMDS_FacePosition) ; -} -Standard_Boolean SMDS_FacePosition::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_FacePosition) == AType || SMDS_Position::IsKind(AType)); -} -Handle_SMDS_FacePosition::~Handle_SMDS_FacePosition() {} - diff --git a/src/SMDS/SMDS_FacePosition.jxx b/src/SMDS/SMDS_FacePosition.jxx deleted file mode 100644 index 7c38ae4a8..000000000 --- a/src/SMDS/SMDS_FacePosition.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_FacePosition.jxx -// Module : SMESH - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_FacePosition_HeaderFile -#include "SMDS_FacePosition.hxx" -#endif diff --git a/src/SMDS/SMDS_FacePosition.lxx b/src/SMDS/SMDS_FacePosition.lxx deleted file mode 100644 index 5241b59cf..000000000 --- a/src/SMDS/SMDS_FacePosition.lxx +++ /dev/null @@ -1,61 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_FacePosition.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline void SMDS_FacePosition::SetUParameter(const Standard_Real aUparam) -{ - myUParameter = aUparam; -} - -//======================================================================= -//function : SetVParameter -//purpose : -//======================================================================= - -inline void SMDS_FacePosition::SetVParameter(const Standard_Real aVparam) -{ - myVParameter = aVparam; -} - -//======================================================================= -//function : GetUParameter -//purpose : -//======================================================================= - -inline Standard_Real SMDS_FacePosition::GetUParameter() const -{ - return myUParameter; -} - -//======================================================================= -//function : GetVParameter -//purpose : -//======================================================================= - -inline Standard_Real SMDS_FacePosition::GetVParameter() const -{ - return myVParameter; -} diff --git a/src/SMDS/SMDS_HSequenceOfMesh.hxx b/src/SMDS/SMDS_HSequenceOfMesh.hxx deleted file mode 100644 index 2c26abe18..000000000 --- a/src/SMDS/SMDS_HSequenceOfMesh.hxx +++ /dev/null @@ -1,165 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_HSequenceOfMesh.hxx -// Module : SMESH - -#ifndef _SMDS_HSequenceOfMesh_HeaderFile -#define _SMDS_HSequenceOfMesh_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_HSequenceOfMesh_HeaderFile -#include "Handle_SMDS_HSequenceOfMesh.hxx" -#endif - -#ifndef _SMDS_SequenceOfMesh_HeaderFile -#include "SMDS_SequenceOfMesh.hxx" -#endif -#ifndef _MMgt_TShared_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class Standard_OutOfRange; -class SMDS_Mesh; -class SMDS_SequenceOfMesh; - - -class SMDS_HSequenceOfMesh : public MMgt_TShared { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_HSequenceOfMesh(); -Standard_EXPORT inline Standard_Boolean IsEmpty() const; -Standard_EXPORT inline Standard_Integer Length() const; -Standard_EXPORT void Clear() ; -Standard_EXPORT void Append(const Handle(SMDS_Mesh)& anItem) ; -Standard_EXPORT void Append(const Handle(SMDS_HSequenceOfMesh)& aSequence) ; -Standard_EXPORT void Prepend(const Handle(SMDS_Mesh)& anItem) ; -Standard_EXPORT void Prepend(const Handle(SMDS_HSequenceOfMesh)& aSequence) ; -Standard_EXPORT void Reverse() ; -Standard_EXPORT void InsertBefore(const Standard_Integer anIndex,const Handle(SMDS_Mesh)& anItem) ; -Standard_EXPORT void InsertBefore(const Standard_Integer anIndex,const Handle(SMDS_HSequenceOfMesh)& aSequence) ; -Standard_EXPORT void InsertAfter(const Standard_Integer anIndex,const Handle(SMDS_Mesh)& anItem) ; -Standard_EXPORT void InsertAfter(const Standard_Integer anIndex,const Handle(SMDS_HSequenceOfMesh)& aSequence) ; -Standard_EXPORT void Exchange(const Standard_Integer anIndex,const Standard_Integer anOtherIndex) ; -Standard_EXPORT Handle_SMDS_HSequenceOfMesh Split(const Standard_Integer anIndex) ; -Standard_EXPORT void SetValue(const Standard_Integer anIndex,const Handle(SMDS_Mesh)& anItem) ; -Standard_EXPORT const Handle_SMDS_Mesh& Value(const Standard_Integer anIndex) const; -Standard_EXPORT Handle_SMDS_Mesh& ChangeValue(const Standard_Integer anIndex) ; -Standard_EXPORT void Remove(const Standard_Integer anIndex) ; -Standard_EXPORT void Remove(const Standard_Integer fromIndex,const Standard_Integer toIndex) ; -Standard_EXPORT inline const SMDS_SequenceOfMesh& Sequence() const; -Standard_EXPORT inline SMDS_SequenceOfMesh& ChangeSequence() ; -Standard_EXPORT Handle_SMDS_HSequenceOfMesh ShallowCopy() const; -Standard_EXPORT ~SMDS_HSequenceOfMesh(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_HSequenceOfMesh_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -SMDS_SequenceOfMesh mySequence; - - -}; - -#define Item Handle_SMDS_Mesh -#define Item_hxx "SMDS_Mesh.hxx" -#define TheSequence SMDS_SequenceOfMesh -#define TheSequence_hxx "SMDS_SequenceOfMesh.hxx" -#define TCollection_HSequence SMDS_HSequenceOfMesh -#define TCollection_HSequence_hxx "SMDS_HSequenceOfMesh.hxx" -#define Handle_TCollection_HSequence Handle_SMDS_HSequenceOfMesh -#define TCollection_HSequence_Type_() SMDS_HSequenceOfMesh_Type_() - -#include - -#undef Item -#undef Item_hxx -#undef TheSequence -#undef TheSequence_hxx -#undef TCollection_HSequence -#undef TCollection_HSequence_hxx -#undef Handle_TCollection_HSequence -#undef TCollection_HSequence_Type_ - - -// other inline functions and methods (like "C++: function call" methods) -// -inline Handle_SMDS_HSequenceOfMesh ShallowCopy(const Handle_SMDS_HSequenceOfMesh& me) { - return me->ShallowCopy(); -} - - - -#endif diff --git a/src/SMDS/SMDS_HSequenceOfMesh_0.cxx b/src/SMDS/SMDS_HSequenceOfMesh_0.cxx deleted file mode 100644 index 4db22ddcc..000000000 --- a/src/SMDS/SMDS_HSequenceOfMesh_0.cxx +++ /dev/null @@ -1,102 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_HSequenceOfMesh_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_HSequenceOfMesh.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _Standard_OutOfRange_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_SequenceOfMesh_HeaderFile -#include "SMDS_SequenceOfMesh.hxx" -#endif -SMDS_HSequenceOfMesh::~SMDS_HSequenceOfMesh() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_HSequenceOfMesh_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_HSequenceOfMesh", - sizeof(SMDS_HSequenceOfMesh), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_HSequenceOfMesh) Handle(SMDS_HSequenceOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_HSequenceOfMesh) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_HSequenceOfMesh))) { - _anOtherObject = Handle(SMDS_HSequenceOfMesh)((Handle(SMDS_HSequenceOfMesh)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_HSequenceOfMesh::DynamicType() const -{ - return STANDARD_TYPE(SMDS_HSequenceOfMesh) ; -} -Standard_Boolean SMDS_HSequenceOfMesh::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_HSequenceOfMesh) == AType || MMgt_TShared::IsKind(AType)); -} -Handle_SMDS_HSequenceOfMesh::~Handle_SMDS_HSequenceOfMesh() {} -#define Item Handle_SMDS_Mesh -#define Item_hxx "SMDS_Mesh.hxx" -#define TheSequence SMDS_SequenceOfMesh -#define TheSequence_hxx "SMDS_SequenceOfMesh.hxx" -#define TCollection_HSequence SMDS_HSequenceOfMesh -#define TCollection_HSequence_hxx "SMDS_HSequenceOfMesh.hxx" -#define Handle_TCollection_HSequence Handle_SMDS_HSequenceOfMesh -#define TCollection_HSequence_Type_() SMDS_HSequenceOfMesh_Type_() -#include - diff --git a/src/SMDS/SMDS_ListIteratorOfListOfMesh.hxx b/src/SMDS/SMDS_ListIteratorOfListOfMesh.hxx deleted file mode 100644 index 09501ea2b..000000000 --- a/src/SMDS/SMDS_ListIteratorOfListOfMesh.hxx +++ /dev/null @@ -1,143 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListIteratorOfListOfMesh.hxx -// Module : SMESH - -#ifndef _SMDS_ListIteratorOfListOfMesh_HeaderFile -#define _SMDS_ListIteratorOfListOfMesh_HeaderFile - -#ifndef _Standard_Address_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMesh_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMesh.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_ListOfMesh; -class SMDS_Mesh; -class SMDS_ListNodeOfListOfMesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ListIteratorOfListOfMesh { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ListIteratorOfListOfMesh(); -Standard_EXPORT SMDS_ListIteratorOfListOfMesh(const SMDS_ListOfMesh& L); -Standard_EXPORT void Initialize(const SMDS_ListOfMesh& L) ; -Standard_EXPORT inline Standard_Boolean More() const; -Standard_EXPORT void Next() ; -Standard_EXPORT Handle_SMDS_Mesh& Value() const; - - -friend class SMDS_ListOfMesh; - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Standard_Address current; -Standard_Address previous; - - -}; - -#define Item Handle_SMDS_Mesh -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMesh -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMesh_Type_() -#define TCollection_List SMDS_ListOfMesh -#define TCollection_List_hxx - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListIteratorOfListOfMeshElement.hxx b/src/SMDS/SMDS_ListIteratorOfListOfMeshElement.hxx deleted file mode 100644 index ada691eb0..000000000 --- a/src/SMDS/SMDS_ListIteratorOfListOfMeshElement.hxx +++ /dev/null @@ -1,143 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListIteratorOfListOfMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_ListIteratorOfListOfMeshElement_HeaderFile -#define _SMDS_ListIteratorOfListOfMeshElement_HeaderFile - -#ifndef _Standard_Address_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMeshElement_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMeshElement.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_ListOfMeshElement; -class SMDS_MeshElement; -class SMDS_ListNodeOfListOfMeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ListIteratorOfListOfMeshElement { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ListIteratorOfListOfMeshElement(); -Standard_EXPORT SMDS_ListIteratorOfListOfMeshElement(const SMDS_ListOfMeshElement& L); -Standard_EXPORT void Initialize(const SMDS_ListOfMeshElement& L) ; -Standard_EXPORT inline Standard_Boolean More() const; -Standard_EXPORT void Next() ; -Standard_EXPORT Handle_SMDS_MeshElement& Value() const; - - -friend class SMDS_ListOfMeshElement; - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Standard_Address current; -Standard_Address previous; - - -}; - -#define Item Handle_SMDS_MeshElement -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_() -#define TCollection_List SMDS_ListOfMeshElement -#define TCollection_List_hxx - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListIteratorOfListOfMeshElement_0.cxx b/src/SMDS/SMDS_ListIteratorOfListOfMeshElement_0.cxx deleted file mode 100644 index bf54c13d9..000000000 --- a/src/SMDS/SMDS_ListIteratorOfListOfMeshElement_0.cxx +++ /dev/null @@ -1,58 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListIteratorOfListOfMeshElement_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListIteratorOfListOfMeshElement.hxx" - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_ListOfMeshElement_HeaderFile -#include "SMDS_ListOfMeshElement.hxx" -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_ListNodeOfListOfMeshElement_HeaderFile -#include "SMDS_ListNodeOfListOfMeshElement.hxx" -#endif - - -#define Item Handle_SMDS_MeshElement -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_() -#define TCollection_List SMDS_ListOfMeshElement -#define TCollection_List_hxx -#include - diff --git a/src/SMDS/SMDS_ListIteratorOfListOfMeshGroup.hxx b/src/SMDS/SMDS_ListIteratorOfListOfMeshGroup.hxx deleted file mode 100644 index 8edd9e204..000000000 --- a/src/SMDS/SMDS_ListIteratorOfListOfMeshGroup.hxx +++ /dev/null @@ -1,142 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_ListIteratorOfListOfMeshGroup.hxx -// Module : SMESH - -#ifndef _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile -#define _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile - -#ifndef _Standard_Address_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshGroup_HeaderFile -#include "Handle_SMDS_MeshGroup.hxx" -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_ListOfMeshGroup; -class SMDS_MeshGroup; -class SMDS_ListNodeOfListOfMeshGroup; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ListIteratorOfListOfMeshGroup { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ListIteratorOfListOfMeshGroup(); -Standard_EXPORT SMDS_ListIteratorOfListOfMeshGroup(const SMDS_ListOfMeshGroup& L); -Standard_EXPORT void Initialize(const SMDS_ListOfMeshGroup& L) ; -Standard_EXPORT inline Standard_Boolean More() const; -Standard_EXPORT void Next() ; -Standard_EXPORT Handle_SMDS_MeshGroup& Value() const; - - -friend class SMDS_ListOfMeshGroup; - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Standard_Address current; -Standard_Address previous; - - -}; - -#define Item Handle_SMDS_MeshGroup -#define Item_hxx "SMDS_MeshGroup.hxx" -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx" -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup -#define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_() -#define TCollection_List SMDS_ListOfMeshGroup -#define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx" - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListIteratorOfListOfMeshGroup_0.cxx b/src/SMDS/SMDS_ListIteratorOfListOfMeshGroup_0.cxx deleted file mode 100644 index dd62b94ef..000000000 --- a/src/SMDS/SMDS_ListIteratorOfListOfMeshGroup_0.cxx +++ /dev/null @@ -1,57 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_ListIteratorOfListOfMeshGroup_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListIteratorOfListOfMeshGroup.hxx" - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_ListOfMeshGroup_HeaderFile -#include "SMDS_ListOfMeshGroup.hxx" -#endif -#ifndef _SMDS_MeshGroup_HeaderFile -#include "SMDS_MeshGroup.hxx" -#endif -#ifndef _SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#include "SMDS_ListNodeOfListOfMeshGroup.hxx" -#endif - - -#define Item Handle_SMDS_MeshGroup -#define Item_hxx "SMDS_MeshGroup.hxx" -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx" -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup -#define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_() -#define TCollection_List SMDS_ListOfMeshGroup -#define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx" -#include - diff --git a/src/SMDS/SMDS_ListIteratorOfListOfMesh_0.cxx b/src/SMDS/SMDS_ListIteratorOfListOfMesh_0.cxx deleted file mode 100644 index 69ed19cce..000000000 --- a/src/SMDS/SMDS_ListIteratorOfListOfMesh_0.cxx +++ /dev/null @@ -1,58 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListIteratorOfListOfMesh_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListIteratorOfListOfMesh.hxx" - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_ListOfMesh_HeaderFile -#include "SMDS_ListOfMesh.hxx" -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_ListNodeOfListOfMesh_HeaderFile -#include "SMDS_ListNodeOfListOfMesh.hxx" -#endif - - -#define Item Handle_SMDS_Mesh -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMesh -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMesh_Type_() -#define TCollection_List SMDS_ListOfMesh -#define TCollection_List_hxx -#include - diff --git a/src/SMDS/SMDS_ListNodeOfListOfMesh.hxx b/src/SMDS/SMDS_ListNodeOfListOfMesh.hxx deleted file mode 100644 index 6c9432988..000000000 --- a/src/SMDS/SMDS_ListNodeOfListOfMesh.hxx +++ /dev/null @@ -1,138 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListNodeOfListOfMesh.hxx -// Module : SMESH - -#ifndef _SMDS_ListNodeOfListOfMesh_HeaderFile -#define _SMDS_ListNodeOfListOfMesh_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMesh_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMesh.hxx" -#endif - -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class SMDS_Mesh; -class SMDS_ListOfMesh; -class SMDS_ListIteratorOfListOfMesh; - - -class SMDS_ListNodeOfListOfMesh : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_ListNodeOfListOfMesh(const Handle(SMDS_Mesh)& I,const TCollection_MapNodePtr& n); -Standard_EXPORT inline Handle_SMDS_Mesh& Value() const; -Standard_EXPORT ~SMDS_ListNodeOfListOfMesh(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_ListNodeOfListOfMesh_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Handle_SMDS_Mesh myValue; - - -}; - -#define Item Handle_SMDS_Mesh -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMesh -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMesh_Type_() -#define TCollection_List SMDS_ListOfMesh -#define TCollection_List_hxx - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListNodeOfListOfMeshElement.hxx b/src/SMDS/SMDS_ListNodeOfListOfMeshElement.hxx deleted file mode 100644 index 5ba30257b..000000000 --- a/src/SMDS/SMDS_ListNodeOfListOfMeshElement.hxx +++ /dev/null @@ -1,138 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListNodeOfListOfMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_ListNodeOfListOfMeshElement_HeaderFile -#define _SMDS_ListNodeOfListOfMeshElement_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMeshElement_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMeshElement.hxx" -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class SMDS_MeshElement; -class SMDS_ListOfMeshElement; -class SMDS_ListIteratorOfListOfMeshElement; - - -class SMDS_ListNodeOfListOfMeshElement : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_ListNodeOfListOfMeshElement(const Handle(SMDS_MeshElement)& I,const TCollection_MapNodePtr& n); -Standard_EXPORT inline Handle_SMDS_MeshElement& Value() const; -Standard_EXPORT ~SMDS_ListNodeOfListOfMeshElement(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_ListNodeOfListOfMeshElement_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Handle_SMDS_MeshElement myValue; - - -}; - -#define Item Handle_SMDS_MeshElement -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_() -#define TCollection_List SMDS_ListOfMeshElement -#define TCollection_List_hxx - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListNodeOfListOfMeshElement_0.cxx b/src/SMDS/SMDS_ListNodeOfListOfMeshElement_0.cxx deleted file mode 100644 index 9edb10ac9..000000000 --- a/src/SMDS/SMDS_ListNodeOfListOfMeshElement_0.cxx +++ /dev/null @@ -1,104 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListNodeOfListOfMeshElement_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListNodeOfListOfMeshElement.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_ListOfMeshElement_HeaderFile -#include "SMDS_ListOfMeshElement.hxx" -#endif -#ifndef _SMDS_ListIteratorOfListOfMeshElement_HeaderFile -#include "SMDS_ListIteratorOfListOfMeshElement.hxx" -#endif -SMDS_ListNodeOfListOfMeshElement::~SMDS_ListNodeOfListOfMeshElement() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_ListNodeOfListOfMeshElement_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_ListNodeOfListOfMeshElement", - sizeof(SMDS_ListNodeOfListOfMeshElement), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_ListNodeOfListOfMeshElement) Handle(SMDS_ListNodeOfListOfMeshElement)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_ListNodeOfListOfMeshElement) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_ListNodeOfListOfMeshElement))) { - _anOtherObject = Handle(SMDS_ListNodeOfListOfMeshElement)((Handle(SMDS_ListNodeOfListOfMeshElement)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_ListNodeOfListOfMeshElement::DynamicType() const -{ - return STANDARD_TYPE(SMDS_ListNodeOfListOfMeshElement) ; -} -Standard_Boolean SMDS_ListNodeOfListOfMeshElement::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_ListNodeOfListOfMeshElement) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_ListNodeOfListOfMeshElement::~Handle_SMDS_ListNodeOfListOfMeshElement() {} -#define Item Handle_SMDS_MeshElement -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_() -#define TCollection_List SMDS_ListOfMeshElement -#define TCollection_List_hxx -#include - diff --git a/src/SMDS/SMDS_ListNodeOfListOfMeshGroup.hxx b/src/SMDS/SMDS_ListNodeOfListOfMeshGroup.hxx deleted file mode 100644 index 907dce80c..000000000 --- a/src/SMDS/SMDS_ListNodeOfListOfMeshGroup.hxx +++ /dev/null @@ -1,137 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_ListNodeOfListOfMeshGroup.hxx -// Module : SMESH - -#ifndef _SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#define _SMDS_ListNodeOfListOfMeshGroup_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx" -#endif - -#ifndef _Handle_SMDS_MeshGroup_HeaderFile -#include "Handle_SMDS_MeshGroup.hxx" -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class SMDS_MeshGroup; -class SMDS_ListOfMeshGroup; -class SMDS_ListIteratorOfListOfMeshGroup; - - -class SMDS_ListNodeOfListOfMeshGroup : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_ListNodeOfListOfMeshGroup(const Handle(SMDS_MeshGroup)& I,const TCollection_MapNodePtr& n); -Standard_EXPORT inline Handle_SMDS_MeshGroup& Value() const; -Standard_EXPORT ~SMDS_ListNodeOfListOfMeshGroup(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_ListNodeOfListOfMeshGroup_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Handle_SMDS_MeshGroup myValue; - - -}; - -#define Item Handle_SMDS_MeshGroup -#define Item_hxx "SMDS_MeshGroup.hxx" -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx" -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup -#define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_() -#define TCollection_List SMDS_ListOfMeshGroup -#define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx" - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListNodeOfListOfMeshGroup_0.cxx b/src/SMDS/SMDS_ListNodeOfListOfMeshGroup_0.cxx deleted file mode 100644 index b00a224ef..000000000 --- a/src/SMDS/SMDS_ListNodeOfListOfMeshGroup_0.cxx +++ /dev/null @@ -1,103 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_ListNodeOfListOfMeshGroup_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListNodeOfListOfMeshGroup.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_MeshGroup_HeaderFile -#include "SMDS_MeshGroup.hxx" -#endif -#ifndef _SMDS_ListOfMeshGroup_HeaderFile -#include "SMDS_ListOfMeshGroup.hxx" -#endif -#ifndef _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile -#include "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#endif -SMDS_ListNodeOfListOfMeshGroup::~SMDS_ListNodeOfListOfMeshGroup() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_ListNodeOfListOfMeshGroup_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_ListNodeOfListOfMeshGroup", - sizeof(SMDS_ListNodeOfListOfMeshGroup), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_ListNodeOfListOfMeshGroup) Handle(SMDS_ListNodeOfListOfMeshGroup)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_ListNodeOfListOfMeshGroup) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup))) { - _anOtherObject = Handle(SMDS_ListNodeOfListOfMeshGroup)((Handle(SMDS_ListNodeOfListOfMeshGroup)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_ListNodeOfListOfMeshGroup::DynamicType() const -{ - return STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup) ; -} -Standard_Boolean SMDS_ListNodeOfListOfMeshGroup::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_ListNodeOfListOfMeshGroup::~Handle_SMDS_ListNodeOfListOfMeshGroup() {} -#define Item Handle_SMDS_MeshGroup -#define Item_hxx "SMDS_MeshGroup.hxx" -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx" -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup -#define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_() -#define TCollection_List SMDS_ListOfMeshGroup -#define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx" -#include - diff --git a/src/SMDS/SMDS_ListNodeOfListOfMesh_0.cxx b/src/SMDS/SMDS_ListNodeOfListOfMesh_0.cxx deleted file mode 100644 index 900d8bf79..000000000 --- a/src/SMDS/SMDS_ListNodeOfListOfMesh_0.cxx +++ /dev/null @@ -1,104 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListNodeOfListOfMesh_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListNodeOfListOfMesh.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_ListOfMesh_HeaderFile -#include "SMDS_ListOfMesh.hxx" -#endif -#ifndef _SMDS_ListIteratorOfListOfMesh_HeaderFile -#include "SMDS_ListIteratorOfListOfMesh.hxx" -#endif -SMDS_ListNodeOfListOfMesh::~SMDS_ListNodeOfListOfMesh() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_ListNodeOfListOfMesh_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_ListNodeOfListOfMesh", - sizeof(SMDS_ListNodeOfListOfMesh), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_ListNodeOfListOfMesh) Handle(SMDS_ListNodeOfListOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_ListNodeOfListOfMesh) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_ListNodeOfListOfMesh))) { - _anOtherObject = Handle(SMDS_ListNodeOfListOfMesh)((Handle(SMDS_ListNodeOfListOfMesh)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_ListNodeOfListOfMesh::DynamicType() const -{ - return STANDARD_TYPE(SMDS_ListNodeOfListOfMesh) ; -} -Standard_Boolean SMDS_ListNodeOfListOfMesh::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_ListNodeOfListOfMesh) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_ListNodeOfListOfMesh::~Handle_SMDS_ListNodeOfListOfMesh() {} -#define Item Handle_SMDS_Mesh -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMesh -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMesh_Type_() -#define TCollection_List SMDS_ListOfMesh -#define TCollection_List_hxx -#include - diff --git a/src/SMDS/SMDS_ListOfMesh.hxx b/src/SMDS/SMDS_ListOfMesh.hxx deleted file mode 100644 index e5eb2cda6..000000000 --- a/src/SMDS/SMDS_ListOfMesh.hxx +++ /dev/null @@ -1,167 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListOfMesh.hxx -// Module : SMESH - -#ifndef _SMDS_ListOfMesh_HeaderFile -#define _SMDS_ListOfMesh_HeaderFile - -#ifndef _Standard_Address_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMesh_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMesh.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class SMDS_ListIteratorOfListOfMesh; -class SMDS_Mesh; -class SMDS_ListNodeOfListOfMesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ListOfMesh { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ListOfMesh(); -Standard_EXPORT void Assign(const SMDS_ListOfMesh& Other) ; - void operator=(const SMDS_ListOfMesh& Other) -{ - Assign(Other); -} - -Standard_EXPORT Standard_Integer Extent() const; -Standard_EXPORT void Clear() ; -~SMDS_ListOfMesh() -{ - Clear(); -} - -Standard_EXPORT inline Standard_Boolean IsEmpty() const; -Standard_EXPORT void Prepend(const Handle(SMDS_Mesh)& I) ; -Standard_EXPORT void Prepend(SMDS_ListOfMesh& Other) ; -Standard_EXPORT void Append(const Handle(SMDS_Mesh)& I) ; -Standard_EXPORT void Append(SMDS_ListOfMesh& Other) ; -Standard_EXPORT Handle_SMDS_Mesh& First() const; -Standard_EXPORT Handle_SMDS_Mesh& Last() const; -Standard_EXPORT void RemoveFirst() ; -Standard_EXPORT void Remove(SMDS_ListIteratorOfListOfMesh& It) ; -Standard_EXPORT void InsertBefore(const Handle(SMDS_Mesh)& I,SMDS_ListIteratorOfListOfMesh& It) ; -Standard_EXPORT void InsertBefore(SMDS_ListOfMesh& Other,SMDS_ListIteratorOfListOfMesh& It) ; -Standard_EXPORT void InsertAfter(const Handle(SMDS_Mesh)& I,SMDS_ListIteratorOfListOfMesh& It) ; -Standard_EXPORT void InsertAfter(SMDS_ListOfMesh& Other,SMDS_ListIteratorOfListOfMesh& It) ; - - -friend class SMDS_ListIteratorOfListOfMesh; - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_ListOfMesh(const SMDS_ListOfMesh& Other); - - - // Fields PRIVATE - // -Standard_Address myFirst; -Standard_Address myLast; - - -}; - -#define Item Handle_SMDS_Mesh -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMesh -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMesh_Type_() -#define TCollection_List SMDS_ListOfMesh -#define TCollection_List_hxx - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListOfMeshElement.hxx b/src/SMDS/SMDS_ListOfMeshElement.hxx deleted file mode 100644 index 67e118a24..000000000 --- a/src/SMDS/SMDS_ListOfMeshElement.hxx +++ /dev/null @@ -1,167 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListOfMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_ListOfMeshElement_HeaderFile -#define _SMDS_ListOfMeshElement_HeaderFile - -#ifndef _Standard_Address_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMeshElement_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMeshElement.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class SMDS_ListIteratorOfListOfMeshElement; -class SMDS_MeshElement; -class SMDS_ListNodeOfListOfMeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ListOfMeshElement { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ListOfMeshElement(); -Standard_EXPORT void Assign(const SMDS_ListOfMeshElement& Other) ; - void operator=(const SMDS_ListOfMeshElement& Other) -{ - Assign(Other); -} - -Standard_EXPORT Standard_Integer Extent() const; -Standard_EXPORT void Clear() ; -~SMDS_ListOfMeshElement() -{ - Clear(); -} - -Standard_EXPORT inline Standard_Boolean IsEmpty() const; -Standard_EXPORT void Prepend(const Handle(SMDS_MeshElement)& I) ; -Standard_EXPORT void Prepend(SMDS_ListOfMeshElement& Other) ; -Standard_EXPORT void Append(const Handle(SMDS_MeshElement)& I) ; -Standard_EXPORT void Append(SMDS_ListOfMeshElement& Other) ; -Standard_EXPORT Handle_SMDS_MeshElement& First() const; -Standard_EXPORT Handle_SMDS_MeshElement& Last() const; -Standard_EXPORT void RemoveFirst() ; -Standard_EXPORT void Remove(SMDS_ListIteratorOfListOfMeshElement& It) ; -Standard_EXPORT void InsertBefore(const Handle(SMDS_MeshElement)& I,SMDS_ListIteratorOfListOfMeshElement& It) ; -Standard_EXPORT void InsertBefore(SMDS_ListOfMeshElement& Other,SMDS_ListIteratorOfListOfMeshElement& It) ; -Standard_EXPORT void InsertAfter(const Handle(SMDS_MeshElement)& I,SMDS_ListIteratorOfListOfMeshElement& It) ; -Standard_EXPORT void InsertAfter(SMDS_ListOfMeshElement& Other,SMDS_ListIteratorOfListOfMeshElement& It) ; - - -friend class SMDS_ListIteratorOfListOfMeshElement; - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_ListOfMeshElement(const SMDS_ListOfMeshElement& Other); - - - // Fields PRIVATE - // -Standard_Address myFirst; -Standard_Address myLast; - - -}; - -#define Item Handle_SMDS_MeshElement -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_() -#define TCollection_List SMDS_ListOfMeshElement -#define TCollection_List_hxx - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListOfMeshElement_0.cxx b/src/SMDS/SMDS_ListOfMeshElement_0.cxx deleted file mode 100644 index 8733ecef7..000000000 --- a/src/SMDS/SMDS_ListOfMeshElement_0.cxx +++ /dev/null @@ -1,55 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListOfMeshElement_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListOfMeshElement.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_ListIteratorOfListOfMeshElement_HeaderFile -#include "SMDS_ListIteratorOfListOfMeshElement.hxx" -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_ListNodeOfListOfMeshElement_HeaderFile -#include "SMDS_ListNodeOfListOfMeshElement.hxx" -#endif - - -#define Item Handle_SMDS_MeshElement -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_() -#define TCollection_List SMDS_ListOfMeshElement -#define TCollection_List_hxx -#include - diff --git a/src/SMDS/SMDS_ListOfMeshGroup.hxx b/src/SMDS/SMDS_ListOfMeshGroup.hxx deleted file mode 100644 index 886f49341..000000000 --- a/src/SMDS/SMDS_ListOfMeshGroup.hxx +++ /dev/null @@ -1,166 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_ListOfMeshGroup.hxx -// Module : SMESH - -#ifndef _SMDS_ListOfMeshGroup_HeaderFile -#define _SMDS_ListOfMeshGroup_HeaderFile - -#ifndef _Standard_Address_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshGroup_HeaderFile -#include "Handle_SMDS_MeshGroup.hxx" -#endif -#ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class SMDS_ListIteratorOfListOfMeshGroup; -class SMDS_MeshGroup; -class SMDS_ListNodeOfListOfMeshGroup; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_ListOfMeshGroup { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_ListOfMeshGroup(); -Standard_EXPORT void Assign(const SMDS_ListOfMeshGroup& Other) ; - void operator=(const SMDS_ListOfMeshGroup& Other) -{ - Assign(Other); -} - -Standard_EXPORT Standard_Integer Extent() const; -Standard_EXPORT void Clear() ; -~SMDS_ListOfMeshGroup() -{ - Clear(); -} - -Standard_EXPORT inline Standard_Boolean IsEmpty() const; -Standard_EXPORT void Prepend(const Handle(SMDS_MeshGroup)& I) ; -Standard_EXPORT void Prepend(SMDS_ListOfMeshGroup& Other) ; -Standard_EXPORT void Append(const Handle(SMDS_MeshGroup)& I) ; -Standard_EXPORT void Append(SMDS_ListOfMeshGroup& Other) ; -Standard_EXPORT Handle_SMDS_MeshGroup& First() const; -Standard_EXPORT Handle_SMDS_MeshGroup& Last() const; -Standard_EXPORT void RemoveFirst() ; -Standard_EXPORT void Remove(SMDS_ListIteratorOfListOfMeshGroup& It) ; -Standard_EXPORT void InsertBefore(const Handle(SMDS_MeshGroup)& I,SMDS_ListIteratorOfListOfMeshGroup& It) ; -Standard_EXPORT void InsertBefore(SMDS_ListOfMeshGroup& Other,SMDS_ListIteratorOfListOfMeshGroup& It) ; -Standard_EXPORT void InsertAfter(const Handle(SMDS_MeshGroup)& I,SMDS_ListIteratorOfListOfMeshGroup& It) ; -Standard_EXPORT void InsertAfter(SMDS_ListOfMeshGroup& Other,SMDS_ListIteratorOfListOfMeshGroup& It) ; - - -friend class SMDS_ListIteratorOfListOfMeshGroup; - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_ListOfMeshGroup(const SMDS_ListOfMeshGroup& Other); - - - // Fields PRIVATE - // -Standard_Address myFirst; -Standard_Address myLast; - - -}; - -#define Item Handle_SMDS_MeshGroup -#define Item_hxx "SMDS_MeshGroup.hxx" -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx" -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup -#define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_() -#define TCollection_List SMDS_ListOfMeshGroup -#define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx" - -#include - -#undef Item -#undef Item_hxx -#undef TCollection_ListNode -#undef TCollection_ListNode_hxx -#undef TCollection_ListIterator -#undef TCollection_ListIterator_hxx -#undef Handle_TCollection_ListNode -#undef TCollection_ListNode_Type_ -#undef TCollection_List -#undef TCollection_List_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_ListOfMeshGroup_0.cxx b/src/SMDS/SMDS_ListOfMeshGroup_0.cxx deleted file mode 100644 index 294ee389d..000000000 --- a/src/SMDS/SMDS_ListOfMeshGroup_0.cxx +++ /dev/null @@ -1,54 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_ListOfMeshGroup_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListOfMeshGroup.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile -#include "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#endif -#ifndef _SMDS_MeshGroup_HeaderFile -#include "SMDS_MeshGroup.hxx" -#endif -#ifndef _SMDS_ListNodeOfListOfMeshGroup_HeaderFile -#include "SMDS_ListNodeOfListOfMeshGroup.hxx" -#endif - - -#define Item Handle_SMDS_MeshGroup -#define Item_hxx "SMDS_MeshGroup.hxx" -#define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx" -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup -#define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx" -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_() -#define TCollection_List SMDS_ListOfMeshGroup -#define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx" -#include - diff --git a/src/SMDS/SMDS_ListOfMesh_0.cxx b/src/SMDS/SMDS_ListOfMesh_0.cxx deleted file mode 100644 index 5ae9ac766..000000000 --- a/src/SMDS/SMDS_ListOfMesh_0.cxx +++ /dev/null @@ -1,55 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_ListOfMesh_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_ListOfMesh.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_ListIteratorOfListOfMesh_HeaderFile -#include "SMDS_ListIteratorOfListOfMesh.hxx" -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_ListNodeOfListOfMesh_HeaderFile -#include "SMDS_ListNodeOfListOfMesh.hxx" -#endif - - -#define Item Handle_SMDS_Mesh -#define Item_hxx -#define TCollection_ListNode SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_hxx -#define TCollection_ListIterator SMDS_ListIteratorOfListOfMesh -#define TCollection_ListIterator_hxx -#define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMesh -#define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMesh_Type_() -#define TCollection_List SMDS_ListOfMesh -#define TCollection_List_hxx -#include - diff --git a/src/SMDS/SMDS_Map.gxx b/src/SMDS/SMDS_Map.gxx deleted file mode 100644 index 95f1677f9..000000000 --- a/src/SMDS/SMDS_Map.gxx +++ /dev/null @@ -1 +0,0 @@ -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_Map.gxx has disappeared diff --git a/src/SMDS/SMDS_MapHasher.gxx b/src/SMDS/SMDS_MapHasher.gxx deleted file mode 100644 index 2ee518363..000000000 --- a/src/SMDS/SMDS_MapHasher.gxx +++ /dev/null @@ -1 +0,0 @@ -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_MapHasher.gxx has disappeared diff --git a/src/SMDS/SMDS_MapIterator.gxx b/src/SMDS/SMDS_MapIterator.gxx deleted file mode 100644 index a42ad7d37..000000000 --- a/src/SMDS/SMDS_MapIterator.gxx +++ /dev/null @@ -1 +0,0 @@ -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_MapIterator.gxx has disappeared diff --git a/src/SMDS/SMDS_MapIteratorOfExtendedMap.hxx b/src/SMDS/SMDS_MapIteratorOfExtendedMap.hxx deleted file mode 100644 index 9303fcc87..000000000 --- a/src/SMDS/SMDS_MapIteratorOfExtendedMap.hxx +++ /dev/null @@ -1,114 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapIteratorOfExtendedMap.hxx -// Module : SMESH - -#ifndef _SMDS_MapIteratorOfExtendedMap_HeaderFile -#define _SMDS_MapIteratorOfExtendedMap_HeaderFile - -#ifndef _TCollection_BasicMapIterator_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_StdMapNodeOfExtendedMap_HeaderFile -#include "Handle_SMDS_StdMapNodeOfExtendedMap.hxx" -#endif -class Standard_NoSuchObject; -class SMDS_MeshElement; -class SMDS_MeshElementMapHasher; -class SMDS_ExtendedMap; -class SMDS_StdMapNodeOfExtendedMap; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MapIteratorOfExtendedMap : public TCollection_BasicMapIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_MapIteratorOfExtendedMap(); -Standard_EXPORT SMDS_MapIteratorOfExtendedMap(const SMDS_ExtendedMap& aMap); -Standard_EXPORT void Initialize(const SMDS_ExtendedMap& aMap) ; -Standard_EXPORT const Handle_SMDS_MeshElement& Key() const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MapIteratorOfExtendedMap_0.cxx b/src/SMDS/SMDS_MapIteratorOfExtendedMap_0.cxx deleted file mode 100644 index 3727b152c..000000000 --- a/src/SMDS/SMDS_MapIteratorOfExtendedMap_0.cxx +++ /dev/null @@ -1,60 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapIteratorOfExtendedMap_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_MapIteratorOfExtendedMap.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#include "SMDS_MeshElementMapHasher.hxx" -#endif -#ifndef _SMDS_ExtendedMap_HeaderFile -#include "SMDS_ExtendedMap.hxx" -#endif -#ifndef _SMDS_StdMapNodeOfExtendedMap_HeaderFile -#include "SMDS_StdMapNodeOfExtendedMap.hxx" -#endif - - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedMap_Type_() -#define TCollection_Map SMDS_ExtendedMap -#define TCollection_Map_hxx -#include - diff --git a/src/SMDS/SMDS_MapIteratorOfExtendedOrientedMap.hxx b/src/SMDS/SMDS_MapIteratorOfExtendedOrientedMap.hxx deleted file mode 100644 index b1ec3398c..000000000 --- a/src/SMDS/SMDS_MapIteratorOfExtendedOrientedMap.hxx +++ /dev/null @@ -1,114 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapIteratorOfExtendedOrientedMap.hxx -// Module : SMESH - -#ifndef _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile -#define _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile - -#ifndef _TCollection_BasicMapIterator_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Handle_SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#include "Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx" -#endif -class Standard_NoSuchObject; -class SMDS_MeshElement; -class SMDS_MeshOrientedElementMapHasher; -class SMDS_ExtendedOrientedMap; -class SMDS_StdMapNodeOfExtendedOrientedMap; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MapIteratorOfExtendedOrientedMap : public TCollection_BasicMapIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_MapIteratorOfExtendedOrientedMap(); -Standard_EXPORT SMDS_MapIteratorOfExtendedOrientedMap(const SMDS_ExtendedOrientedMap& aMap); -Standard_EXPORT void Initialize(const SMDS_ExtendedOrientedMap& aMap) ; -Standard_EXPORT const Handle_SMDS_MeshElement& Key() const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MapIteratorOfExtendedOrientedMap_0.cxx b/src/SMDS/SMDS_MapIteratorOfExtendedOrientedMap_0.cxx deleted file mode 100644 index 3a1cf101b..000000000 --- a/src/SMDS/SMDS_MapIteratorOfExtendedOrientedMap_0.cxx +++ /dev/null @@ -1,60 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapIteratorOfExtendedOrientedMap_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_MapIteratorOfExtendedOrientedMap.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshOrientedElementMapHasher_HeaderFile -#include "SMDS_MeshOrientedElementMapHasher.hxx" -#endif -#ifndef _SMDS_ExtendedOrientedMap_HeaderFile -#include "SMDS_ExtendedOrientedMap.hxx" -#endif -#ifndef _SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#include "SMDS_StdMapNodeOfExtendedOrientedMap.hxx" -#endif - - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshOrientedElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedOrientedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedOrientedMap_Type_() -#define TCollection_Map SMDS_ExtendedOrientedMap -#define TCollection_Map_hxx -#include - diff --git a/src/SMDS/SMDS_MapNode.lxx b/src/SMDS/SMDS_MapNode.lxx deleted file mode 100644 index fcb51ae72..000000000 --- a/src/SMDS/SMDS_MapNode.lxx +++ /dev/null @@ -1,27 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapNode.lxx -// Module : SMESH - -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_MapNode.lxx has disappeared diff --git a/src/SMDS/SMDS_MapOfMeshElement.cdl b/src/SMDS/SMDS_MapOfMeshElement.cdl deleted file mode 100644 index b3c584f32..000000000 --- a/src/SMDS/SMDS_MapOfMeshElement.cdl +++ /dev/null @@ -1,80 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MapOfMeshElement.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MapOfMeshElement from SMDS inherits ExtendedMap from SMDS - - ---Purpose: Redefinition/definition of methods of Map from TCollection - -uses - MeshElement from SMDS - -raises - NoSuchObject from Standard - -is - Create(NbBuckets : Integer =1) returns MapOfMeshElement from SMDS; - ---Purpose: Creates a Map with buckets. Without - -- arguments the map is automatically dimensioned. - ---C++: inline - - Find(me; K : MeshElement) returns MeshElement - ---Level: Public - ---Purpose: Returns the Item stored with the Key in the Map. - ---Trigger: An exception is raised when is not in the map. - raises NoSuchObject from Standard - ---C++: alias operator() - ---C++: return const & - is static; - - ChangeFind(me : in out; K : MeshElement) returns MeshElement - ---Level: Public - ---Purpose: Returns the Item stored with the Key in the - -- Map. This Item can be modified with the syntax - -- aMap(K) = newItem; - ---Trigger: An exception is raised when is not in the map. - ---C++: alias operator() - ---C++: return & - raises NoSuchObject from Standard - is static; - - FindID(me; ID : Integer) returns MeshElement - ---Level: Public - ---Purpose: Returns the Item stored with the ID in the Map. - ---Trigger: An exception is raised when ID is not in the map. - raises NoSuchObject from Standard - ---C++: alias operator() - ---C++: return const & - is static; - - - ContainsID(me; ID : Integer) returns Boolean - ---Level: Public - ---Purpose: Returns True if the ID is stored in the - -- map . - is static; - -end MapOfMeshElement; diff --git a/src/SMDS/SMDS_MapOfMeshElement.cxx b/src/SMDS/SMDS_MapOfMeshElement.cxx deleted file mode 100644 index 7e138341d..000000000 --- a/src/SMDS/SMDS_MapOfMeshElement.cxx +++ /dev/null @@ -1,152 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshElement.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MapOfMeshElement.ixx" -#include - - -#ifndef _Standard_DomainError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#include "SMDS_MeshElementMapHasher.hxx" -#endif -#ifndef _SMDS_StdMapNodeOfExtendedMap_HeaderFile -#include "SMDS_StdMapNodeOfExtendedMap.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedMap.hxx" -#endif - - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedMap_Type_() -#define TCollection_Map SMDS_ExtendedMap -#define TCollection_Map_hxx - - - -//======================================================================= -//function : Find -//purpose : -//======================================================================= - -const Handle(SMDS_MeshElement)& SMDS_MapOfMeshElement::Find(const TheKey& K) const -{ - if (IsEmpty()) { - Standard_NoSuchObject::Raise("SMDS_MapOfMeshElement::Find"); - } -// Standard_NoSuchObject_Raise_if(IsEmpty(),"SMDS_MapOfMeshElement::Find"); - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[Hasher::HashCode(K,NbBuckets())]; - while (p) { - if (Hasher::IsEqual(p->Key(),K)) { - return p->Key(); - } - p = (TCollection_StdMapNode*) p->Next(); - } - Standard_NoSuchObject::Raise("SMDS_MapOfMeshElement::Find"); - return p->Key(); -} - -//======================================================================= -//function : ChangeFind -//purpose : -//======================================================================= - -Handle(SMDS_MeshElement)& SMDS_MapOfMeshElement::ChangeFind(const TheKey& K) -{ - if (IsEmpty()) { - Standard_NoSuchObject::Raise("SMDS_MapOfMeshElement::ChangeFind"); - } -//Standard_NoSuchObject_Raise_if(IsEmpty(),"SMDS_MapOfMeshElement::ChangeFind"); - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[Hasher::HashCode(K,NbBuckets())]; - while (p) { - if (Hasher::IsEqual(p->Key(),K)) { - return p->Key(); - } - p = (TCollection_StdMapNode*) p->Next(); - } - Standard_NoSuchObject::Raise("SMDS_MapOfMeshElement::ChangeFind"); - return p->Key(); -} - - -//======================================================================= -//function : FindID -//purpose : -//======================================================================= - -const Handle(SMDS_MeshElement)& SMDS_MapOfMeshElement::FindID(const Standard_Integer ID) const -{ - if (IsEmpty()) { - Standard_NoSuchObject::Raise("SMDS_MapOfMeshElement::FindID"); - } -// Standard_NoSuchObject_Raise_if(IsEmpty(),"SMDS_MapOfMeshElement::Find"); - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[ID % NbBuckets()]; - while (p) { - if (p->Key()->GetID() == ID) { - return p->Key(); - } - p = (TCollection_StdMapNode*) p->Next(); - } - Standard_NoSuchObject::Raise("SMDS_MapOfMeshElement::Find"); - return p->Key(); -} - -//======================================================================= -//function : ContainsID -//purpose : -//======================================================================= - -Standard_Boolean SMDS_MapOfMeshElement::ContainsID(const Standard_Integer ID) const -{ - if (IsEmpty()) return Standard_False; - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[ID % NbBuckets()]; - while (p) { - if (p->Key()->GetID() == ID) { - return Standard_True; - } - p = (TCollection_StdMapNode*)p->Next(); - } - return Standard_False; -} diff --git a/src/SMDS/SMDS_MapOfMeshElement.hxx b/src/SMDS/SMDS_MapOfMeshElement.hxx deleted file mode 100644 index fa904cc3f..000000000 --- a/src/SMDS/SMDS_MapOfMeshElement.hxx +++ /dev/null @@ -1,131 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshElement.hxx -// Module : SMESH - -#ifndef _SMDS_MapOfMeshElement_HeaderFile -#define _SMDS_MapOfMeshElement_HeaderFile - -#ifndef _SMDS_ExtendedMap_HeaderFile -#include "SMDS_ExtendedMap.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class SMDS_MeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MapOfMeshElement : public SMDS_ExtendedMap { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_MapOfMeshElement(const Standard_Integer NbBuckets = 1); -Standard_EXPORT const Handle_SMDS_MeshElement& Find(const Handle(SMDS_MeshElement)& K) const; - const Handle_SMDS_MeshElement& operator()(const Handle(SMDS_MeshElement)& K) const -{ - return Find(K); -} - -Standard_EXPORT Handle_SMDS_MeshElement& ChangeFind(const Handle(SMDS_MeshElement)& K) ; - Handle_SMDS_MeshElement& operator()(const Handle(SMDS_MeshElement)& K) -{ - return ChangeFind(K); -} - -Standard_EXPORT const Handle_SMDS_MeshElement& FindID(const Standard_Integer ID) const; - const Handle_SMDS_MeshElement& operator()(const Standard_Integer ID) const -{ - return FindID(ID); -} - -Standard_EXPORT Standard_Boolean ContainsID(const Standard_Integer ID) const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - -#include "SMDS_MapOfMeshElement.lxx" - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MapOfMeshElement.ixx b/src/SMDS/SMDS_MapOfMeshElement.ixx deleted file mode 100644 index f0b1ae01f..000000000 --- a/src/SMDS/SMDS_MapOfMeshElement.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshElement.ixx -// Module : SMESH - -#include "SMDS_MapOfMeshElement.jxx" - - - - diff --git a/src/SMDS/SMDS_MapOfMeshElement.jxx b/src/SMDS/SMDS_MapOfMeshElement.jxx deleted file mode 100644 index c3016cde5..000000000 --- a/src/SMDS/SMDS_MapOfMeshElement.jxx +++ /dev/null @@ -1,35 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshElement.jxx -// Module : SMESH - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MapOfMeshElement_HeaderFile -#include "SMDS_MapOfMeshElement.hxx" -#endif diff --git a/src/SMDS/SMDS_MapOfMeshElement.lxx b/src/SMDS/SMDS_MapOfMeshElement.lxx deleted file mode 100644 index 4f872f5bd..000000000 --- a/src/SMDS/SMDS_MapOfMeshElement.lxx +++ /dev/null @@ -1,34 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshElement.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -#include - -inline SMDS_MapOfMeshElement::SMDS_MapOfMeshElement( - const Standard_Integer NbBuckets ): - SMDS_ExtendedMap( NbBuckets ) -{} - diff --git a/src/SMDS/SMDS_MapOfMeshOrientedElement.cdl b/src/SMDS/SMDS_MapOfMeshOrientedElement.cdl deleted file mode 100644 index 3f7d2b2ea..000000000 --- a/src/SMDS/SMDS_MapOfMeshOrientedElement.cdl +++ /dev/null @@ -1,80 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MapOfMeshOrientedElement.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MapOfMeshOrientedElement from SMDS inherits ExtendedOrientedMap from SMDS - - ---Purpose: Redefinition/definition of methods of Map from TCollection - -uses - MeshElement from SMDS - -raises - NoSuchObject from Standard - -is - Create(NbBuckets : Integer =1) returns MapOfMeshOrientedElement from SMDS; - ---Purpose: Creates a Map with buckets. Without - -- arguments the map is automatically dimensioned. - ---C++: inline - - Find(me; K : MeshElement) returns MeshElement - ---Level: Public - ---Purpose: Returns the Item stored with the Key in the Map. - ---Trigger: An exception is raised when is not in the map. - raises NoSuchObject from Standard - ---C++: alias operator() - ---C++: return const & - is static; - - ChangeFind(me : in out; K : MeshElement) returns MeshElement - ---Level: Public - ---Purpose: Returns the Item stored with the Key in the - -- Map. This Item can be modified with the syntax - -- aMap(K) = newItem; - ---Trigger: An exception is raised when is not in the map. - ---C++: alias operator() - ---C++: return & - raises NoSuchObject from Standard - is static; - - FindID(me; ID : Integer) returns MeshElement - ---Level: Public - ---Purpose: Returns the Item stored with the ID in the Map. - ---Trigger: An exception is raised when ID is not in the map. - raises NoSuchObject from Standard - ---C++: alias operator() - ---C++: return const & - is static; - - - ContainsID(me; ID : Integer) returns Boolean - ---Level: Public - ---Purpose: Returns True if the ID is stored in the - -- map . - is static; - -end MapOfMeshOrientedElement; diff --git a/src/SMDS/SMDS_MapOfMeshOrientedElement.cxx b/src/SMDS/SMDS_MapOfMeshOrientedElement.cxx deleted file mode 100644 index 7d67647d8..000000000 --- a/src/SMDS/SMDS_MapOfMeshOrientedElement.cxx +++ /dev/null @@ -1,152 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshOrientedElement.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MapOfMeshOrientedElement.ixx" -#include - - -#ifndef _Standard_DomainError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#include "SMDS_MeshElementMapHasher.hxx" -#endif -#ifndef _SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#include "SMDS_StdMapNodeOfExtendedOrientedMap.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedOrientedMap.hxx" -#endif - - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedOrientedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedOrientedMap_Type_() -#define TCollection_Map SMDS_ExtendedOrientedMap -#define TCollection_Map_hxx - - - -//======================================================================= -//function : Find -//purpose : -//======================================================================= - -const Handle(SMDS_MeshElement)& SMDS_MapOfMeshOrientedElement::Find(const TheKey& K) const -{ - if (IsEmpty()) { - Standard_NoSuchObject::Raise("SMDS_MapOfMeshOrientedElement::Find"); - } -// Standard_NoSuchObject_Raise_if(IsEmpty(),"SMDS_MapOfMeshOrientedElement::Find"); - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[Hasher::HashCode(K,NbBuckets())]; - while (p) { - if (Hasher::IsEqual(p->Key(),K)) { - return p->Key(); - } - p = (TCollection_StdMapNode*) p->Next(); - } - Standard_NoSuchObject::Raise("SMDS_MapOfMeshOrientedElement::Find"); - return p->Key(); -} - -//======================================================================= -//function : ChangeFind -//purpose : -//======================================================================= - -Handle(SMDS_MeshElement)& SMDS_MapOfMeshOrientedElement::ChangeFind(const TheKey& K) -{ - if (IsEmpty()) { - Standard_NoSuchObject::Raise("SMDS_MapOfMeshOrientedElement::ChangeFind"); - } -//Standard_NoSuchObject_Raise_if(IsEmpty(),"SMDS_MapOfMeshOrientedElement::ChangeFind"); - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[Hasher::HashCode(K,NbBuckets())]; - while (p) { - if (Hasher::IsEqual(p->Key(),K)) { - return p->Key(); - } - p = (TCollection_StdMapNode*) p->Next(); - } - Standard_NoSuchObject::Raise("SMDS_MapOfMeshOrientedElement::ChangeFind"); - return p->Key(); -} - - -//======================================================================= -//function : FindID -//purpose : -//======================================================================= - -const Handle(SMDS_MeshElement)& SMDS_MapOfMeshOrientedElement::FindID(const Standard_Integer ID) const -{ - if (IsEmpty()) { - Standard_NoSuchObject::Raise("SMDS_MapOfMeshOrientedElement::FindID"); - } -// Standard_NoSuchObject_Raise_if(IsEmpty(),"SMDS_MapOfMeshOrientedElement::Find"); - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[ID % NbBuckets()]; - while (p) { - if (p->Key()->GetID() == ID) { - return p->Key(); - } - p = (TCollection_StdMapNode*) p->Next(); - } - Standard_NoSuchObject::Raise("SMDS_MapOfMeshOrientedElement::Find"); - return p->Key(); -} - -//======================================================================= -//function : ContainsID -//purpose : -//======================================================================= - -Standard_Boolean SMDS_MapOfMeshOrientedElement::ContainsID(const Standard_Integer ID) const -{ - if (IsEmpty()) return Standard_False; - TCollection_StdMapNode** data = (TCollection_StdMapNode**) myData1; - TCollection_StdMapNode* p = data[ID % NbBuckets()]; - while (p) { - if (p->Key()->GetID() == ID) { - return Standard_True; - } - p = (TCollection_StdMapNode*)p->Next(); - } - return Standard_False; -} diff --git a/src/SMDS/SMDS_MapOfMeshOrientedElement.hxx b/src/SMDS/SMDS_MapOfMeshOrientedElement.hxx deleted file mode 100644 index d2fb080af..000000000 --- a/src/SMDS/SMDS_MapOfMeshOrientedElement.hxx +++ /dev/null @@ -1,131 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshOrientedElement.hxx -// Module : SMESH - -#ifndef _SMDS_MapOfMeshOrientedElement_HeaderFile -#define _SMDS_MapOfMeshOrientedElement_HeaderFile - -#ifndef _SMDS_ExtendedOrientedMap_HeaderFile -#include "SMDS_ExtendedOrientedMap.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class SMDS_MeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MapOfMeshOrientedElement : public SMDS_ExtendedOrientedMap { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_MapOfMeshOrientedElement(const Standard_Integer NbBuckets = 1); -Standard_EXPORT const Handle_SMDS_MeshElement& Find(const Handle(SMDS_MeshElement)& K) const; - const Handle_SMDS_MeshElement& operator()(const Handle(SMDS_MeshElement)& K) const -{ - return Find(K); -} - -Standard_EXPORT Handle_SMDS_MeshElement& ChangeFind(const Handle(SMDS_MeshElement)& K) ; - Handle_SMDS_MeshElement& operator()(const Handle(SMDS_MeshElement)& K) -{ - return ChangeFind(K); -} - -Standard_EXPORT const Handle_SMDS_MeshElement& FindID(const Standard_Integer ID) const; - const Handle_SMDS_MeshElement& operator()(const Standard_Integer ID) const -{ - return FindID(ID); -} - -Standard_EXPORT Standard_Boolean ContainsID(const Standard_Integer ID) const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - -#include "SMDS_MapOfMeshOrientedElement.lxx" - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MapOfMeshOrientedElement.ixx b/src/SMDS/SMDS_MapOfMeshOrientedElement.ixx deleted file mode 100644 index 525ce965e..000000000 --- a/src/SMDS/SMDS_MapOfMeshOrientedElement.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshOrientedElement.ixx -// Module : SMESH - -#include "SMDS_MapOfMeshOrientedElement.jxx" - - - - diff --git a/src/SMDS/SMDS_MapOfMeshOrientedElement.jxx b/src/SMDS/SMDS_MapOfMeshOrientedElement.jxx deleted file mode 100644 index 2bc2f4c3f..000000000 --- a/src/SMDS/SMDS_MapOfMeshOrientedElement.jxx +++ /dev/null @@ -1,35 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshOrientedElement.jxx -// Module : SMESH - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MapOfMeshOrientedElement_HeaderFile -#include "SMDS_MapOfMeshOrientedElement.hxx" -#endif diff --git a/src/SMDS/SMDS_MapOfMeshOrientedElement.lxx b/src/SMDS/SMDS_MapOfMeshOrientedElement.lxx deleted file mode 100644 index 1aaa295eb..000000000 --- a/src/SMDS/SMDS_MapOfMeshOrientedElement.lxx +++ /dev/null @@ -1,34 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MapOfMeshOrientedElement.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -#include - -inline SMDS_MapOfMeshOrientedElement::SMDS_MapOfMeshOrientedElement( - const Standard_Integer NbBuckets ): - SMDS_ExtendedOrientedMap( NbBuckets ) -{} - diff --git a/src/SMDS/SMDS_Mesh.cdl b/src/SMDS/SMDS_Mesh.cdl deleted file mode 100755 index e9ee5c976..000000000 --- a/src/SMDS/SMDS_Mesh.cdl +++ /dev/null @@ -1,428 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_Mesh.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class Mesh from SMDS inherits MeshObject from SMDS - - ---Purpose: - -uses - MeshNodeIDFactory from SMDS, - MeshElementIDFactory from SMDS, - ListOfMeshElement from SMDS, - ListOfMesh from SMDS, - MapOfMeshOrientedElement from SMDS, - MeshElement from SMDS, - MeshNode from SMDS, - ListIteratorOfListOfMesh from SMDS -raises - - NoSuchObject from Standard -is - - ---================================ - ---Category: public API methods - -- Mesh creation - --================================= - - Create(nbnodes: Integer = 10; nbedges : Integer = 10; - nbfaces : Integer = 10; nbvolumes : Integer = 10) returns mutable Mesh; - ---Purpose: create a new mesh. It is possible to specify the - -- initial size of elements. - -- It is recommended to set the size of mesh elements - -- in the constructor to avoid too much resizing of data storage - - AddSubMesh(me: mutable) returns Mesh from SMDS - ---Purpose: create an submesh. - -- uses a private constructor to create a instance of the submesh - -- and attach it to the mesh parent. - is static; - - - - ---================================ - ---Category: public API methods - -- Mesh Element creation - --================================= - - -- *** Nodes *** -- - - - AddNode(me: mutable; x,y,z : Real) returns Integer - ---Purpose: create an instance of MeshNode and add it to the mesh - -- if the mesh has a parent then the node is also added - -- to the parent mesh. - -- Returns a generated ID for the created node. - is virtual; - - AddNodeWithID(me: mutable; x,y,z : Real; ID: Integer) returns Boolean - ---Purpose: create an instance of MeshNode and add it to the mesh - -- if the mesh has a parent then the node is also added - -- to the parent mesh. - -- returns False in case the ID already exists - is virtual; - - AddNode(me: mutable; ID : Integer) returns Boolean - ---Purpose: add an existing node in the mesh. This is useful to - -- add a node from a parent mesh to the submesh - is virtual; - - - -- *** Edges *** -- - - AddEdge(me: mutable; idnode1, idnode2 : Integer) returns Integer - ---Purpose: create an instance of MeshEdge and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddEdgeWithID(me: mutable; idnode1, idnode2, ID : Integer) returns Boolean - ---Purpose: create an instance of MeshEdge and add it to the mesh - is virtual; - - - -- *** Faces *** -- - - AddFace(me: mutable; idnode1, idnode2, idnode3 : Integer) returns Integer - ---Purpose: create an instance of MeshFace and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddFaceWithID(me: mutable; idnode1, idnode2, idnode3, ID : Integer) returns Boolean - ---Purpose: create an instance of MeshFace and add it to the mesh - is virtual; - - - AddFace(me: mutable; idnode1, idnode2, idnode3, idnode4 : Integer) - returns Integer - ---Purpose: create an instance of MeshFace and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddFaceWithID(me: mutable; idnode1, idnode2, idnode3, idnode4, ID : Integer) - returns Boolean - ---Purpose: create an instance of MeshFace and add it to the mesh - is virtual; - - - - -- *** Volumes *** -- - - AddVolume(me: mutable; idnode1, idnode2, idnode3, idnode4 : Integer) - returns Integer - ---Purpose: create an instance of MeshVolume and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddVolumeWithID(me: mutable; idnode1, idnode2, idnode3, idnode4, ID : Integer) - returns Boolean - ---Purpose: create an instance of MeshVolume and add it to the mesh - is virtual; - - AddVolume(me: mutable; idnode1, idnode2, idnode3, idnode4, idnode5 : Integer) - returns Integer - ---Purpose: create an instance of MeshVolume and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddVolumeWithID(me: mutable; idnode1, idnode2, idnode3, idnode4, idnode5, ID : Integer) - returns Boolean - ---Purpose: create an instance of MeshVolume and add it to the mesh - is virtual; - - AddVolume(me: mutable; idnode1, idnode2, idnode3, idnode4, idnode5, idnode6 : Integer) - returns Integer - ---Purpose: create an instance of MeshVolume and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddVolumeWithID(me: mutable; idnode1, idnode2, idnode3, idnode4, idnode5, idnode6, ID : Integer) - returns Boolean - ---Purpose: create an instance of MeshVolume and add it to the mesh - is virtual; - - AddVolume(me: mutable; idnode1, idnode2, idnode3, idnode4, idnode5, idnode6, - idnode7, idnode8 : Integer) - returns Integer - ---Purpose: create an instance of MeshVolume and add it to the mesh - -- returns the id of the element. Returns 0 if creation failed - is virtual; - - AddVolumeWithID(me: mutable; idnode1, idnode2, idnode3, idnode4, idnode5, idnode6, - idnode7, idnode8, ID : Integer) - returns Boolean - ---Purpose: create an instance of MeshVolume and add it to the mesh - is virtual; - - - AddVolume(me: mutable; node1, node2, node3, node4 : MeshElement) - returns MeshElement from SMDS - ---Purpose: create an instance of MeshVolume and add it to the mesh - is static; - - AddVolume(me: mutable; node1, node2, node3, node4, node5 : MeshElement) - returns MeshElement from SMDS - ---Purpose: create an instance of MeshVolume and add it to the mesh - is static; - - AddVolume(me: mutable; node1, node2, node3, node4, node5, node6 : MeshElement) - returns MeshElement from SMDS - ---Purpose: create an instance of MeshVolume and add it to the mesh - is static; - - AddVolume(me: mutable; node1, node2, node3, node4, - node5, node6, node7, node8 : MeshElement) - returns MeshElement from SMDS - ---Purpose: create an instance of MeshVolume and add it to the mesh - is static; - - - - ---================================ - ---Category: public API methods - -- Mesh Element deletion - --================================= - - - RemoveNode(me: mutable; IDnode: Integer) - ---Purpose: remove the node IDnode in the mesh and in all the children mesh - -- if it exists, it remains in the parent mesh - -- if the mesh has no parent, then ID is released - is virtual; - - RemoveEdge(me: mutable; idnode1, idnode2 : Integer) - ---Purpose: remove the edge defined by idnode1,idnode2 in the mesh - is virtual; - - RemoveFace(me: mutable; idnode1, idnode2, idnode3 : Integer) - ---Purpose: remove the face defined by idnode1,idnode2,idnode3 in the mesh - is virtual; - - RemoveFace(me: mutable; idnode1, idnode2, idnode3, idnode4 : Integer) - ---Purpose: remove the face defined by idnode1,idnode2,idnode3,idnode4 in the mesh - is virtual; - - RemoveElement(me: mutable; IDelem : Integer;removenodes : Boolean = Standard_False) - ---Purpose: remove the mesh element IDelem - -- Caution : Cannot be used to remove nodes, instead - -- use method RemoveNode - is virtual; - - RemoveElement(me: mutable; elem: MeshElement;removenodes : Boolean = Standard_False) - is static; - - RemoveFromParent(me: mutable) - returns Boolean - ---Purpose: remove this from its parent - -- if this has no parent then it returns False (True otherwise) - is virtual; - - RemoveSubMesh(me: mutable; aMesh : Mesh from SMDS) - returns Boolean - ---Purpose: remove aMesh from the list of Children - -- if the submesh does not belong to this, it returns False - -- (True otherwiswe) - is virtual; - - ---================================ - ---Category: public API methods - -- Mesh exploration - --================================= - - GetNode(me; rank: Integer; ME: MeshElement) returns MeshNode from SMDS - is static; - - FindNode(me; idnode: Integer) returns MeshElement from SMDS - ---Purpose: return the meshnode idnode in the mesh - is static; - - FindEdge(me; idnode1, idnode2: Integer) returns MeshElement from SMDS - ---Purpose: - is static; - - FindFace(me; idnode1, idnode2, idnode3: Integer) returns MeshElement from SMDS - ---Purpose: - is static; - - FindFace(me; idnode1, idnode2, idnode3, idnode4: Integer) returns MeshElement from SMDS - ---Purpose: - is static; - - FindElement(me; IDelem: Integer) returns MeshElement from SMDS - ---Purpose: returns the mesh element corresponding to IDelem - is static; - - Contains(me; elem: MeshElement) returns Boolean - ---Purpose: - is static; - - RebuildAllInverseConnections(me: mutable) - ---Purpose: clean the inverse connections and rebuild them - -- completely. If the mesh has children, the - -- inverse connections are also rebuilt - is static; - - SubMeshIterator(me;itmsh: out ListIteratorOfListOfMesh from SMDS) - ---Purpose: - is static; - - - NbNodes(me) returns Integer; - ---C++: inline - - NbEdges(me) returns Integer; - ---C++: inline - - NbFaces(me) returns Integer; - ---C++: inline - - NbVolumes(me) returns Integer; - ---C++: inline - - NbSubMesh(me) returns Integer; - ---C++: inline - - DumpNodes(me); - - DumpEdges(me); - - DumpFaces(me); - - DumpVolumes(me); - - DebugStats(me); - - - - ---Category: private or protected methods - -- - - Create(parent: Mesh; nbnodes: Integer = 10) returns mutable Mesh - ---Purpose: constructor used internally to create submesh - -- - is private; - - AddNode(me: mutable; node : MeshElement ) returns Boolean - ---Purpose: add a node in the mesh - -- if the mesh has parent, the node is also added to the parent. - -- returns False if the node is invalid ( null handle) - is private; - - CreateEdge(me; ID, idnode1, idnode2 : Integer) returns MeshElement from SMDS; - - CreateFace(me; ID, idnode1, idnode2, idnode3 : Integer) returns MeshElement from SMDS; - - CreateFace(me; ID, idnode1, idnode2, idnode3, idnode4 : Integer) - returns MeshElement from SMDS; - - CreateVolume(me; ID, idnode1, idnode2, idnode3, idnode4 : Integer) - returns MeshElement from SMDS; - - CreateVolume(me; ID, idnode1, idnode2, idnode3, idnode4, idnode5 : Integer) - returns MeshElement from SMDS; - - CreateVolume(me; ID, idnode1, idnode2, idnode3, idnode4, idnode5, idnode6 : Integer) - returns MeshElement from SMDS; - - CreateVolume(me; ID, idnode1, idnode2, idnode3, idnode4, idnode5, idnode6, idnode7, idnode8 : Integer) - returns MeshElement from SMDS; - - - FindNode(me; node: MeshElement) returns MeshElement from SMDS - ---Purpose: - is protected; - - FindEdge(me; edge: MeshElement) returns MeshElement from SMDS - ---Purpose: - is protected; - - FindFace(me; face: MeshElement) returns MeshElement from SMDS - ---Purpose: - is protected; - - FindVolume(me; volume: MeshElement) returns MeshElement from SMDS - ---Purpose: - is protected; - - - RemoveInverseElement(me; node,parent : MeshElement) - ---Purpose: - is protected; - - FreeNode(me: mutable; node: MeshElement) - is private; - - RemoveNode(me: mutable; node: MeshElement) returns Boolean - is protected; - - RemoveEdge(me: mutable; edge: MeshElement) - is protected; - - RemoveFace(me: mutable; face: MeshElement) - is protected; - - RemoveVolume(me: mutable; volume: MeshElement) - is protected; - - - - GetNode(me; ID: Integer) returns MeshElement from SMDS - is protected; - - RemoveAncestors(me: mutable; ME: MeshElement from SMDS; map: MapOfMeshOrientedElement from SMDS) - is protected; - - BuildMapNodeAncestors(me; ME: MeshElement from SMDS;map: in out MapOfMeshOrientedElement from SMDS) - is private; - - BuildMapEdgeAncestors(me; ME: MeshElement from SMDS;map: in out MapOfMeshOrientedElement from SMDS) - is private; - - BuildMapFaceAncestors(me; ME: MeshElement from SMDS;map: in out MapOfMeshOrientedElement from SMDS) - is private; - - RebuildInverseConnections(me: mutable) - ---Purpose: - is private; - - -fields - - myNodes : MapOfMeshOrientedElement from SMDS; - myEdges : MapOfMeshOrientedElement from SMDS; - myFaces : MapOfMeshOrientedElement from SMDS; - myVolumes : MapOfMeshOrientedElement from SMDS; - myParent : Mesh from SMDS; - myChildren : ListOfMesh from SMDS; - myNodeIDFactory : MeshNodeIDFactory from SMDS; - myElementIDFactory : MeshElementIDFactory from SMDS; - myHasInverse : Boolean; -friends - class MeshVolumesIterator from SMDS, - class MeshFacesIterator from SMDS, - class MeshEdgesIterator from SMDS, - class MeshNodesIterator from SMDS - -end Mesh; diff --git a/src/SMDS/SMDS_Mesh.ixx b/src/SMDS/SMDS_Mesh.ixx deleted file mode 100644 index 98b052848..000000000 --- a/src/SMDS/SMDS_Mesh.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_Mesh.ixx -// Module : SMESH - -#include "SMDS_Mesh.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_Mesh::~SMDS_Mesh() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_Mesh_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_Mesh", - sizeof(SMDS_Mesh), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_Mesh) Handle(SMDS_Mesh)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_Mesh) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_Mesh))) { - _anOtherObject = Handle(SMDS_Mesh)((Handle(SMDS_Mesh)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_Mesh::DynamicType() const -{ - return STANDARD_TYPE(SMDS_Mesh) ; -} -Standard_Boolean SMDS_Mesh::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_Mesh) == AType || SMDS_MeshObject::IsKind(AType)); -} -Handle_SMDS_Mesh::~Handle_SMDS_Mesh() {} - diff --git a/src/SMDS/SMDS_Mesh.jxx b/src/SMDS/SMDS_Mesh.jxx deleted file mode 100644 index c7e2f9c8a..000000000 --- a/src/SMDS/SMDS_Mesh.jxx +++ /dev/null @@ -1,62 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_Mesh.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshNodeIDFactory_HeaderFile -#include "SMDS_MeshNodeIDFactory.hxx" -#endif -#ifndef _SMDS_MeshElementIDFactory_HeaderFile -#include "SMDS_MeshElementIDFactory.hxx" -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_MeshVolumesIterator_HeaderFile -#include "SMDS_MeshVolumesIterator.hxx" -#endif -#ifndef _SMDS_MeshFacesIterator_HeaderFile -#include "SMDS_MeshFacesIterator.hxx" -#endif -#ifndef _SMDS_MeshEdgesIterator_HeaderFile -#include "SMDS_MeshEdgesIterator.hxx" -#endif -#ifndef _SMDS_MeshNodesIterator_HeaderFile -#include "SMDS_MeshNodesIterator.hxx" -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshNode_HeaderFile -#include "SMDS_MeshNode.hxx" -#endif -#ifndef _SMDS_MapOfMeshOrientedElement_HeaderFile -#include "SMDS_MapOfMeshOrientedElement.hxx" -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif diff --git a/src/SMDS/SMDS_Mesh.lxx b/src/SMDS/SMDS_Mesh.lxx deleted file mode 100644 index 21fa6d7b0..000000000 --- a/src/SMDS/SMDS_Mesh.lxx +++ /dev/null @@ -1,74 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_Mesh.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_Mesh::NbNodes() const -{ - return myNodes.Extent(); -} - -//======================================================================= -//function : NbEdges -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_Mesh::NbEdges() const -{ - return myEdges.Extent(); -} - -//======================================================================= -//function : NbFaces -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_Mesh::NbFaces() const -{ - return myFaces.Extent(); -} - -//======================================================================= -//function : NbVolumes -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_Mesh::NbVolumes() const -{ - return myVolumes.Extent(); -} - - -//======================================================================= -//function : NbSubMesh -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_Mesh::NbSubMesh() const -{ - return myChildren.Extent(); -} - - diff --git a/src/SMDS/SMDS_MeshEdge.cdl b/src/SMDS/SMDS_MeshEdge.cdl deleted file mode 100755 index f1812dabe..000000000 --- a/src/SMDS/SMDS_MeshEdge.cdl +++ /dev/null @@ -1,58 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshEdge.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshEdge from SMDS inherits MeshElement from SMDS - - ---Purpose: - -is - Create (ID,idnode1,idnode2: Integer) returns mutable MeshEdge; - - ComputeKey(me: mutable); - ---Purpose: compute the ID of the edge based on the id's of its - -- bounding nodes - ---C++: inline - - GetKey(me) returns Integer is redefined static; - ---C++: inline - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - SetConnections(me: mutable; idnode1,idnode2: Integer) is private; - - Print(me; OS: in out OStream) is redefined static; - -fields - - myKey : Integer; - myNodes : Integer [2]; - -end MeshEdge; diff --git a/src/SMDS/SMDS_MeshEdge.ixx b/src/SMDS/SMDS_MeshEdge.ixx deleted file mode 100644 index 2a2428e46..000000000 --- a/src/SMDS/SMDS_MeshEdge.ixx +++ /dev/null @@ -1,85 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdge.ixx -// Module : SMESH - -#include "SMDS_MeshEdge.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshEdge::~SMDS_MeshEdge() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshEdge_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshEdge", - sizeof(SMDS_MeshEdge), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshEdge) Handle(SMDS_MeshEdge)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshEdge) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshEdge))) { - _anOtherObject = Handle(SMDS_MeshEdge)((Handle(SMDS_MeshEdge)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshEdge::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshEdge) ; -} -Standard_Boolean SMDS_MeshEdge::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshEdge) == AType || SMDS_MeshElement::IsKind(AType)); -} -Handle_SMDS_MeshEdge::~Handle_SMDS_MeshEdge() {} - diff --git a/src/SMDS/SMDS_MeshEdge.jxx b/src/SMDS/SMDS_MeshEdge.jxx deleted file mode 100644 index 57a59a873..000000000 --- a/src/SMDS/SMDS_MeshEdge.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdge.jxx -// Module : SMESH - -#ifndef _SMDS_MeshEdge_HeaderFile -#include "SMDS_MeshEdge.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshEdge.lxx b/src/SMDS/SMDS_MeshEdge.lxx deleted file mode 100644 index 738dc66e9..000000000 --- a/src/SMDS/SMDS_MeshEdge.lxx +++ /dev/null @@ -1,66 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdge.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline void SMDS_MeshEdge::ComputeKey() -{ - // myKey = (myNodes[0] << 2) + myNodes[1]; - myKey = myNodes[0] + myNodes[1]; -} - -//======================================================================= -//function : GetKey -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshEdge::GetKey() const -{ - return myKey; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshEdge::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - -//======================================================================= -//function : GetConnections -//purpose : -// -//======================================================================= - -inline Standard_Address SMDS_MeshEdge::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - diff --git a/src/SMDS/SMDS_MeshEdgesIterator.cdl b/src/SMDS/SMDS_MeshEdgesIterator.cdl deleted file mode 100644 index 0421b24f9..000000000 --- a/src/SMDS/SMDS_MeshEdgesIterator.cdl +++ /dev/null @@ -1,55 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshEdgesIterator.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshEdgesIterator from SMDS inherits MeshElementsIterator from SMDS - - ---Purpose: The Iterator objet to iterate on all edges of a mesh - -- - -uses - Mesh from SMDS, - MeshElement from SMDS, - MapIteratorOfExtendedMap from SMDS - -raises - NoMoreObject, - NoSuchObject - -is - - Create returns MeshEdgesIterator from SMDS; - ---Purpose: Creates an empty Iterator. - - Create(M : Mesh from SMDS) returns MeshEdgesIterator from SMDS; - ---Purpose: Creates an Iterator on faces of mesh . - - Initialize(me : in out; M : Mesh from SMDS) - ---Purpose: Reset the Iterator on the faces of mesh . - is redefined static; - - -end MeshEdgesIterator; diff --git a/src/SMDS/SMDS_MeshEdgesIterator.cxx b/src/SMDS/SMDS_MeshEdgesIterator.cxx deleted file mode 100644 index f34a9c2ce..000000000 --- a/src/SMDS/SMDS_MeshEdgesIterator.cxx +++ /dev/null @@ -1,63 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdgesIterator.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshEdgesIterator.ixx" - -//======================================================================= -//function : SMDS_MeshEdgesIterator -//purpose : -//======================================================================= - -SMDS_MeshEdgesIterator::SMDS_MeshEdgesIterator() -{ -} - -//======================================================================= -//function : SMDS_MeshEdgesIterator -//purpose : -//======================================================================= - -SMDS_MeshEdgesIterator::SMDS_MeshEdgesIterator(const Handle(SMDS_Mesh)& M) -{ - Initialize(M); -} - -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= - -void SMDS_MeshEdgesIterator::Initialize(const Handle(SMDS_Mesh)& M) -{ - - myMapIterator.Initialize(M->myEdges); - if (More()) { - myCurrentMeshElement = myMapIterator.Key(); - } -} - diff --git a/src/SMDS/SMDS_MeshEdgesIterator.hxx b/src/SMDS/SMDS_MeshEdgesIterator.hxx deleted file mode 100644 index fe5fa7400..000000000 --- a/src/SMDS/SMDS_MeshEdgesIterator.hxx +++ /dev/null @@ -1,108 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdgesIterator.hxx -// Module : SMESH - -#ifndef _SMDS_MeshEdgesIterator_HeaderFile -#define _SMDS_MeshEdgesIterator_HeaderFile - -#ifndef _SMDS_MeshElementsIterator_HeaderFile -#include "SMDS_MeshElementsIterator.hxx" -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_Mesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshEdgesIterator : public SMDS_MeshElementsIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_MeshEdgesIterator(); -Standard_EXPORT SMDS_MeshEdgesIterator(const Handle(SMDS_Mesh)& M); -Standard_EXPORT void Initialize(const Handle(SMDS_Mesh)& M) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshEdgesIterator.ixx b/src/SMDS/SMDS_MeshEdgesIterator.ixx deleted file mode 100644 index e96969739..000000000 --- a/src/SMDS/SMDS_MeshEdgesIterator.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdgesIterator.ixx -// Module : SMESH - -#include "SMDS_MeshEdgesIterator.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshEdgesIterator.jxx b/src/SMDS/SMDS_MeshEdgesIterator.jxx deleted file mode 100644 index 02d280907..000000000 --- a/src/SMDS/SMDS_MeshEdgesIterator.jxx +++ /dev/null @@ -1,38 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshEdgesIterator.jxx -// Module : SMESH - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshEdgesIterator_HeaderFile -#include "SMDS_MeshEdgesIterator.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshElement.cdl b/src/SMDS/SMDS_MeshElement.cdl deleted file mode 100644 index f5b8bd754..000000000 --- a/src/SMDS/SMDS_MeshElement.cdl +++ /dev/null @@ -1,134 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshElement.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class MeshElement from SMDS inherits MeshObject from SMDS - - ---Purpose: MeshElement is the base class for all mesh -- - -- elements that constitutes a mesh. The children - -- classes will include elements like Node, Edge, - -- Face, and Volume. - -uses - ListOfMeshElement from SMDS, - HArray1OfDir from TColgp, - Dir from gp, - Vec from gp, - ElementType from SMDSAbs - -raises - OutOfRange from Standard - -is - - Initialize(ID: Integer; NbConnections : Integer; - Type: ElementType from SMDSAbs) - returns mutable MeshElement; - - HashCode (me; Upper : Integer) returns Integer is redefined static; - ---Purpose: Returns a hashed value denoting . This value is in - -- the range 1... - ---C++: inline - - IsSame(me; other : MeshElement) returns Boolean; - ---Purpose: Returns True if two mesh elements are same but not - -- necessary the same orientation - ---C++: inline - - - IsEqual(me; other : MeshElement) returns Boolean; - ---Purpose: Returns True if two mesh elements are same and - -- havesame orientation - ---C++: inline - - - IsNodeInElement(me; idnode: Integer) returns Boolean; - ---Purpose: returns true or false if idnode is in the list of the - -- direct connections - ---C++: inline - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1, idnode2 : out Integer) is virtual; - ---Purpose: returns the idnodes of the ith edge (rank) of the face - -- rank must be comprised between 1 and myNbConnections included. - - GetFaceDefinedByNodes(me; rank: Integer; idnode : Address;nb: out Integer) is virtual; - ---Purpose: returns the idnodes of the ith edge (rank) of the face - -- rank must be comprised between 1 and myNbConnections included. - - GetConnections(me) returns Address - is virtual protected; - - GetConnection(me; rank: Integer) returns Integer is virtual; - - AddInverseElement(me:mutable; ME: MeshElement from SMDS) is virtual; - - InverseElements(me) returns ListOfMeshElement is virtual; - ---C++: return const & - - ClearInverseElements(me: mutable) is virtual; - - NbNodes(me) returns Integer; - ---C++: inline - - NbEdges(me) returns Integer - is virtual; - - NbFaces(me) returns Integer - is virtual; - - GetID(me) returns Integer; - ---Purpose: returns identifier of node - ---C++: inline - - GetKey(me) returns Integer is deferred; - ---Purpose: returns key for hashcode - - - SetNormal(me: mutable; rank: Integer; vx,vy,vz : Real) is virtual; - ---Purpose: set the rank th normal of the element - - SetNormal(me: mutable; rank: Integer; v : Vec from gp) is virtual; - ---Purpose: set the rank th normal of the element - - GetNormal(me:mutable; rank: Integer) returns Dir from gp is virtual; - ---Purpose: get the rank th normal of the element - - Print(me; OS: in out OStream) is virtual; - ---Purpose: - ---C++: alias "friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& OS, const Handle(SMDS_MeshElement)& );" - - GetType(me) returns ElementType from SMDSAbs; - ---Purpose: return the mesh element type - ---C++: inline - -fields - - myID : Integer is protected; - myType : ElementType from SMDSAbs; - myNbNodes : Integer is protected; - myNormals : HArray1OfDir from TColgp is protected; - -end MeshElement; diff --git a/src/SMDS/SMDS_MeshElement.ixx b/src/SMDS/SMDS_MeshElement.ixx deleted file mode 100644 index 7a373ea65..000000000 --- a/src/SMDS/SMDS_MeshElement.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElement.ixx -// Module : SMESH - -#include "SMDS_MeshElement.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshElement::~SMDS_MeshElement() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshElement_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshElement", - sizeof(SMDS_MeshElement), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshElement) Handle(SMDS_MeshElement)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshElement) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshElement))) { - _anOtherObject = Handle(SMDS_MeshElement)((Handle(SMDS_MeshElement)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshElement::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshElement) ; -} -Standard_Boolean SMDS_MeshElement::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshElement) == AType || SMDS_MeshObject::IsKind(AType)); -} -Handle_SMDS_MeshElement::~Handle_SMDS_MeshElement() {} - diff --git a/src/SMDS/SMDS_MeshElement.jxx b/src/SMDS/SMDS_MeshElement.jxx deleted file mode 100644 index dfa7e75f5..000000000 --- a/src/SMDS/SMDS_MeshElement.jxx +++ /dev/null @@ -1,44 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElement.jxx -// Module : SMESH - -#ifndef _TColgp_HArray1OfDir_HeaderFile -#include -#endif -#ifndef _Standard_OutOfRange_HeaderFile -#include -#endif -#ifndef _SMDS_ListOfMeshElement_HeaderFile -#include "SMDS_ListOfMeshElement.hxx" -#endif -#ifndef _gp_Vec_HeaderFile -#include -#endif -#ifndef _gp_Dir_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshElement.lxx b/src/SMDS/SMDS_MeshElement.lxx deleted file mode 100644 index f7a9df8a7..000000000 --- a/src/SMDS/SMDS_MeshElement.lxx +++ /dev/null @@ -1,149 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElement.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshElement::HashCode(const Standard_Integer Upper) const -{ - return (GetKey() % Upper); -} - -//======================================================================= -//function : IsEqual -//purpose : -//======================================================================= - -inline Standard_Boolean SMDS_MeshElement::IsEqual(const Handle(SMDS_MeshElement)& other) const -{ - if (this->NbNodes()!=other->NbNodes()) - return Standard_False; - Standard_Integer *c1,*c2; - Standard_Integer n = this->NbNodes(); - - c1 = (Standard_Integer *)this->GetConnections(); - c2 = (Standard_Integer *)other->GetConnections(); - if (*c1 != *c2) - return Standard_False; - - n--; - c1++; - c2++; - - for (;n--; c1++,c2++) { - if (*c1 != *c2) { - return Standard_False; - } - } - - return Standard_True; - -} - -//======================================================================= -//function : IsSame -//purpose : -//======================================================================= - -inline Standard_Boolean SMDS_MeshElement::IsSame(const Handle(SMDS_MeshElement)& other) const -{ - if (this->NbNodes()!=other->NbNodes()) - return Standard_False; - Standard_Integer *c1,*c2; - Standard_Integer n = this->NbNodes(); - - c1 = (Standard_Integer *)this->GetConnections(); - c2 = (Standard_Integer *)other->GetConnections(); - if (*c1 != *c2) - return Standard_False; - - n--; - c1++; - c2++; - - Standard_Integer off = n-1; - - for (;n--; c1++,c2++) { - if (*c1 != *c2 && *c1 != *(c2+off)) { - return Standard_False; - } - off -= 2; - } - - return Standard_True; -} - -//======================================================================= -//function : IsNodeInElement -//purpose : -//======================================================================= -inline Standard_Boolean SMDS_MeshElement::IsNodeInElement(const Standard_Integer idnode) const -{ - if (idnode < GetConnection(1)) - return Standard_False; - - Standard_Integer *c; - c = (Standard_Integer *)this->GetConnections(); - Standard_Integer n = myNbNodes; - - for (;n--; c++) { - if (*c == idnode) - return Standard_True; - } - - return Standard_False; -} - - -//======================================================================= -//function : NbNodes -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshElement::NbNodes() const -{ - return myNbNodes; -} - -//======================================================================= -//function : GetID -//purpose : -//======================================================================= -inline Standard_Integer SMDS_MeshElement::GetID() const -{ - return myID; -} - -//======================================================================= -//function : GetType -//purpose : -//======================================================================= -inline SMDSAbs_ElementType SMDS_MeshElement::GetType() const -{ - return myType; -} - - - diff --git a/src/SMDS/SMDS_MeshElementIDFactory.cdl b/src/SMDS/SMDS_MeshElementIDFactory.cdl deleted file mode 100644 index 850bfefff..000000000 --- a/src/SMDS/SMDS_MeshElementIDFactory.cdl +++ /dev/null @@ -1,65 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshElementIDFactory.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -private class MeshElementIDFactory from SMDS inherits MeshIDFactory - - ---Purpose: - -uses - DataMapOfIntegerMeshElement from SMDS, - MeshElement from SMDS - -is - - Create returns mutable MeshElementIDFactory from SMDS; - - GetFreeID(me:mutable) returns Integer is redefined static; - ---Purpose: returns a free identifier for mesh from - -- the pool of ID - ---C++: inline - - ReleaseID(me: mutable;ID :Integer) is redefined static; - ---Purpose: free the ID and give it back to the pool of ID - ---C++: inline - - BindID(me: mutable;ID :Integer; elem : MeshElement from SMDS ) - returns Boolean; - ---Purpose: bind the ID with the mesh element - -- returns False if the ID is already bound. - -- In this case the element is not replaced - ---C++: inline - - MeshElement(me;ID :Integer) returns MeshElement from SMDS; - ---Purpose: returns the MeshElement associated with ID - -- raises an exception if the ID is not bound - ---C++: inline - - -fields - myIDElements : DataMapOfIntegerMeshElement from SMDS; - -end MeshElementIDFactory; diff --git a/src/SMDS/SMDS_MeshElementIDFactory.ixx b/src/SMDS/SMDS_MeshElementIDFactory.ixx deleted file mode 100644 index 0e292f300..000000000 --- a/src/SMDS/SMDS_MeshElementIDFactory.ixx +++ /dev/null @@ -1,85 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementIDFactory.ixx -// Module : SMESH - -#include "SMDS_MeshElementIDFactory.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshElementIDFactory::~SMDS_MeshElementIDFactory() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshElementIDFactory_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshIDFactory); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshIDFactory); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshElementIDFactory", - sizeof(SMDS_MeshElementIDFactory), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshElementIDFactory) Handle(SMDS_MeshElementIDFactory)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshElementIDFactory) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshElementIDFactory))) { - _anOtherObject = Handle(SMDS_MeshElementIDFactory)((Handle(SMDS_MeshElementIDFactory)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshElementIDFactory::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshElementIDFactory) ; -} -Standard_Boolean SMDS_MeshElementIDFactory::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshElementIDFactory) == AType || SMDS_MeshIDFactory::IsKind(AType)); -} -Handle_SMDS_MeshElementIDFactory::~Handle_SMDS_MeshElementIDFactory() {} - diff --git a/src/SMDS/SMDS_MeshElementIDFactory.jxx b/src/SMDS/SMDS_MeshElementIDFactory.jxx deleted file mode 100644 index d6d1167c9..000000000 --- a/src/SMDS/SMDS_MeshElementIDFactory.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementIDFactory.jxx -// Module : SMESH - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementIDFactory_HeaderFile -#include "SMDS_MeshElementIDFactory.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshElementIDFactory.lxx b/src/SMDS/SMDS_MeshElementIDFactory.lxx deleted file mode 100644 index 997c63ce8..000000000 --- a/src/SMDS/SMDS_MeshElementIDFactory.lxx +++ /dev/null @@ -1,74 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementIDFactory.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshElementIDFactory::GetFreeID() -{ - if (myPoolOfID.IsEmpty()) { - ++myMaxID; - while (myIDElements.IsBound(myMaxID)) ++myMaxID; - return myMaxID; - } else { - Standard_Integer ID = myPoolOfID.Top(); - myPoolOfID.Pop(); - return ID; - } - -} - -//======================================================================= -//function : ReleaseID -//purpose : -//======================================================================= -inline void SMDS_MeshElementIDFactory::ReleaseID(const Standard_Integer ID) -{ - myIDElements.UnBind(ID); - if (ID < myMaxID) - myPoolOfID.Push(ID); - -} - -//======================================================================= -//function : BindID -//purpose : -//======================================================================= -inline Standard_Boolean SMDS_MeshElementIDFactory::BindID(const Standard_Integer ID, - const Handle(SMDS_MeshElement)& elem) -{ - return myIDElements.Bind(ID,elem); - -} - -//======================================================================= -//function : MeshElement -//purpose : -//======================================================================= -inline Handle(SMDS_MeshElement) SMDS_MeshElementIDFactory::MeshElement(const Standard_Integer ID) const -{ - return myIDElements.Find(ID); - -} - diff --git a/src/SMDS/SMDS_MeshElementMapHasher.cdl b/src/SMDS/SMDS_MeshElementMapHasher.cdl deleted file mode 100644 index 28445fedf..000000000 --- a/src/SMDS/SMDS_MeshElementMapHasher.cdl +++ /dev/null @@ -1,51 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshElementMapHasher.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshElementMapHasher from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - - -is - HashCode(myclass; ME: MeshElement from SMDS; Upper : Integer) returns Integer; - ---Purpose: Returns a HasCode value for the Key in the - -- range 0..Upper. - -- - ---C++: inline - - IsEqual(myclass; ME1, ME2 : MeshElement from SMDS) returns Boolean; - ---Purpose: Returns True when the two keys are the same. Two - -- same keys must have the same hashcode, the - -- contrary is not necessary. - -- - ---C++: inline - - -end MeshElementMapHasher; diff --git a/src/SMDS/SMDS_MeshElementMapHasher.cxx b/src/SMDS/SMDS_MeshElementMapHasher.cxx deleted file mode 100644 index cae0c6c19..000000000 --- a/src/SMDS/SMDS_MeshElementMapHasher.cxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementMapHasher.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshElementMapHasher.ixx" diff --git a/src/SMDS/SMDS_MeshElementMapHasher.hxx b/src/SMDS/SMDS_MeshElementMapHasher.hxx deleted file mode 100644 index 080d874ba..000000000 --- a/src/SMDS/SMDS_MeshElementMapHasher.hxx +++ /dev/null @@ -1,109 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementMapHasher.hxx -// Module : SMESH - -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#define _SMDS_MeshElementMapHasher_HeaderFile - -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class SMDS_MeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshElementMapHasher { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline static Standard_Integer HashCode(const Handle(SMDS_MeshElement)& ME,const Standard_Integer Upper) ; -Standard_EXPORT inline static Standard_Boolean IsEqual(const Handle(SMDS_MeshElement)& ME1,const Handle(SMDS_MeshElement)& ME2) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - -#include "SMDS_MeshElementMapHasher.lxx" - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshElementMapHasher.ixx b/src/SMDS/SMDS_MeshElementMapHasher.ixx deleted file mode 100644 index 48983b481..000000000 --- a/src/SMDS/SMDS_MeshElementMapHasher.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementMapHasher.ixx -// Module : SMESH - -#include "SMDS_MeshElementMapHasher.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshElementMapHasher.jxx b/src/SMDS/SMDS_MeshElementMapHasher.jxx deleted file mode 100644 index c6909bbaf..000000000 --- a/src/SMDS/SMDS_MeshElementMapHasher.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementMapHasher.jxx -// Module : SMESH - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#include "SMDS_MeshElementMapHasher.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshElementMapHasher.lxx b/src/SMDS/SMDS_MeshElementMapHasher.lxx deleted file mode 100644 index 75d61b3c7..000000000 --- a/src/SMDS/SMDS_MeshElementMapHasher.lxx +++ /dev/null @@ -1,48 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementMapHasher.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -#include "SMDS_MeshElement.hxx" - -//======================================================================= -//function : HashCode -//purpose : -//======================================================================= -inline Standard_Integer SMDS_MeshElementMapHasher::HashCode - (const Handle(SMDS_MeshElement)& ME, const Standard_Integer Upper) -{ - return ME->HashCode(Upper); -} - -//======================================================================= -//function : IsEqual -//purpose : -//======================================================================= -inline Standard_Boolean SMDS_MeshElementMapHasher::IsEqual - (const Handle(SMDS_MeshElement)& ME1, const Handle(SMDS_MeshElement)& ME2) -{ - return ME1->IsSame(ME2); -} diff --git a/src/SMDS/SMDS_MeshElementsIterator.cdl b/src/SMDS/SMDS_MeshElementsIterator.cdl deleted file mode 100644 index b06f735f7..000000000 --- a/src/SMDS/SMDS_MeshElementsIterator.cdl +++ /dev/null @@ -1,76 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshElementsIterator.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class MeshElementsIterator from SMDS - - ---Purpose: The Iterator objet to iterate on all faces of a mesh - -- - -uses - Mesh from SMDS, - MeshElement from SMDS, - MapIteratorOfExtendedOrientedMap from SMDS - -raises - NoMoreObject, - NoSuchObject - -is - - Delete(me:out) is virtual; - ---C++: alias "Standard_EXPORT virtual ~SMDS_MeshElementsIterator(){Delete();}" - - Initialize(me : in out; M : Mesh from SMDS) - ---Purpose: Reset the Iterator on the faces of mesh . - is deferred; - - More(me) returns Boolean - ---Purpose: Returns True if there is a current meshface. - -- - ---C++: inline - is static; - - Next(me : in out) - ---Purpose: Moves to the next face. - raises - NoMoreObject from Standard - is static; - - Value(me) returns MeshElement from SMDS - ---Purpose: Returns the meshface. - raises - NoSuchObject from Standard - ---C++: return const & - ---C++: inline - is static; - - -fields - myCurrentMeshElement : MeshElement from SMDS is protected; - myMapIterator : MapIteratorOfExtendedOrientedMap from SMDS is protected; - -end MeshElementsIterator; diff --git a/src/SMDS/SMDS_MeshElementsIterator.cxx b/src/SMDS/SMDS_MeshElementsIterator.cxx deleted file mode 100644 index 38b9b2aed..000000000 --- a/src/SMDS/SMDS_MeshElementsIterator.cxx +++ /dev/null @@ -1,45 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementsIterator.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshElementsIterator.ixx" - -void SMDS_MeshElementsIterator::Delete() -{} - -//======================================================================= -//function : Next -//purpose : -//======================================================================= - -void SMDS_MeshElementsIterator::Next() -{ - myMapIterator.Next(); - if (More()) { - myCurrentMeshElement = myMapIterator.Key(); - } -} diff --git a/src/SMDS/SMDS_MeshElementsIterator.hxx b/src/SMDS/SMDS_MeshElementsIterator.hxx deleted file mode 100644 index 65b95e957..000000000 --- a/src/SMDS/SMDS_MeshElementsIterator.hxx +++ /dev/null @@ -1,121 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementsIterator.hxx -// Module : SMESH - -#ifndef _SMDS_MeshElementsIterator_HeaderFile -#define _SMDS_MeshElementsIterator_HeaderFile - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedOrientedMap.hxx" -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class SMDS_MeshElement; -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_Mesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshElementsIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT virtual void Delete() ; -Standard_EXPORT virtual ~SMDS_MeshElementsIterator(){Delete();} -Standard_EXPORT virtual void Initialize(const Handle(SMDS_Mesh)& M) = 0; -Standard_EXPORT inline Standard_Boolean More() const; -Standard_EXPORT void Next() ; -Standard_EXPORT inline const Handle_SMDS_MeshElement& Value() const; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // -Handle_SMDS_MeshElement myCurrentMeshElement; -SMDS_MapIteratorOfExtendedOrientedMap myMapIterator; - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - -#include "SMDS_MeshElementsIterator.lxx" - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshElementsIterator.ixx b/src/SMDS/SMDS_MeshElementsIterator.ixx deleted file mode 100644 index d289380e2..000000000 --- a/src/SMDS/SMDS_MeshElementsIterator.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementsIterator.ixx -// Module : SMESH - -#include "SMDS_MeshElementsIterator.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshElementsIterator.jxx b/src/SMDS/SMDS_MeshElementsIterator.jxx deleted file mode 100644 index 8274a35f8..000000000 --- a/src/SMDS/SMDS_MeshElementsIterator.jxx +++ /dev/null @@ -1,41 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementsIterator.jxx -// Module : SMESH - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshElementsIterator_HeaderFile -#include "SMDS_MeshElementsIterator.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshElementsIterator.lxx b/src/SMDS/SMDS_MeshElementsIterator.lxx deleted file mode 100644 index 23b3de7aa..000000000 --- a/src/SMDS/SMDS_MeshElementsIterator.lxx +++ /dev/null @@ -1,49 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshElementsIterator.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -#include - -//======================================================================= -//function : More -//purpose : -//======================================================================= - -inline Standard_Boolean SMDS_MeshElementsIterator::More() const -{ - return myMapIterator.More(); -} - -//======================================================================= -//function : Value -//purpose : -//======================================================================= - -inline const Handle(SMDS_MeshElement)& SMDS_MeshElementsIterator::Value() const -{ - Standard_NoSuchObject_Raise_if(!More(),"SMDS_MeshElementsIterator::Value"); - return myCurrentMeshElement; -} diff --git a/src/SMDS/SMDS_MeshFace.cdl b/src/SMDS/SMDS_MeshFace.cdl deleted file mode 100755 index c5b74b79c..000000000 --- a/src/SMDS/SMDS_MeshFace.cdl +++ /dev/null @@ -1,54 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshFace.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class MeshFace from SMDS inherits MeshElement from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - -is - - Initialize(ID: Integer; NbConnections : Integer) returns mutable MeshFace; - - ComputeKey(me: mutable) is deferred; - ---Purpose: compute the ID of the face based on the id's of its - -- bounding nodes - - GetKey(me) returns Integer is redefined static; - ---C++: inline - - NbEdges(me) returns Integer - is redefined virtual; - - Print(me; OS: in out OStream) is redefined virtual; - -fields - myKey : Integer is protected; - -end MeshFace; diff --git a/src/SMDS/SMDS_MeshFace.ixx b/src/SMDS/SMDS_MeshFace.ixx deleted file mode 100644 index 338c4f027..000000000 --- a/src/SMDS/SMDS_MeshFace.ixx +++ /dev/null @@ -1,85 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFace.ixx -// Module : SMESH - -#include "SMDS_MeshFace.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshFace::~SMDS_MeshFace() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshFace_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshFace", - sizeof(SMDS_MeshFace), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshFace) Handle(SMDS_MeshFace)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshFace) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshFace))) { - _anOtherObject = Handle(SMDS_MeshFace)((Handle(SMDS_MeshFace)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshFace::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshFace) ; -} -Standard_Boolean SMDS_MeshFace::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshFace) == AType || SMDS_MeshElement::IsKind(AType)); -} -Handle_SMDS_MeshFace::~Handle_SMDS_MeshFace() {} - diff --git a/src/SMDS/SMDS_MeshFace.jxx b/src/SMDS/SMDS_MeshFace.jxx deleted file mode 100644 index 94c54b76b..000000000 --- a/src/SMDS/SMDS_MeshFace.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFace.jxx -// Module : SMESH - -#ifndef _SMDS_MeshFace_HeaderFile -#include "SMDS_MeshFace.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshFace.lxx b/src/SMDS/SMDS_MeshFace.lxx deleted file mode 100644 index f3aae2feb..000000000 --- a/src/SMDS/SMDS_MeshFace.lxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFace.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshFace::GetKey() const -{ - return myKey; -} - diff --git a/src/SMDS/SMDS_MeshFacesIterator.cdl b/src/SMDS/SMDS_MeshFacesIterator.cdl deleted file mode 100644 index f0b589672..000000000 --- a/src/SMDS/SMDS_MeshFacesIterator.cdl +++ /dev/null @@ -1,54 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshFacesIterator.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshFacesIterator from SMDS inherits MeshElementsIterator from SMDS - - ---Purpose: The Iterator objet to iterate on all faces of a mesh - -- - -uses - Mesh from SMDS, - MeshElement from SMDS - -raises - NoMoreObject, - NoSuchObject - -is - - Create returns MeshFacesIterator from SMDS; - ---Purpose: Creates an empty Iterator. - - Create(M : Mesh from SMDS) returns MeshFacesIterator from SMDS; - ---Purpose: Creates an Iterator on faces of mesh . - - Initialize(me : in out; M : Mesh from SMDS) - ---Purpose: Reset the Iterator on the faces of mesh . - is redefined static; - - -end MeshFacesIterator; diff --git a/src/SMDS/SMDS_MeshFacesIterator.cxx b/src/SMDS/SMDS_MeshFacesIterator.cxx deleted file mode 100644 index 71cd6276e..000000000 --- a/src/SMDS/SMDS_MeshFacesIterator.cxx +++ /dev/null @@ -1,63 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFacesIterator.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshFacesIterator.ixx" - -//======================================================================= -//function : SMDS_MeshFacesIterator -//purpose : -//======================================================================= - -SMDS_MeshFacesIterator::SMDS_MeshFacesIterator() -{ -} - -//======================================================================= -//function : SMDS_MeshFacesIterator -//purpose : -//======================================================================= - -SMDS_MeshFacesIterator::SMDS_MeshFacesIterator(const Handle(SMDS_Mesh)& M) -{ - Initialize(M); -} - -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= - -void SMDS_MeshFacesIterator::Initialize(const Handle(SMDS_Mesh)& M) -{ - - myMapIterator.Initialize(M->myFaces); - if (More()) { - myCurrentMeshElement = myMapIterator.Key(); - } -} - diff --git a/src/SMDS/SMDS_MeshFacesIterator.hxx b/src/SMDS/SMDS_MeshFacesIterator.hxx deleted file mode 100644 index 34c1868b1..000000000 --- a/src/SMDS/SMDS_MeshFacesIterator.hxx +++ /dev/null @@ -1,108 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFacesIterator.hxx -// Module : SMESH - -#ifndef _SMDS_MeshFacesIterator_HeaderFile -#define _SMDS_MeshFacesIterator_HeaderFile - -#ifndef _SMDS_MeshElementsIterator_HeaderFile -#include "SMDS_MeshElementsIterator.hxx" -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_Mesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshFacesIterator : public SMDS_MeshElementsIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_MeshFacesIterator(); -Standard_EXPORT SMDS_MeshFacesIterator(const Handle(SMDS_Mesh)& M); -Standard_EXPORT void Initialize(const Handle(SMDS_Mesh)& M) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshFacesIterator.ixx b/src/SMDS/SMDS_MeshFacesIterator.ixx deleted file mode 100644 index 285d511f3..000000000 --- a/src/SMDS/SMDS_MeshFacesIterator.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFacesIterator.ixx -// Module : SMESH - -#include "SMDS_MeshFacesIterator.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshFacesIterator.jxx b/src/SMDS/SMDS_MeshFacesIterator.jxx deleted file mode 100644 index 1155f2643..000000000 --- a/src/SMDS/SMDS_MeshFacesIterator.jxx +++ /dev/null @@ -1,38 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshFacesIterator.jxx -// Module : SMESH - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshFacesIterator_HeaderFile -#include "SMDS_MeshFacesIterator.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshGroup.cdl b/src/SMDS/SMDS_MeshGroup.cdl deleted file mode 100644 index 66518da9c..000000000 --- a/src/SMDS/SMDS_MeshGroup.cdl +++ /dev/null @@ -1,135 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org or email : webmaster@opencascade.org --- --- --- --- File : SMDS_MeshGroup.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshGroup from SMDS inherits MeshObject from SMDS - - ---Purpose: - -uses - Mesh from SMDS, - MeshElement from SMDS, - ElementType from SMDSAbs, - ListOfMeshGroup from SMDS, - MapOfMeshElement from SMDS - -raises - - NoSuchObject from Standard, - TypeMismatch from Standard - -is - - ---===================================== - ---Category: public API methods - -- Group creation and deletion - --====================================== - - Create(aMesh: Mesh from SMDS) returns MeshGroup from SMDS; - ---Purpose: constructor - - AddSubGroup(me: mutable) returns MeshGroup from SMDS; - ---Purpose: create a sub group. - -- uses a private constructor to create an instance of the - -- subgroup and attahc it the parent group. - - RemoveSubGroup(me: mutable; aGroup: MeshGroup from SMDS) - returns Boolean - ---Purpose: remove aGroup from the list of Children - -- if the subgroup does not belong to this, it returns False - -- (True otherwise) - is virtual; - - RemoveFromParent(me: mutable) - returns Boolean - ---Purpose: remove this from its parent - -- if this has no parent then it returns False (True otherwise) - is virtual; - - - - ---===================================== - ---Category: public API methods - -- Group contents edition - --====================================== - - Clear(me: mutable); - ---Purpose: clear the group - -- once the group is cleared, the type is set to All - -- but the referenced mesh remains. - - Add(me: mutable; ME: MeshElement from SMDS) - raises TypeMismatch from Standard; - ---Purpose: add an element to the group - - Remove(me: mutable; ME: MeshElement from SMDS) - raises NoSuchObject from Standard; - ---Purpose: remove an element from the group - -- raises if the element is not in the group - - ---===================================== - ---Category: public API methods - -- Group contents exploration - --====================================== - - IsEmpty(me) - returns Boolean from Standard; - ---Purpose: check if the group is empty - - Extent(me) returns Integer from Standard; - ---Purpose: return numner of elements in the group - - Type(me) returns ElementType from SMDSAbs; - ---Purpose: return current element type - -- if the group is empty, returns All - - Contains(me; ME : MeshElement from SMDS) - returns Boolean from Standard; - ---Purpose: check if the group contains the mesh element - - Elements(me) returns MapOfMeshElement from SMDS; - ---Purpose: check if the group contains the mesh element - ---C++: return const & - ---C++: inline - - ---=========================================== - ---Category: private or protected API methods - -- - --============================================ - - Create(parent: MeshGroup) returns mutable MeshGroup - ---Purpose: constructor used internally to create subgroup - -- - is private; - - -fields - myMesh : Mesh from SMDS; - myType : ElementType from SMDSAbs; - myElements : MapOfMeshElement from SMDS; - myParent : MeshGroup from SMDS; - myChildren : ListOfMeshGroup from SMDS; - -end MeshGroup; diff --git a/src/SMDS/SMDS_MeshGroup.ixx b/src/SMDS/SMDS_MeshGroup.ixx deleted file mode 100644 index 47b6b0830..000000000 --- a/src/SMDS/SMDS_MeshGroup.ixx +++ /dev/null @@ -1,82 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_MeshGroup.ixx -// Module : SMESH - -#include "SMDS_MeshGroup.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include "Standard_TypeMismatch.hxx" -#endif - -SMDS_MeshGroup::~SMDS_MeshGroup() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshGroup_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshGroup", - sizeof(SMDS_MeshGroup), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshGroup) Handle(SMDS_MeshGroup)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshGroup) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshGroup))) { - _anOtherObject = Handle(SMDS_MeshGroup)((Handle(SMDS_MeshGroup)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshGroup::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshGroup) ; -} -Standard_Boolean SMDS_MeshGroup::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshGroup) == AType || SMDS_MeshObject::IsKind(AType)); -} -Handle_SMDS_MeshGroup::~Handle_SMDS_MeshGroup() {} - diff --git a/src/SMDS/SMDS_MeshGroup.jxx b/src/SMDS/SMDS_MeshGroup.jxx deleted file mode 100644 index eadbfab8e..000000000 --- a/src/SMDS/SMDS_MeshGroup.jxx +++ /dev/null @@ -1,46 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_MeshGroup.jxx -// Module : SMESH - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshGroup_HeaderFile -#include "SMDS_MeshGroup.hxx" -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MapOfMeshElement_HeaderFile -#include "SMDS_MapOfMeshElement.hxx" -#endif -#ifndef _SMDS_MeshGroup_HeaderFile -#include "SMDS_MeshGroup.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshGroup.lxx b/src/SMDS/SMDS_MeshGroup.lxx deleted file mode 100644 index 0f9b1a495..000000000 --- a/src/SMDS/SMDS_MeshGroup.lxx +++ /dev/null @@ -1,30 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_MeshGroup.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline const SMDS_MapOfMeshElement& SMDS_MeshGroup::Elements() const -{ - return myElements; -} diff --git a/src/SMDS/SMDS_MeshHexahedron.cdl b/src/SMDS/SMDS_MeshHexahedron.cdl deleted file mode 100644 index b75d5601b..000000000 --- a/src/SMDS/SMDS_MeshHexahedron.cdl +++ /dev/null @@ -1,89 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshHexahedron.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshHexahedron from SMDS inherits MeshVolume from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - - -raises - ConstructionError from Standard - -is - - - Create (ID,idnode1,idnode2,idnode3,idnode4,idnode5,idnode6,idnode7,idnode8: Integer) - returns mutable MeshHexahedron; - ---Purpose: constructor for a hexaedra - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1 : out Integer; idnode2: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith edge (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - GetFaceDefinedByNodes(me; rank: Integer; idnode : Address; nb: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith face (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - ComputeKey(me: mutable) is redefined static; - ---Purpose: compute the ID of the volume based on the id's of its - -- bounding nodes - ---C++: inline - - SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4,idnode5,idnode6,idnode7,idnode8: Integer) - is private; - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - NbEdges(me) returns Integer - is redefined static; - ---C++: inline - - NbFaces(me) returns Integer - is redefined static; - ---C++: inline - - NodesOfFace(myclass; rankface,ranknode: Integer) - returns Integer; - ---Purpose: returns the rank node in mynodes. Useful to extract faces from volume - -- - - NodesOfEdge(me; rankedge: Integer; ranknode: Integer) returns Integer; - -fields - - myNodes : Integer [8]; - -end MeshHexahedron; diff --git a/src/SMDS/SMDS_MeshHexahedron.ixx b/src/SMDS/SMDS_MeshHexahedron.ixx deleted file mode 100644 index 5662160b7..000000000 --- a/src/SMDS/SMDS_MeshHexahedron.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshHexahedron.ixx -// Module : SMESH - -#include "SMDS_MeshHexahedron.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshHexahedron::~SMDS_MeshHexahedron() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshHexahedron_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshVolume); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshVolume); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType3 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient); - if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshHexahedron", - sizeof(SMDS_MeshHexahedron), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshHexahedron) Handle(SMDS_MeshHexahedron)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshHexahedron) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshHexahedron))) { - _anOtherObject = Handle(SMDS_MeshHexahedron)((Handle(SMDS_MeshHexahedron)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshHexahedron::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshHexahedron) ; -} -Standard_Boolean SMDS_MeshHexahedron::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshHexahedron) == AType || SMDS_MeshVolume::IsKind(AType)); -} -Handle_SMDS_MeshHexahedron::~Handle_SMDS_MeshHexahedron() {} - diff --git a/src/SMDS/SMDS_MeshHexahedron.jxx b/src/SMDS/SMDS_MeshHexahedron.jxx deleted file mode 100644 index 5720ed993..000000000 --- a/src/SMDS/SMDS_MeshHexahedron.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshHexahedron.jxx -// Module : SMESH - -#ifndef _Standard_ConstructionError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshHexahedron_HeaderFile -#include "SMDS_MeshHexahedron.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshHexahedron.lxx b/src/SMDS/SMDS_MeshHexahedron.lxx deleted file mode 100644 index 4e597d834..000000000 --- a/src/SMDS/SMDS_MeshHexahedron.lxx +++ /dev/null @@ -1,77 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshHexahedron.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Address SMDS_MeshHexahedron::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshHexahedron::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - -//======================================================================= -//function : ComputKey -//purpose : compute theKey of the volume based on the ids of its bounding nodes -// -//======================================================================= - -inline void SMDS_MeshHexahedron::ComputeKey() -{ - // myKey = (myNodes[0]<<8) + (myNodes[1]<<7) + (myNodes[2]<<6) + (myNodes[3]<<5) - // +(myNodes[4]<<4) + (myNodes[5]<<3) + (myNodes[6]<<2) + myNodes[7]; - myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3] - + myNodes[4] + myNodes[5] + myNodes[6] + myNodes[7]; -} - -//======================================================================= -//function : NbEdges -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshHexahedron::NbEdges() const -{ - return 12; -} - -//======================================================================= -//function : NbFaces -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshHexahedron::NbFaces() const -{ - return 6; -} - diff --git a/src/SMDS/SMDS_MeshIDFactory.cdl b/src/SMDS/SMDS_MeshIDFactory.cdl deleted file mode 100644 index c7c74ca5b..000000000 --- a/src/SMDS/SMDS_MeshIDFactory.cdl +++ /dev/null @@ -1,52 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshIDFactory.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -private deferred class MeshIDFactory from SMDS inherits MeshObject - - ---Purpose: - -uses - StackOfInteger from TColStd - -is - - Initialize returns mutable MeshIDFactory from SMDS; - - GetFreeID(me:mutable) returns Integer is deferred; - ---Purpose: returns a free identifier for mesh from - -- the pool of ID - - - ReleaseID(me: mutable;ID :Integer) is deferred; - ---Purpose: free the ID and give it back to the pool of ID - - -fields - myMaxID : Integer is protected; - myPoolOfID : StackOfInteger from TColStd is protected; - -end MeshIDFactory; diff --git a/src/SMDS/SMDS_MeshIDFactory.ixx b/src/SMDS/SMDS_MeshIDFactory.ixx deleted file mode 100644 index d20c9b790..000000000 --- a/src/SMDS/SMDS_MeshIDFactory.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshIDFactory.ixx -// Module : SMESH - -#include "SMDS_MeshIDFactory.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshIDFactory::~SMDS_MeshIDFactory() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshIDFactory_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshIDFactory", - sizeof(SMDS_MeshIDFactory), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshIDFactory) Handle(SMDS_MeshIDFactory)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshIDFactory) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshIDFactory))) { - _anOtherObject = Handle(SMDS_MeshIDFactory)((Handle(SMDS_MeshIDFactory)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshIDFactory::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshIDFactory) ; -} -Standard_Boolean SMDS_MeshIDFactory::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshIDFactory) == AType || SMDS_MeshObject::IsKind(AType)); -} -Handle_SMDS_MeshIDFactory::~Handle_SMDS_MeshIDFactory() {} - diff --git a/src/SMDS/SMDS_MeshIDFactory.jxx b/src/SMDS/SMDS_MeshIDFactory.jxx deleted file mode 100644 index 55eeb8275..000000000 --- a/src/SMDS/SMDS_MeshIDFactory.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshIDFactory.jxx -// Module : SMESH - -#ifndef _SMDS_MeshIDFactory_HeaderFile -#include "SMDS_MeshIDFactory.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshIDFactory.lxx b/src/SMDS/SMDS_MeshIDFactory.lxx deleted file mode 100644 index 68bf5bf06..000000000 --- a/src/SMDS/SMDS_MeshIDFactory.lxx +++ /dev/null @@ -1,51 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshIDFactory.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshIDFactory::GetFreeID() -{ - if (myPoolOfID.IsEmpty()) - return ++myMaxID; - else { - Standard_Integer ID = myPoolOfID.Top(); - myPoolOfID.Pop(); - return ID; - } - -} - -//======================================================================= -//function : ReleaseID -//purpose : -//======================================================================= -inline void SMDS_MeshIDFactory::ReleaseID(const Standard_Integer ID) -{ - if (ID < myMaxID) - myPoolOfID.Push(ID); - -} - - diff --git a/src/SMDS/SMDS_MeshNode.cdl b/src/SMDS/SMDS_MeshNode.cdl deleted file mode 100755 index 8b4ffe867..000000000 --- a/src/SMDS/SMDS_MeshNode.cdl +++ /dev/null @@ -1,84 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshNode.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshNode from SMDS inherits MeshElement from SMDS - - ---Purpose: -uses - Pnt from gp, - MeshEdge from SMDS, - MeshFace from SMDS, - MeshVolume from SMDS, - ListOfMeshElement from SMDS, - Position from SMDS - -is - - Create (ID: Integer; x, y, z : Real) returns mutable MeshNode; - - Print(me; OS: in out OStream) is redefined static; - - GetKey(me) returns Integer is redefined static; - ---C++: inline - - X(me) returns Real; - ---C++: inline - - Y(me) returns Real; - ---C++: inline - - Z(me) returns Real; - ---C++: inline - - Pnt(me) returns Pnt from gp; - ---C++: inline - - SetPnt(me: mutable;P: Pnt from gp); - ---C++: inline - - AddInverseElement(me:mutable; ME: MeshElement from SMDS) is redefined static; - ---C++: inline - - RemoveInverseElement(me:mutable; parent: MeshElement from SMDS); - - InverseElements(me) returns ListOfMeshElement is redefined static; - ---C++: return const & - ---C++: inline - - ClearInverseElements(me: mutable) is redefined static; - ---C++: inline - - SetPosition(me: mutable; aPos: Position from SMDS); - - GetPosition(me) returns Position from SMDS; - -fields - myPnt : Pnt from gp; - myInverseElements : ListOfMeshElement from SMDS; - myPosition : Position from SMDS; - -end MeshNode; diff --git a/src/SMDS/SMDS_MeshNode.ixx b/src/SMDS/SMDS_MeshNode.ixx deleted file mode 100644 index 5d58ecbdb..000000000 --- a/src/SMDS/SMDS_MeshNode.ixx +++ /dev/null @@ -1,85 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNode.ixx -// Module : SMESH - -#include "SMDS_MeshNode.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshNode::~SMDS_MeshNode() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshNode_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshNode", - sizeof(SMDS_MeshNode), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshNode) Handle(SMDS_MeshNode)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshNode) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshNode))) { - _anOtherObject = Handle(SMDS_MeshNode)((Handle(SMDS_MeshNode)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshNode::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshNode) ; -} -Standard_Boolean SMDS_MeshNode::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshNode) == AType || SMDS_MeshElement::IsKind(AType)); -} -Handle_SMDS_MeshNode::~Handle_SMDS_MeshNode() {} - diff --git a/src/SMDS/SMDS_MeshNode.jxx b/src/SMDS/SMDS_MeshNode.jxx deleted file mode 100644 index 9c52d7dee..000000000 --- a/src/SMDS/SMDS_MeshNode.jxx +++ /dev/null @@ -1,38 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNode.jxx -// Module : SMESH - -#ifndef _SMDS_Position_HeaderFile -#include "SMDS_Position.hxx" -#endif -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_ListOfMeshElement_HeaderFile -#include "SMDS_ListOfMeshElement.hxx" -#endif -#ifndef _SMDS_MeshNode_HeaderFile -#include "SMDS_MeshNode.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshNode.lxx b/src/SMDS/SMDS_MeshNode.lxx deleted file mode 100644 index ab091c1a6..000000000 --- a/src/SMDS/SMDS_MeshNode.lxx +++ /dev/null @@ -1,117 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNode.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshNode::GetKey() const -{ - return myID; -} - -//======================================================================= -//function : X -//purpose : -// -//======================================================================= - -inline Standard_Real SMDS_MeshNode::X() const -{ - return myPnt.X(); -} - -//======================================================================= -//function : Y -//purpose : -// -//======================================================================= - -inline Standard_Real SMDS_MeshNode::Y() const -{ - return myPnt.Y(); -} - -//======================================================================= -//function : Z -//purpose : -// -//======================================================================= - -inline Standard_Real SMDS_MeshNode::Z() const -{ - return myPnt.Z(); -} - -//======================================================================= -//function : Pnt -//purpose : -// -//======================================================================= - -inline gp_Pnt SMDS_MeshNode::Pnt() const -{ - return myPnt; -} - -//======================================================================= -//function : Pnt -//purpose : -// -//======================================================================= - -inline void SMDS_MeshNode::SetPnt(const gp_Pnt& P) -{ - myPnt = P; -} - -//======================================================================= -//function : AddInverseElement -//purpose : -//======================================================================= - -inline void SMDS_MeshNode::AddInverseElement(const Handle(SMDS_MeshElement)& ME) -{ - myInverseElements.Append(ME); -} - -//======================================================================= -//function : InverseElements -//purpose : -//======================================================================= - -inline const SMDS_ListOfMeshElement& SMDS_MeshNode::InverseElements() const -{ - return myInverseElements; -} - -//======================================================================= -//function : ClearInverseElements -//purpose : -//======================================================================= - -inline void SMDS_MeshNode::ClearInverseElements() -{ - myInverseElements.Clear(); -} - diff --git a/src/SMDS/SMDS_MeshNodeIDFactory.cdl b/src/SMDS/SMDS_MeshNodeIDFactory.cdl deleted file mode 100644 index f0022dcd8..000000000 --- a/src/SMDS/SMDS_MeshNodeIDFactory.cdl +++ /dev/null @@ -1,46 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshNodeIDFactory.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -private class MeshNodeIDFactory from SMDS inherits MeshIDFactory - - ---Purpose: - -is - - Create returns mutable MeshNodeIDFactory from SMDS; - - GetFreeID(me:mutable) returns Integer is redefined static; - ---Purpose: returns a free identifier for mesh from - -- the pool of ID - ---C++: inline - - ReleaseID(me: mutable;ID :Integer) is redefined static; - ---Purpose: free the ID and give it back to the pool of ID - ---C++: inline - - -end MeshNodeIDFactory; diff --git a/src/SMDS/SMDS_MeshNodeIDFactory.ixx b/src/SMDS/SMDS_MeshNodeIDFactory.ixx deleted file mode 100644 index a8d328d7d..000000000 --- a/src/SMDS/SMDS_MeshNodeIDFactory.ixx +++ /dev/null @@ -1,85 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodeIDFactory.ixx -// Module : SMESH - -#include "SMDS_MeshNodeIDFactory.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshNodeIDFactory::~SMDS_MeshNodeIDFactory() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshNodeIDFactory_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshIDFactory); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshIDFactory); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshNodeIDFactory", - sizeof(SMDS_MeshNodeIDFactory), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshNodeIDFactory) Handle(SMDS_MeshNodeIDFactory)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshNodeIDFactory) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshNodeIDFactory))) { - _anOtherObject = Handle(SMDS_MeshNodeIDFactory)((Handle(SMDS_MeshNodeIDFactory)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshNodeIDFactory::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshNodeIDFactory) ; -} -Standard_Boolean SMDS_MeshNodeIDFactory::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshNodeIDFactory) == AType || SMDS_MeshIDFactory::IsKind(AType)); -} -Handle_SMDS_MeshNodeIDFactory::~Handle_SMDS_MeshNodeIDFactory() {} - diff --git a/src/SMDS/SMDS_MeshNodeIDFactory.jxx b/src/SMDS/SMDS_MeshNodeIDFactory.jxx deleted file mode 100644 index 806b4b7a8..000000000 --- a/src/SMDS/SMDS_MeshNodeIDFactory.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodeIDFactory.jxx -// Module : SMESH - -#ifndef _SMDS_MeshNodeIDFactory_HeaderFile -#include "SMDS_MeshNodeIDFactory.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshNodeIDFactory.lxx b/src/SMDS/SMDS_MeshNodeIDFactory.lxx deleted file mode 100644 index ead22d121..000000000 --- a/src/SMDS/SMDS_MeshNodeIDFactory.lxx +++ /dev/null @@ -1,51 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodeIDFactory.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshNodeIDFactory::GetFreeID() -{ - if (myPoolOfID.IsEmpty()) - return ++myMaxID; - else { - Standard_Integer ID = myPoolOfID.Top(); - myPoolOfID.Pop(); - return ID; - } - -} - -//======================================================================= -//function : ReleaseID -//purpose : -//======================================================================= -inline void SMDS_MeshNodeIDFactory::ReleaseID(const Standard_Integer ID) -{ - if (ID < myMaxID) - myPoolOfID.Push(ID); - -} - - diff --git a/src/SMDS/SMDS_MeshNodesIterator.cdl b/src/SMDS/SMDS_MeshNodesIterator.cdl deleted file mode 100644 index 0ae65e88c..000000000 --- a/src/SMDS/SMDS_MeshNodesIterator.cdl +++ /dev/null @@ -1,54 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshNodesIterator.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshNodesIterator from SMDS inherits MeshElementsIterator - - ---Purpose: The Iterator objet to iterate on all faces of a mesh - -- - -uses - Mesh from SMDS, - MeshElement from SMDS - -raises - NoMoreObject, - NoSuchObject - -is - - Create returns MeshNodesIterator from SMDS; - ---Purpose: Creates an empty Iterator. - - Create(M : Mesh from SMDS) returns MeshNodesIterator from SMDS; - ---Purpose: Creates an Iterator on faces of mesh . - - Initialize(me : in out; M : Mesh from SMDS) - ---Purpose: Reset the Iterator on the faces of mesh . - is redefined static; - - -end MeshNodesIterator; diff --git a/src/SMDS/SMDS_MeshNodesIterator.cxx b/src/SMDS/SMDS_MeshNodesIterator.cxx deleted file mode 100644 index 3c4b976fe..000000000 --- a/src/SMDS/SMDS_MeshNodesIterator.cxx +++ /dev/null @@ -1,63 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodesIterator.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshNodesIterator.ixx" - -//======================================================================= -//function : SMDS_MeshNodesIterator -//purpose : -//======================================================================= - -SMDS_MeshNodesIterator::SMDS_MeshNodesIterator() -{ -} - -//======================================================================= -//function : SMDS_MeshNodesIterator -//purpose : -//======================================================================= - -SMDS_MeshNodesIterator::SMDS_MeshNodesIterator(const Handle(SMDS_Mesh)& M) -{ - Initialize(M); -} - -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= - -void SMDS_MeshNodesIterator::Initialize(const Handle(SMDS_Mesh)& M) -{ - - myMapIterator.Initialize(M->myNodes); - if (More()) { - myCurrentMeshElement = myMapIterator.Key(); - } -} - diff --git a/src/SMDS/SMDS_MeshNodesIterator.hxx b/src/SMDS/SMDS_MeshNodesIterator.hxx deleted file mode 100644 index 1e3ab0595..000000000 --- a/src/SMDS/SMDS_MeshNodesIterator.hxx +++ /dev/null @@ -1,108 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodesIterator.hxx -// Module : SMESH - -#ifndef _SMDS_MeshNodesIterator_HeaderFile -#define _SMDS_MeshNodesIterator_HeaderFile - -#ifndef _SMDS_MeshElementsIterator_HeaderFile -#include "SMDS_MeshElementsIterator.hxx" -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_Mesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshNodesIterator : public SMDS_MeshElementsIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_MeshNodesIterator(); -Standard_EXPORT SMDS_MeshNodesIterator(const Handle(SMDS_Mesh)& M); -Standard_EXPORT void Initialize(const Handle(SMDS_Mesh)& M) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshNodesIterator.ixx b/src/SMDS/SMDS_MeshNodesIterator.ixx deleted file mode 100644 index 6f5c770d8..000000000 --- a/src/SMDS/SMDS_MeshNodesIterator.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodesIterator.ixx -// Module : SMESH - -#include "SMDS_MeshNodesIterator.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshNodesIterator.jxx b/src/SMDS/SMDS_MeshNodesIterator.jxx deleted file mode 100644 index e3c2f62d4..000000000 --- a/src/SMDS/SMDS_MeshNodesIterator.jxx +++ /dev/null @@ -1,38 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshNodesIterator.jxx -// Module : SMESH - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshNodesIterator_HeaderFile -#include "SMDS_MeshNodesIterator.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshObject.cdl b/src/SMDS/SMDS_MeshObject.cdl deleted file mode 100644 index e5750f534..000000000 --- a/src/SMDS/SMDS_MeshObject.cdl +++ /dev/null @@ -1,35 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshObject.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class MeshObject from SMDS inherits TShared from MMgt - - ---Purpose: - -is - - -end MeshObject; diff --git a/src/SMDS/SMDS_MeshObject.ixx b/src/SMDS/SMDS_MeshObject.ixx deleted file mode 100644 index 0aa4f7a3f..000000000 --- a/src/SMDS/SMDS_MeshObject.ixx +++ /dev/null @@ -1,81 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshObject.ixx -// Module : SMESH - -#include "SMDS_MeshObject.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshObject::~SMDS_MeshObject() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshObject_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshObject", - sizeof(SMDS_MeshObject), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshObject) Handle(SMDS_MeshObject)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshObject) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshObject))) { - _anOtherObject = Handle(SMDS_MeshObject)((Handle(SMDS_MeshObject)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshObject::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshObject) ; -} -Standard_Boolean SMDS_MeshObject::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshObject) == AType || MMgt_TShared::IsKind(AType)); -} -Handle_SMDS_MeshObject::~Handle_SMDS_MeshObject() {} - diff --git a/src/SMDS/SMDS_MeshObject.jxx b/src/SMDS/SMDS_MeshObject.jxx deleted file mode 100644 index 5ff94f3d6..000000000 --- a/src/SMDS/SMDS_MeshObject.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshObject.jxx -// Module : SMESH - -#ifndef _SMDS_MeshObject_HeaderFile -#include "SMDS_MeshObject.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshOrientedElementMapHasher.cdl b/src/SMDS/SMDS_MeshOrientedElementMapHasher.cdl deleted file mode 100644 index 20a130b54..000000000 --- a/src/SMDS/SMDS_MeshOrientedElementMapHasher.cdl +++ /dev/null @@ -1,51 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshOrientedElementMapHasher.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshOrientedElementMapHasher from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - - -is - HashCode(myclass; ME: MeshElement from SMDS; Upper : Integer) returns Integer; - ---Purpose: Returns a HasCode value for the Key in the - -- range 0..Upper. - -- - ---C++: inline - - IsEqual(myclass; ME1, ME2 : MeshElement from SMDS) returns Boolean; - ---Purpose: Returns True when the two keys are the same. Two - -- same keys must have the same hashcode, the - -- contrary is not necessary. - -- - ---C++: inline - - -end MeshOrientedElementMapHasher; diff --git a/src/SMDS/SMDS_MeshOrientedElementMapHasher.cxx b/src/SMDS/SMDS_MeshOrientedElementMapHasher.cxx deleted file mode 100644 index 010c5bde8..000000000 --- a/src/SMDS/SMDS_MeshOrientedElementMapHasher.cxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshOrientedElementMapHasher.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshOrientedElementMapHasher.ixx" diff --git a/src/SMDS/SMDS_MeshOrientedElementMapHasher.hxx b/src/SMDS/SMDS_MeshOrientedElementMapHasher.hxx deleted file mode 100644 index 02960063e..000000000 --- a/src/SMDS/SMDS_MeshOrientedElementMapHasher.hxx +++ /dev/null @@ -1,109 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshOrientedElementMapHasher.hxx -// Module : SMESH - -#ifndef _SMDS_MeshOrientedElementMapHasher_HeaderFile -#define _SMDS_MeshOrientedElementMapHasher_HeaderFile - -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class SMDS_MeshElement; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshOrientedElementMapHasher { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline static Standard_Integer HashCode(const Handle(SMDS_MeshElement)& ME,const Standard_Integer Upper) ; -Standard_EXPORT inline static Standard_Boolean IsEqual(const Handle(SMDS_MeshElement)& ME1,const Handle(SMDS_MeshElement)& ME2) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - -#include "SMDS_MeshOrientedElementMapHasher.lxx" - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshOrientedElementMapHasher.ixx b/src/SMDS/SMDS_MeshOrientedElementMapHasher.ixx deleted file mode 100644 index 8099c713c..000000000 --- a/src/SMDS/SMDS_MeshOrientedElementMapHasher.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshOrientedElementMapHasher.ixx -// Module : SMESH - -#include "SMDS_MeshOrientedElementMapHasher.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshOrientedElementMapHasher.jxx b/src/SMDS/SMDS_MeshOrientedElementMapHasher.jxx deleted file mode 100644 index 91efd0a62..000000000 --- a/src/SMDS/SMDS_MeshOrientedElementMapHasher.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshOrientedElementMapHasher.jxx -// Module : SMESH - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshOrientedElementMapHasher_HeaderFile -#include "SMDS_MeshOrientedElementMapHasher.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshOrientedElementMapHasher.lxx b/src/SMDS/SMDS_MeshOrientedElementMapHasher.lxx deleted file mode 100644 index 3d25ea1e2..000000000 --- a/src/SMDS/SMDS_MeshOrientedElementMapHasher.lxx +++ /dev/null @@ -1,48 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshOrientedElementMapHasher.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -#include "SMDS_MeshElement.hxx" - -//======================================================================= -//function : HashCode -//purpose : -//======================================================================= -inline Standard_Integer SMDS_MeshOrientedElementMapHasher::HashCode - (const Handle(SMDS_MeshElement)& ME, const Standard_Integer Upper) -{ - return ME->HashCode(Upper); -} - -//======================================================================= -//function : IsEqual -//purpose : -//======================================================================= -inline Standard_Boolean SMDS_MeshOrientedElementMapHasher::IsEqual - (const Handle(SMDS_MeshElement)& ME1, const Handle(SMDS_MeshElement)& ME2) -{ - return ME1->IsEqual(ME2); -} diff --git a/src/SMDS/SMDS_MeshPrism.cdl b/src/SMDS/SMDS_MeshPrism.cdl deleted file mode 100644 index a598af1f4..000000000 --- a/src/SMDS/SMDS_MeshPrism.cdl +++ /dev/null @@ -1,87 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshPrism.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshPrism from SMDS inherits MeshVolume from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - - -raises - ConstructionError from Standard - -is - - Create (ID,idnode1,idnode2,idnode3,idnode4,idnode5,idnode6: Integer) - returns mutable MeshPrism; - ---Purpose: constructor for a prism - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1 : out Integer; idnode2: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith edge (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - GetFaceDefinedByNodes(me; rank: Integer; idnode : Address; nb: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith face (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - ComputeKey(me: mutable); - ---Purpose: compute the ID of the volume based on the id's of its - -- bounding nodes - ---C++: inline - - SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4,idnode5,idnode6: Integer) is private; - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - NbEdges(me) returns Integer - is redefined static; - ---C++: inline - - NbFaces(me) returns Integer - is redefined static; - ---C++: inline - - NodesOfFace(myclass; rankface,ranknode: Integer) - returns Integer; - ---Purpose: returns the rank node in mynodes. Useful to extract faces from volume - -- - NodesOfEdge(me; rankedge: Integer; ranknode: Integer) returns Integer; - - -fields - - myNodes : Integer [6]; - -end MeshPrism; diff --git a/src/SMDS/SMDS_MeshPrism.ixx b/src/SMDS/SMDS_MeshPrism.ixx deleted file mode 100644 index 67dd04427..000000000 --- a/src/SMDS/SMDS_MeshPrism.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshPrism.ixx -// Module : SMESH - -#include "SMDS_MeshPrism.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshPrism::~SMDS_MeshPrism() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshPrism_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshVolume); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshVolume); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType3 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient); - if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshPrism", - sizeof(SMDS_MeshPrism), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshPrism) Handle(SMDS_MeshPrism)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshPrism) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshPrism))) { - _anOtherObject = Handle(SMDS_MeshPrism)((Handle(SMDS_MeshPrism)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshPrism::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshPrism) ; -} -Standard_Boolean SMDS_MeshPrism::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshPrism) == AType || SMDS_MeshVolume::IsKind(AType)); -} -Handle_SMDS_MeshPrism::~Handle_SMDS_MeshPrism() {} - diff --git a/src/SMDS/SMDS_MeshPrism.jxx b/src/SMDS/SMDS_MeshPrism.jxx deleted file mode 100644 index b0e129d5d..000000000 --- a/src/SMDS/SMDS_MeshPrism.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshPrism.jxx -// Module : SMESH - -#ifndef _Standard_ConstructionError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshPrism_HeaderFile -#include "SMDS_MeshPrism.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshPrism.lxx b/src/SMDS/SMDS_MeshPrism.lxx deleted file mode 100644 index 4a1fdfe31..000000000 --- a/src/SMDS/SMDS_MeshPrism.lxx +++ /dev/null @@ -1,76 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshPrism.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Address SMDS_MeshPrism::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshPrism::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - -//======================================================================= -//function : ComputeKey -//purpose : compute the Key of the volume based on the ids of its bounding nodes -// -//======================================================================= - -inline void SMDS_MeshPrism::ComputeKey() -{ - // myKey = (myNodes[0]<<5) + (myNodes[1]<<4) + (myNodes[2]<<3) + (myNodes[3]<<2) - // +(myNodes[4]<<1) + myNodes[5]; - myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3] + myNodes[4] + myNodes[5]; -} - -//======================================================================= -//function : NbEdges -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshPrism::NbEdges() const -{ - return 9; -} - -//======================================================================= -//function : NbFaces -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshPrism::NbFaces() const -{ - return 5; -} - diff --git a/src/SMDS/SMDS_MeshPyramid.cdl b/src/SMDS/SMDS_MeshPyramid.cdl deleted file mode 100644 index e35d42879..000000000 --- a/src/SMDS/SMDS_MeshPyramid.cdl +++ /dev/null @@ -1,88 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshPyramid.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshPyramid from SMDS inherits MeshVolume from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - -raises - ConstructionError from Standard - -is - - Create (ID,idnode1,idnode2,idnode3,idnode4,idnode5: Integer) returns mutable MeshPyramid; - ---Purpose: constructor for a pyramid - - - GetFaceDefinedByNodes(me; rank: Integer; idnode : Address; nb: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith face (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1 : out Integer; idnode2: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith edge (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - ComputeKey(me: mutable); - ---Purpose: compute the ID of the volume based on the id's of its - -- bounding nodes - ---C++: inline - - - SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4,idnode5: Integer) is private; - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - NbEdges(me) returns Integer - is redefined static; - ---C++: inline - - NbFaces(me) returns Integer - is redefined static; - ---C++: inline - - NodesOfFace(myclass; rankface,ranknode: Integer) - returns Integer; - ---Purpose: returns the rank node in mynodes. Useful to extract faces from volume - -- - - NodesOfEdge(me; rankedge: Integer; ranknode: Integer) returns Integer; - - -fields - - myNodes : Integer [5]; - -end MeshPyramid; diff --git a/src/SMDS/SMDS_MeshPyramid.ixx b/src/SMDS/SMDS_MeshPyramid.ixx deleted file mode 100644 index 49106db7c..000000000 --- a/src/SMDS/SMDS_MeshPyramid.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshPyramid.ixx -// Module : SMESH - -#include "SMDS_MeshPyramid.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshPyramid::~SMDS_MeshPyramid() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshPyramid_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshVolume); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshVolume); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType3 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient); - if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshPyramid", - sizeof(SMDS_MeshPyramid), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshPyramid) Handle(SMDS_MeshPyramid)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshPyramid) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshPyramid))) { - _anOtherObject = Handle(SMDS_MeshPyramid)((Handle(SMDS_MeshPyramid)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshPyramid::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshPyramid) ; -} -Standard_Boolean SMDS_MeshPyramid::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshPyramid) == AType || SMDS_MeshVolume::IsKind(AType)); -} -Handle_SMDS_MeshPyramid::~Handle_SMDS_MeshPyramid() {} - diff --git a/src/SMDS/SMDS_MeshPyramid.jxx b/src/SMDS/SMDS_MeshPyramid.jxx deleted file mode 100644 index 69479eefb..000000000 --- a/src/SMDS/SMDS_MeshPyramid.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshPyramid.jxx -// Module : SMESH - -#ifndef _Standard_ConstructionError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshPyramid_HeaderFile -#include "SMDS_MeshPyramid.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshPyramid.lxx b/src/SMDS/SMDS_MeshPyramid.lxx deleted file mode 100644 index d2cb10577..000000000 --- a/src/SMDS/SMDS_MeshPyramid.lxx +++ /dev/null @@ -1,75 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshPyramid.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Address SMDS_MeshPyramid::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshPyramid::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - -//======================================================================= -//function : ComputeKey -//purpose : compute the Key of the volume based on the ids of its bounding nodes -// -//======================================================================= - -inline void SMDS_MeshPyramid::ComputeKey() -{ - // myKey = (myNodes[0]<<4) + (myNodes[1]<<3) + (myNodes[2]<<2) + (myNodes[3]<<1) + myNodes[4]; - myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3] + myNodes[4]; -} - -//======================================================================= -//function : NbEdges -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshPyramid::NbEdges() const -{ - return 8; -} - -//======================================================================= -//function : NbFaces -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshPyramid::NbFaces() const -{ - return 5; -} - diff --git a/src/SMDS/SMDS_MeshQuadrangle.cdl b/src/SMDS/SMDS_MeshQuadrangle.cdl deleted file mode 100644 index 67e4cee7d..000000000 --- a/src/SMDS/SMDS_MeshQuadrangle.cdl +++ /dev/null @@ -1,63 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshQuadrangle.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshQuadrangle from SMDS inherits MeshFace from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - -is - - Create (ID,idnode1,idnode2,idnode3,idnode4: Integer) returns mutable MeshQuadrangle; - ---Purpose: constructor for a quandrangle - - ComputeKey(me: mutable) is redefined static; - ---Purpose: compute the ID of the face based on the id's of its - -- bounding nodes - ---C++: inline - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1, idnode2 : out Integer) is redefined static; - ---Purpose: returns the idnodes of the ith edge (rank) of the face - -- rank must be comprised between 1 and myNbConnections included. - ---C++: inline - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4: Integer) is private; - - -fields - - myNodes : Integer [4]; - -end MeshQuadrangle; diff --git a/src/SMDS/SMDS_MeshQuadrangle.ixx b/src/SMDS/SMDS_MeshQuadrangle.ixx deleted file mode 100644 index 2ebfc41bf..000000000 --- a/src/SMDS/SMDS_MeshQuadrangle.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshQuadrangle.ixx -// Module : SMESH - -#include "SMDS_MeshQuadrangle.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshQuadrangle::~SMDS_MeshQuadrangle() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshQuadrangle_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshFace); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshFace); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType3 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient); - if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshQuadrangle", - sizeof(SMDS_MeshQuadrangle), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshQuadrangle) Handle(SMDS_MeshQuadrangle)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshQuadrangle) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshQuadrangle))) { - _anOtherObject = Handle(SMDS_MeshQuadrangle)((Handle(SMDS_MeshQuadrangle)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshQuadrangle::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshQuadrangle) ; -} -Standard_Boolean SMDS_MeshQuadrangle::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshQuadrangle) == AType || SMDS_MeshFace::IsKind(AType)); -} -Handle_SMDS_MeshQuadrangle::~Handle_SMDS_MeshQuadrangle() {} - diff --git a/src/SMDS/SMDS_MeshQuadrangle.jxx b/src/SMDS/SMDS_MeshQuadrangle.jxx deleted file mode 100644 index a4dc4d60b..000000000 --- a/src/SMDS/SMDS_MeshQuadrangle.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshQuadrangle.jxx -// Module : SMESH - -#ifndef _SMDS_MeshQuadrangle_HeaderFile -#include "SMDS_MeshQuadrangle.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshQuadrangle.lxx b/src/SMDS/SMDS_MeshQuadrangle.lxx deleted file mode 100644 index 8f546b53e..000000000 --- a/src/SMDS/SMDS_MeshQuadrangle.lxx +++ /dev/null @@ -1,68 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshQuadrangle.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Address SMDS_MeshQuadrangle::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshQuadrangle::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - - -//======================================================================= -//function : ComputeKey -//purpose : compute the Key of the face based on the ids of its bounding nodes -// -//======================================================================= - -inline void SMDS_MeshQuadrangle::ComputeKey() -{ - // myKey = (myNodes[0] << 3) + (myNodes[1] << 2) + (myNodes[2] << 1) + myNodes[3]; - myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3]; -} - -//======================================================================= -//function : GetEdgeDefinedByNodes -//purpose : -//======================================================================= -inline void SMDS_MeshQuadrangle::GetEdgeDefinedByNodes(const Standard_Integer rank, - Standard_Integer& idnode1, - Standard_Integer& idnode2) const -{ - idnode1 = myNodes[rank-1]; - idnode2 = myNodes[rank % myNbNodes]; -} - diff --git a/src/SMDS/SMDS_MeshTetrahedron.cdl b/src/SMDS/SMDS_MeshTetrahedron.cdl deleted file mode 100644 index cbf7f0bfd..000000000 --- a/src/SMDS/SMDS_MeshTetrahedron.cdl +++ /dev/null @@ -1,87 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshTetrahedron.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshTetrahedron from SMDS inherits MeshVolume from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - -raises - ConstructionError from Standard - -is - - Create (ID, idnode1,idnode2,idnode3,idnode4: Integer) returns mutable MeshTetrahedron; - ---Purpose: constructor for a tetrahedra - - GetFaceDefinedByNodes(me; rank: Integer; idnode : Address; nb: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith face (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1 : out Integer; idnode2: out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith edge (rank) of the volume - -- rank must be comprised between 1 and myNbConnections included. - - - ComputeKey(me: mutable) is redefined static; - ---Purpose: compute the ID of the volume based on the id's of its - -- bounding nodes - ---C++: inline - - SetConnections(me: mutable; idnode1,idnode2,idnode3,idnode4: Integer) is private; - - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - NbEdges(me) returns Integer - is redefined static; - ---C++: inline - - NbFaces(me) returns Integer - is redefined static; - ---C++: inline - - NodesOfFace(myclass; rankface,ranknode: Integer) - returns Integer; - ---Purpose: returns the rank node in mynodes. Useful to extract faces from volume - -- - - NodesOfEdge(me; rankedge: Integer; ranknode: Integer) returns Integer; - -fields - - myNodes : Integer [4]; - -end MeshTetrahedron; diff --git a/src/SMDS/SMDS_MeshTetrahedron.ixx b/src/SMDS/SMDS_MeshTetrahedron.ixx deleted file mode 100644 index 733f4a93b..000000000 --- a/src/SMDS/SMDS_MeshTetrahedron.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshTetrahedron.ixx -// Module : SMESH - -#include "SMDS_MeshTetrahedron.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshTetrahedron::~SMDS_MeshTetrahedron() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshTetrahedron_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshVolume); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshVolume); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType3 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient); - if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshTetrahedron", - sizeof(SMDS_MeshTetrahedron), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshTetrahedron) Handle(SMDS_MeshTetrahedron)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshTetrahedron) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshTetrahedron))) { - _anOtherObject = Handle(SMDS_MeshTetrahedron)((Handle(SMDS_MeshTetrahedron)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshTetrahedron::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshTetrahedron) ; -} -Standard_Boolean SMDS_MeshTetrahedron::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshTetrahedron) == AType || SMDS_MeshVolume::IsKind(AType)); -} -Handle_SMDS_MeshTetrahedron::~Handle_SMDS_MeshTetrahedron() {} - diff --git a/src/SMDS/SMDS_MeshTetrahedron.jxx b/src/SMDS/SMDS_MeshTetrahedron.jxx deleted file mode 100644 index 3a0025929..000000000 --- a/src/SMDS/SMDS_MeshTetrahedron.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshTetrahedron.jxx -// Module : SMESH - -#ifndef _Standard_ConstructionError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshTetrahedron_HeaderFile -#include "SMDS_MeshTetrahedron.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshTetrahedron.lxx b/src/SMDS/SMDS_MeshTetrahedron.lxx deleted file mode 100644 index e41d4646b..000000000 --- a/src/SMDS/SMDS_MeshTetrahedron.lxx +++ /dev/null @@ -1,76 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshTetrahedron.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Address SMDS_MeshTetrahedron::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshTetrahedron::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - -//======================================================================= -//function : ComputeKey -//purpose : compute the Key of the volume based on the ids of its bounding nodes -// -//======================================================================= - -inline void SMDS_MeshTetrahedron::ComputeKey() -{ - // myKey = (myNodes[0]<<3) + (myNodes[1]<<2) + (myNodes[2]<<1) + myNodes[3]; - myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3]; -} - - -//======================================================================= -//function : NbEdges -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshTetrahedron::NbEdges() const -{ - return 6; -} - -//======================================================================= -//function : NbFaces -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_MeshTetrahedron::NbFaces() const -{ - return 4; -} - diff --git a/src/SMDS/SMDS_MeshTriangle.cdl b/src/SMDS/SMDS_MeshTriangle.cdl deleted file mode 100644 index 2465ff49b..000000000 --- a/src/SMDS/SMDS_MeshTriangle.cdl +++ /dev/null @@ -1,64 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshTriangle.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshTriangle from SMDS inherits MeshFace from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - -is - - Create (ID, idnode1,idnode2,idnode3: Integer) returns mutable MeshTriangle; - ---Purpose: constructor for a triangle - - ComputeKey(me: mutable) is redefined static; - ---Purpose: compute the ID of the face based on the id's of its - -- bounding nodes - ---C++: inline - - GetEdgeDefinedByNodes(me; rank: Integer; idnode1, idnode2 : out Integer) - is redefined static; - ---Purpose: returns the idnodes of the ith edge (rank) of the face - -- rank must be comprised between 1 and myNbConnections included. - ---C++: inline - - GetConnections(me) returns Address is redefined static; - ---C++: inline - - GetConnection(me; rank: Integer) returns Integer is redefined static; - ---C++: inline - - SetConnections(me: mutable; idnode1,idnode2,idnode3: Integer) is private; - - -fields - - myNodes : Integer [3]; - -end MeshTriangle; diff --git a/src/SMDS/SMDS_MeshTriangle.ixx b/src/SMDS/SMDS_MeshTriangle.ixx deleted file mode 100644 index 894ded556..000000000 --- a/src/SMDS/SMDS_MeshTriangle.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshTriangle.ixx -// Module : SMESH - -#include "SMDS_MeshTriangle.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshTriangle::~SMDS_MeshTriangle() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshTriangle_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshFace); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshFace); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType3 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient); - if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshTriangle", - sizeof(SMDS_MeshTriangle), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshTriangle) Handle(SMDS_MeshTriangle)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshTriangle) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshTriangle))) { - _anOtherObject = Handle(SMDS_MeshTriangle)((Handle(SMDS_MeshTriangle)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshTriangle::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshTriangle) ; -} -Standard_Boolean SMDS_MeshTriangle::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshTriangle) == AType || SMDS_MeshFace::IsKind(AType)); -} -Handle_SMDS_MeshTriangle::~Handle_SMDS_MeshTriangle() {} - diff --git a/src/SMDS/SMDS_MeshTriangle.jxx b/src/SMDS/SMDS_MeshTriangle.jxx deleted file mode 100644 index c42ccc64a..000000000 --- a/src/SMDS/SMDS_MeshTriangle.jxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshTriangle.jxx -// Module : SMESH - -#ifndef _SMDS_MeshTriangle_HeaderFile -#include "SMDS_MeshTriangle.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshTriangle.lxx b/src/SMDS/SMDS_MeshTriangle.lxx deleted file mode 100644 index 062e667b8..000000000 --- a/src/SMDS/SMDS_MeshTriangle.lxx +++ /dev/null @@ -1,69 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshTriangle.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Address SMDS_MeshTriangle::GetConnections() const -{ - return (Standard_Address)&myNodes; -} - -//======================================================================= -//function : GetConnection -//purpose : -// -//======================================================================= - -inline Standard_Integer SMDS_MeshTriangle::GetConnection(const Standard_Integer rank) const -{ - return myNodes[rank-1]; -} - -//======================================================================= -//function : ComputeKey -//purpose : compute the Key of the face based on the ids of its bounding nodes -// -//======================================================================= - -inline void SMDS_MeshTriangle::ComputeKey() -{ - // myKey = (myNodes[0] << 2) + (myNodes[1] << 1) + (myNodes[2]); - myKey = myNodes[0] + myNodes[1] + myNodes[2]; -} - - -//======================================================================= -//function : GetEdgeDefinedByNodes -//purpose : -//======================================================================= -inline void SMDS_MeshTriangle::GetEdgeDefinedByNodes(const Standard_Integer rank, - Standard_Integer& idnode1, - Standard_Integer& idnode2) const -{ - idnode1 = myNodes[rank-1]; - idnode2 = myNodes[rank % myNbNodes]; -} - - diff --git a/src/SMDS/SMDS_MeshVolume.cdl b/src/SMDS/SMDS_MeshVolume.cdl deleted file mode 100755 index b3946cf90..000000000 --- a/src/SMDS/SMDS_MeshVolume.cdl +++ /dev/null @@ -1,55 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshVolume.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class MeshVolume from SMDS inherits MeshElement from SMDS - - ---Purpose: - -uses - MeshElement from SMDS - -raises - ConstructionError from Standard - -is - - Initialize(ID: Integer; NbConnections : Integer) returns mutable MeshVolume; - - - ComputeKey(me: mutable) is deferred; - ---Purpose: compute the ID of the volume based on the id's of its - -- bounding nodes - - GetKey(me) returns Integer is redefined static; - ---C++: inline - - Print(me; OS: in out OStream) is redefined virtual; - -fields - myKey : Integer is protected; - -end MeshVolume; diff --git a/src/SMDS/SMDS_MeshVolume.ixx b/src/SMDS/SMDS_MeshVolume.ixx deleted file mode 100644 index d188b2444..000000000 --- a/src/SMDS/SMDS_MeshVolume.ixx +++ /dev/null @@ -1,85 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolume.ixx -// Module : SMESH - -#include "SMDS_MeshVolume.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_MeshVolume::~SMDS_MeshVolume() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_MeshVolume_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_MeshElement); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_MeshElement); - static Handle_Standard_Type aType2 = STANDARD_TYPE(SMDS_MeshObject); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SMDS_MeshObject); - static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient); - if ( aType4.IsNull()) aType4 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_MeshVolume", - sizeof(SMDS_MeshVolume), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_MeshVolume) Handle(SMDS_MeshVolume)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_MeshVolume) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_MeshVolume))) { - _anOtherObject = Handle(SMDS_MeshVolume)((Handle(SMDS_MeshVolume)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_MeshVolume::DynamicType() const -{ - return STANDARD_TYPE(SMDS_MeshVolume) ; -} -Standard_Boolean SMDS_MeshVolume::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_MeshVolume) == AType || SMDS_MeshElement::IsKind(AType)); -} -Handle_SMDS_MeshVolume::~Handle_SMDS_MeshVolume() {} - diff --git a/src/SMDS/SMDS_MeshVolume.jxx b/src/SMDS/SMDS_MeshVolume.jxx deleted file mode 100644 index ef8147d04..000000000 --- a/src/SMDS/SMDS_MeshVolume.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolume.jxx -// Module : SMESH - -#ifndef _Standard_ConstructionError_HeaderFile -#include -#endif -#ifndef _SMDS_MeshVolume_HeaderFile -#include "SMDS_MeshVolume.hxx" -#endif diff --git a/src/SMDS/SMDS_MeshVolume.lxx b/src/SMDS/SMDS_MeshVolume.lxx deleted file mode 100644 index 80c5fe7a0..000000000 --- a/src/SMDS/SMDS_MeshVolume.lxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolume.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline Standard_Integer SMDS_MeshVolume::GetKey() const -{ - return myKey; -} - diff --git a/src/SMDS/SMDS_MeshVolumesIterator.cdl b/src/SMDS/SMDS_MeshVolumesIterator.cdl deleted file mode 100644 index 597af8faf..000000000 --- a/src/SMDS/SMDS_MeshVolumesIterator.cdl +++ /dev/null @@ -1,54 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_MeshVolumesIterator.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class MeshVolumesIterator from SMDS inherits MeshElementsIterator from SMDS - - ---Purpose: The Iterator objet to iterate on all volumes of a mesh - -- - -uses - Mesh from SMDS, - MeshElement from SMDS - -raises - NoMoreObject, - NoSuchObject - -is - - Create returns MeshVolumesIterator from SMDS; - ---Purpose: Creates an empty Iterator. - - Create(M : Mesh from SMDS) returns MeshVolumesIterator from SMDS; - ---Purpose: Creates an Iterator on faces of mesh . - - Initialize(me : in out; M : Mesh from SMDS) - ---Purpose: Reset the Iterator on the faces of mesh . - is redefined static; - - -end MeshVolumesIterator; diff --git a/src/SMDS/SMDS_MeshVolumesIterator.cxx b/src/SMDS/SMDS_MeshVolumesIterator.cxx deleted file mode 100644 index 5589122aa..000000000 --- a/src/SMDS/SMDS_MeshVolumesIterator.cxx +++ /dev/null @@ -1,63 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolumesIterator.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_MeshVolumesIterator.ixx" - -//======================================================================= -//function : SMDS_MeshVolumesIterator -//purpose : -//======================================================================= - -SMDS_MeshVolumesIterator::SMDS_MeshVolumesIterator() -{ -} - -//======================================================================= -//function : SMDS_MeshVolumesIterator -//purpose : -//======================================================================= - -SMDS_MeshVolumesIterator::SMDS_MeshVolumesIterator(const Handle(SMDS_Mesh)& M) -{ - Initialize(M); -} - -//======================================================================= -//function : Initialize -//purpose : -//======================================================================= - -void SMDS_MeshVolumesIterator::Initialize(const Handle(SMDS_Mesh)& M) -{ - - myMapIterator.Initialize(M->myVolumes); - if (More()) { - myCurrentMeshElement = myMapIterator.Key(); - } -} - diff --git a/src/SMDS/SMDS_MeshVolumesIterator.hxx b/src/SMDS/SMDS_MeshVolumesIterator.hxx deleted file mode 100644 index 99d4b83a5..000000000 --- a/src/SMDS/SMDS_MeshVolumesIterator.hxx +++ /dev/null @@ -1,108 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolumesIterator.hxx -// Module : SMESH - -#ifndef _SMDS_MeshVolumesIterator_HeaderFile -#define _SMDS_MeshVolumesIterator_HeaderFile - -#ifndef _SMDS_MeshElementsIterator_HeaderFile -#include "SMDS_MeshElementsIterator.hxx" -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -class Standard_NoMoreObject; -class Standard_NoSuchObject; -class SMDS_Mesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_MeshVolumesIterator : public SMDS_MeshElementsIterator { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMDS_MeshVolumesIterator(); -Standard_EXPORT SMDS_MeshVolumesIterator(const Handle(SMDS_Mesh)& M); -Standard_EXPORT void Initialize(const Handle(SMDS_Mesh)& M) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_MeshVolumesIterator.ixx b/src/SMDS/SMDS_MeshVolumesIterator.ixx deleted file mode 100644 index 79cc049e8..000000000 --- a/src/SMDS/SMDS_MeshVolumesIterator.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolumesIterator.ixx -// Module : SMESH - -#include "SMDS_MeshVolumesIterator.jxx" - - - - diff --git a/src/SMDS/SMDS_MeshVolumesIterator.jxx b/src/SMDS/SMDS_MeshVolumesIterator.jxx deleted file mode 100644 index 1a9aae338..000000000 --- a/src/SMDS/SMDS_MeshVolumesIterator.jxx +++ /dev/null @@ -1,38 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_MeshVolumesIterator.jxx -// Module : SMESH - -#ifndef _Standard_NoMoreObject_HeaderFile -#include -#endif -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_MeshVolumesIterator_HeaderFile -#include "SMDS_MeshVolumesIterator.hxx" -#endif diff --git a/src/SMDS/SMDS_PntHasher.cdl b/src/SMDS/SMDS_PntHasher.cdl deleted file mode 100644 index 659d3a1bc..000000000 --- a/src/SMDS/SMDS_PntHasher.cdl +++ /dev/null @@ -1,46 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : IntPoly_PntHasher.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class PntHasher from SMDS - -uses Pnt from gp - -is HashCode(myclass; Point : Pnt from gp; - Upper : Integer) - returns Integer; - ---Purpose: Returns a HasCode value for the Key in the - -- range 0..Upper. - ---C++: inline - - IsEqual(myclass; Point1,Point2 : Pnt from gp) - returns Boolean; - ---Purpose: Returns True when the two keys are the same. Two - -- same keys must have the same hashcode, the - -- contrary is not necessary. - ---C++: inline - -end PntHasher; diff --git a/src/SMDS/SMDS_PntHasher.cxx b/src/SMDS/SMDS_PntHasher.cxx deleted file mode 100644 index a25259ab1..000000000 --- a/src/SMDS/SMDS_PntHasher.cxx +++ /dev/null @@ -1,29 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_PntHasher.cxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -using namespace std; -#include "SMDS_PntHasher.ixx" diff --git a/src/SMDS/SMDS_PntHasher.hxx b/src/SMDS/SMDS_PntHasher.hxx deleted file mode 100644 index ad6e12402..000000000 --- a/src/SMDS/SMDS_PntHasher.hxx +++ /dev/null @@ -1,106 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_PntHasher.hxx -// Module : SMESH - -#ifndef _SMDS_PntHasher_HeaderFile -#define _SMDS_PntHasher_HeaderFile - -#ifndef _Standard_Integer_HeaderFile -#include -#endif -#ifndef _Standard_Boolean_HeaderFile -#include -#endif -class gp_Pnt; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_PntHasher { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline static Standard_Integer HashCode(const gp_Pnt& Point,const Standard_Integer Upper) ; -Standard_EXPORT inline static Standard_Boolean IsEqual(const gp_Pnt& Point1,const gp_Pnt& Point2) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - -}; - - -#include "SMDS_PntHasher.lxx" - - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_PntHasher.ixx b/src/SMDS/SMDS_PntHasher.ixx deleted file mode 100644 index 44bcffd5c..000000000 --- a/src/SMDS/SMDS_PntHasher.ixx +++ /dev/null @@ -1,31 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_PntHasher.ixx -// Module : SMESH - -#include "SMDS_PntHasher.jxx" - - - - diff --git a/src/SMDS/SMDS_PntHasher.jxx b/src/SMDS/SMDS_PntHasher.jxx deleted file mode 100644 index dedb07fcc..000000000 --- a/src/SMDS/SMDS_PntHasher.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_PntHasher.jxx -// Module : SMESH - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_PntHasher_HeaderFile -#include "SMDS_PntHasher.hxx" -#endif diff --git a/src/SMDS/SMDS_PntHasher.lxx b/src/SMDS/SMDS_PntHasher.lxx deleted file mode 100644 index aae17e83d..000000000 --- a/src/SMDS/SMDS_PntHasher.lxx +++ /dev/null @@ -1,63 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_PntHasher.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -#include - -static Standard_Real tab1[3]; -static Standard_Real tab2[3]; - -//======================================================================= -//function : HashCode -//purpose : -//======================================================================= -inline Standard_Integer SMDS_PntHasher::HashCode - (const gp_Pnt& point, const Standard_Integer Upper) -{ - union - { - Standard_Real R[3]; - Standard_Integer I[6]; - } U; - - point.Coord(U.R[0],U.R[1],U.R[2]); - - return ::HashCode(U.I[0]/23+U.I[1]/19+U.I[2]/17+U.I[3]/13+U.I[4]/11+U.I[5]/7,Upper); - // return ::HashCode((U.I[0]>>4)+(U.I[1]>>3)+(U.I[2]>>2)+(U.I[3]>>1)+(U.I[4]>>4)+(U.I[5]>>3),Upper); - -} - -//======================================================================= -//function : IsEqual -//purpose : -//======================================================================= -inline Standard_Boolean SMDS_PntHasher::IsEqual - (const gp_Pnt& point1, const gp_Pnt& point2) -{ - point1.Coord(tab1[0],tab1[1],tab1[2]); - point2.Coord(tab2[0],tab2[1],tab2[2]); - return (memcmp(tab1,tab2,sizeof(tab1)) == 0); -} diff --git a/src/SMDS/SMDS_Position.cdl b/src/SMDS/SMDS_Position.cdl deleted file mode 100644 index 500be9302..000000000 --- a/src/SMDS/SMDS_Position.cdl +++ /dev/null @@ -1,68 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_Position.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -deferred class Position from SMDS inherits TShared from MMgt - - ---Purpose: abstract class to define the different positions - -- of a node related to the underlying geometry (CAD model) - -uses - Pnt from gp, - TypeOfPosition from SMDS - -is - - Initialize(aShapeId: Integer; - aType: TypeOfPosition from SMDS = SMDS_TOP_UNSPEC) - returns mutable Position; - - Coords(me) returns Pnt from gp is deferred; - ---Purpose: returns the resulting 3d point to be set - -- in the MeshNode instance - -- must be redefined by inherited classes - - GetTypeOfPosition(me) returns TypeOfPosition from SMDS; - ---Purpose: returns the type of position - -- - ---C++: inline - - SetShapeId(me: mutable; aShapeId: Integer); - ---Purpose: Sets the ShapeId of the position - -- - ---C++: inline - - GetShapeId(me) returns Integer; - ---Purpose: Returns the ShapeId of the position - -- - ---C++: inline - - -fields - - myShapeId : Integer; - myType : TypeOfPosition from SMDS; -end Position; diff --git a/src/SMDS/SMDS_Position.ixx b/src/SMDS/SMDS_Position.ixx deleted file mode 100644 index 0e0ab9cfd..000000000 --- a/src/SMDS/SMDS_Position.ixx +++ /dev/null @@ -1,81 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_Position.ixx -// Module : SMESH - -#include "SMDS_Position.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_Position::~SMDS_Position() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_Position_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_Position", - sizeof(SMDS_Position), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_Position) Handle(SMDS_Position)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_Position) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_Position))) { - _anOtherObject = Handle(SMDS_Position)((Handle(SMDS_Position)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_Position::DynamicType() const -{ - return STANDARD_TYPE(SMDS_Position) ; -} -Standard_Boolean SMDS_Position::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_Position) == AType || MMgt_TShared::IsKind(AType)); -} -Handle_SMDS_Position::~Handle_SMDS_Position() {} - diff --git a/src/SMDS/SMDS_Position.jxx b/src/SMDS/SMDS_Position.jxx deleted file mode 100644 index 397e23e3c..000000000 --- a/src/SMDS/SMDS_Position.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_Position.jxx -// Module : SMESH - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_Position_HeaderFile -#include "SMDS_Position.hxx" -#endif diff --git a/src/SMDS/SMDS_Position.lxx b/src/SMDS/SMDS_Position.lxx deleted file mode 100644 index 66e191c27..000000000 --- a/src/SMDS/SMDS_Position.lxx +++ /dev/null @@ -1,51 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_Position.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline SMDS_TypeOfPosition SMDS_Position::GetTypeOfPosition() const -{ - return myType; -} - -//======================================================================= -//function : SetShapeId -//purpose : -//======================================================================= - -inline void SMDS_Position::SetShapeId(const Standard_Integer aShapeId) -{ - myShapeId = aShapeId; -} - -//======================================================================= -//function : GetShapeId -//purpose : -//======================================================================= - -inline Standard_Integer SMDS_Position::GetShapeId() const -{ - return myShapeId; -} diff --git a/src/SMDS/SMDS_SequenceNodeOfSequenceOfMesh.hxx b/src/SMDS/SMDS_SequenceNodeOfSequenceOfMesh.hxx deleted file mode 100644 index ab05f2362..000000000 --- a/src/SMDS/SMDS_SequenceNodeOfSequenceOfMesh.hxx +++ /dev/null @@ -1,132 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_SequenceNodeOfSequenceOfMesh.hxx -// Module : SMESH - -#ifndef _SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile -#define _SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile -#include "Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#endif - -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _TCollection_SeqNode_HeaderFile -#include -#endif -#ifndef _TCollection_SeqNodePtr_HeaderFile -#include -#endif -class SMDS_Mesh; -class SMDS_SequenceOfMesh; - - -class SMDS_SequenceNodeOfSequenceOfMesh : public TCollection_SeqNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_SequenceNodeOfSequenceOfMesh(const Handle(SMDS_Mesh)& I,const TCollection_SeqNodePtr& n,const TCollection_SeqNodePtr& p); -Standard_EXPORT inline Handle_SMDS_Mesh& Value() const; -Standard_EXPORT ~SMDS_SequenceNodeOfSequenceOfMesh(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_SequenceNodeOfSequenceOfMesh_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Handle_SMDS_Mesh myValue; - - -}; - -#define SeqItem Handle_SMDS_Mesh -#define SeqItem_hxx "SMDS_Mesh.hxx" -#define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_() -#define TCollection_Sequence SMDS_SequenceOfMesh -#define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx" - -#include - -#undef SeqItem -#undef SeqItem_hxx -#undef TCollection_SequenceNode -#undef TCollection_SequenceNode_hxx -#undef Handle_TCollection_SequenceNode -#undef TCollection_SequenceNode_Type_ -#undef TCollection_Sequence -#undef TCollection_Sequence_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_SequenceNodeOfSequenceOfMesh_0.cxx b/src/SMDS/SMDS_SequenceNodeOfSequenceOfMesh_0.cxx deleted file mode 100644 index 259d3c88e..000000000 --- a/src/SMDS/SMDS_SequenceNodeOfSequenceOfMesh_0.cxx +++ /dev/null @@ -1,98 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_SequenceNodeOfSequenceOfMesh_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_SequenceNodeOfSequenceOfMesh.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_SequenceOfMesh_HeaderFile -#include "SMDS_SequenceOfMesh.hxx" -#endif -SMDS_SequenceNodeOfSequenceOfMesh::~SMDS_SequenceNodeOfSequenceOfMesh() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_SequenceNodeOfSequenceOfMesh_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_SeqNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_SeqNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_SequenceNodeOfSequenceOfMesh", - sizeof(SMDS_SequenceNodeOfSequenceOfMesh), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_SequenceNodeOfSequenceOfMesh) Handle(SMDS_SequenceNodeOfSequenceOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_SequenceNodeOfSequenceOfMesh) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh))) { - _anOtherObject = Handle(SMDS_SequenceNodeOfSequenceOfMesh)((Handle(SMDS_SequenceNodeOfSequenceOfMesh)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_SequenceNodeOfSequenceOfMesh::DynamicType() const -{ - return STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh) ; -} -Standard_Boolean SMDS_SequenceNodeOfSequenceOfMesh::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh) == AType || TCollection_SeqNode::IsKind(AType)); -} -Handle_SMDS_SequenceNodeOfSequenceOfMesh::~Handle_SMDS_SequenceNodeOfSequenceOfMesh() {} -#define SeqItem Handle_SMDS_Mesh -#define SeqItem_hxx "SMDS_Mesh.hxx" -#define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_() -#define TCollection_Sequence SMDS_SequenceOfMesh -#define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx" -#include - diff --git a/src/SMDS/SMDS_SequenceOfMesh.hxx b/src/SMDS/SMDS_SequenceOfMesh.hxx deleted file mode 100644 index 8b62dcccd..000000000 --- a/src/SMDS/SMDS_SequenceOfMesh.hxx +++ /dev/null @@ -1,168 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_SequenceOfMesh.hxx -// Module : SMESH - -#ifndef _SMDS_SequenceOfMesh_HeaderFile -#define _SMDS_SequenceOfMesh_HeaderFile - -#ifndef _TCollection_BaseSequence_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_Mesh_HeaderFile -#include "Handle_SMDS_Mesh.hxx" -#endif -#ifndef _Handle_SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile -#include "Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#endif -#ifndef _Standard_Integer_HeaderFile -#include -#endif -class Standard_NoSuchObject; -class Standard_OutOfRange; -class SMDS_Mesh; -class SMDS_SequenceNodeOfSequenceOfMesh; - - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Standard_Macro_HeaderFile -#include -#endif - -class SMDS_SequenceOfMesh : public TCollection_BaseSequence { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_SequenceOfMesh(); -Standard_EXPORT void Clear() ; -~SMDS_SequenceOfMesh() -{ - Clear(); -} - -Standard_EXPORT const SMDS_SequenceOfMesh& Assign(const SMDS_SequenceOfMesh& Other) ; - const SMDS_SequenceOfMesh& operator =(const SMDS_SequenceOfMesh& Other) -{ - return Assign(Other); -} - -Standard_EXPORT void Append(const Handle(SMDS_Mesh)& T) ; -Standard_EXPORT inline void Append(SMDS_SequenceOfMesh& S) ; -Standard_EXPORT void Prepend(const Handle(SMDS_Mesh)& T) ; -Standard_EXPORT inline void Prepend(SMDS_SequenceOfMesh& S) ; -Standard_EXPORT inline void InsertBefore(const Standard_Integer Index,const Handle(SMDS_Mesh)& T) ; -Standard_EXPORT inline void InsertBefore(const Standard_Integer Index,SMDS_SequenceOfMesh& S) ; -Standard_EXPORT void InsertAfter(const Standard_Integer Index,const Handle(SMDS_Mesh)& T) ; -Standard_EXPORT inline void InsertAfter(const Standard_Integer Index,SMDS_SequenceOfMesh& S) ; -Standard_EXPORT const Handle_SMDS_Mesh& First() const; -Standard_EXPORT const Handle_SMDS_Mesh& Last() const; -Standard_EXPORT inline void Split(const Standard_Integer Index,SMDS_SequenceOfMesh& Sub) ; -Standard_EXPORT const Handle_SMDS_Mesh& Value(const Standard_Integer Index) const; - const Handle_SMDS_Mesh& operator()(const Standard_Integer Index) const -{ - return Value(Index); -} - -Standard_EXPORT void SetValue(const Standard_Integer Index,const Handle(SMDS_Mesh)& I) ; -Standard_EXPORT Handle_SMDS_Mesh& ChangeValue(const Standard_Integer Index) ; - Handle_SMDS_Mesh& operator()(const Standard_Integer Index) -{ - return ChangeValue(Index); -} - -Standard_EXPORT void Remove(const Standard_Integer Index) ; -Standard_EXPORT void Remove(const Standard_Integer FromIndex,const Standard_Integer ToIndex) ; - - - - - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // -Standard_EXPORT SMDS_SequenceOfMesh(const SMDS_SequenceOfMesh& Other); - - - // Fields PRIVATE - // - - -}; - -#define SeqItem Handle_SMDS_Mesh -#define SeqItem_hxx "SMDS_Mesh.hxx" -#define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_() -#define TCollection_Sequence SMDS_SequenceOfMesh -#define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx" - -#include - -#undef SeqItem -#undef SeqItem_hxx -#undef TCollection_SequenceNode -#undef TCollection_SequenceNode_hxx -#undef Handle_TCollection_SequenceNode -#undef TCollection_SequenceNode_Type_ -#undef TCollection_Sequence -#undef TCollection_Sequence_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_SequenceOfMesh_0.cxx b/src/SMDS/SMDS_SequenceOfMesh_0.cxx deleted file mode 100644 index 924ffb5c3..000000000 --- a/src/SMDS/SMDS_SequenceOfMesh_0.cxx +++ /dev/null @@ -1,52 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org or email : webmaster@opencascade.org -// -// -// -// File : SMDS_SequenceOfMesh_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_SequenceOfMesh.hxx" - -#ifndef _Standard_NoSuchObject_HeaderFile -#include -#endif -#ifndef _Standard_OutOfRange_HeaderFile -#include -#endif -#ifndef _SMDS_Mesh_HeaderFile -#include "SMDS_Mesh.hxx" -#endif -#ifndef _SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile -#include "SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#endif - - -#define SeqItem Handle_SMDS_Mesh -#define SeqItem_hxx "SMDS_Mesh.hxx" -#define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx" -#define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh -#define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_() -#define TCollection_Sequence SMDS_SequenceOfMesh -#define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx" -#include - diff --git a/src/SMDS/SMDS_SpacePosition.cdl b/src/SMDS/SMDS_SpacePosition.cdl deleted file mode 100644 index 644eea6ae..000000000 --- a/src/SMDS/SMDS_SpacePosition.cdl +++ /dev/null @@ -1,58 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_SpacePosition.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class SpacePosition from SMDS inherits Position from SMDS - - ---Purpose: used to characterize a MeshNode with a 3D point - -- in space not related to any underlying geometry (CAD) - -uses - Pnt from gp - -is - - Create returns mutable SpacePosition; - ---Purpose: empty constructor. the coords are not set - - Create(x, y, z : Real) returns mutable SpacePosition; - - Create(aCoords : Pnt from gp) returns mutable SpacePosition; - - Coords(me) returns Pnt from gp is redefined virtual; - ---Purpose: returns the resulting 3d point to be set - -- in the MeshNode instance - - SetCoords(me: mutable; x, y, z : Real); - ---C++: inline - - SetCoords(me: mutable; aCoords : Pnt from gp); - ---C++: inline - -fields - myCoords : Pnt from gp; - -end SpacePosition; diff --git a/src/SMDS/SMDS_SpacePosition.ixx b/src/SMDS/SMDS_SpacePosition.ixx deleted file mode 100644 index e78c4d1f0..000000000 --- a/src/SMDS/SMDS_SpacePosition.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_SpacePosition.ixx -// Module : SMESH - -#include "SMDS_SpacePosition.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_SpacePosition::~SMDS_SpacePosition() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_SpacePosition_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_Position); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_Position); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_SpacePosition", - sizeof(SMDS_SpacePosition), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_SpacePosition) Handle(SMDS_SpacePosition)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_SpacePosition) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_SpacePosition))) { - _anOtherObject = Handle(SMDS_SpacePosition)((Handle(SMDS_SpacePosition)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_SpacePosition::DynamicType() const -{ - return STANDARD_TYPE(SMDS_SpacePosition) ; -} -Standard_Boolean SMDS_SpacePosition::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_SpacePosition) == AType || SMDS_Position::IsKind(AType)); -} -Handle_SMDS_SpacePosition::~Handle_SMDS_SpacePosition() {} - diff --git a/src/SMDS/SMDS_SpacePosition.jxx b/src/SMDS/SMDS_SpacePosition.jxx deleted file mode 100644 index a324ad7a6..000000000 --- a/src/SMDS/SMDS_SpacePosition.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_SpacePosition.jxx -// Module : SMESH - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_SpacePosition_HeaderFile -#include "SMDS_SpacePosition.hxx" -#endif diff --git a/src/SMDS/SMDS_SpacePosition.lxx b/src/SMDS/SMDS_SpacePosition.lxx deleted file mode 100644 index 79b03883d..000000000 --- a/src/SMDS/SMDS_SpacePosition.lxx +++ /dev/null @@ -1,43 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_SpacePosition.lxx -// Author : Jean-Michel BOULCOURT -// Module : SMESH - -inline void SMDS_SpacePosition::SetCoords(const Standard_Real x, - const Standard_Real y, - const Standard_Real z) -{ - myCoords.SetCoord(x,y,z); -} - -//======================================================================= -//function : SetCoords -//purpose : -//======================================================================= - -inline void SMDS_SpacePosition::SetCoords(const gp_Pnt& aCoords) -{ - myCoords = aCoords; -} diff --git a/src/SMDS/SMDS_StdMapNode.gxx b/src/SMDS/SMDS_StdMapNode.gxx deleted file mode 100644 index 0cd96506c..000000000 --- a/src/SMDS/SMDS_StdMapNode.gxx +++ /dev/null @@ -1 +0,0 @@ -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_StdMapNode.gxx has disappeared diff --git a/src/SMDS/SMDS_StdMapNode.lxx b/src/SMDS/SMDS_StdMapNode.lxx deleted file mode 100644 index 9bafc69f7..000000000 --- a/src/SMDS/SMDS_StdMapNode.lxx +++ /dev/null @@ -1,27 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_StdMapNode.lxx -// Module : SMESH - -#error /adv_21/KAS/C40/jmbsmds/inc/SMDS_StdMapNode.lxx has disappeared diff --git a/src/SMDS/SMDS_StdMapNodeOfExtendedMap.hxx b/src/SMDS/SMDS_StdMapNodeOfExtendedMap.hxx deleted file mode 100644 index 71be28731..000000000 --- a/src/SMDS/SMDS_StdMapNodeOfExtendedMap.hxx +++ /dev/null @@ -1,143 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_StdMapNodeOfExtendedMap.hxx -// Module : SMESH - -#ifndef _SMDS_StdMapNodeOfExtendedMap_HeaderFile -#define _SMDS_StdMapNodeOfExtendedMap_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_StdMapNodeOfExtendedMap_HeaderFile -#include "Handle_SMDS_StdMapNodeOfExtendedMap.hxx" -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class SMDS_MeshElement; -class SMDS_MeshElementMapHasher; -class SMDS_ExtendedMap; -class SMDS_MapIteratorOfExtendedMap; - - -class SMDS_StdMapNodeOfExtendedMap : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_StdMapNodeOfExtendedMap(const Handle(SMDS_MeshElement)& K,const TCollection_MapNodePtr& n); -Standard_EXPORT inline Handle_SMDS_MeshElement& Key() const; -Standard_EXPORT ~SMDS_StdMapNodeOfExtendedMap(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_StdMapNodeOfExtendedMap_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Handle_SMDS_MeshElement myKey; - - -}; - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedMap_Type_() -#define TCollection_Map SMDS_ExtendedMap -#define TCollection_Map_hxx - -#include - -#undef TheKey -#undef TheKey_hxx -#undef Hasher -#undef Hasher_hxx -#undef TCollection_StdMapNode -#undef TCollection_StdMapNode_hxx -#undef TCollection_MapIterator -#undef TCollection_MapIterator_hxx -#undef Handle_TCollection_StdMapNode -#undef TCollection_StdMapNode_Type_ -#undef TCollection_Map -#undef TCollection_Map_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_StdMapNodeOfExtendedMap_0.cxx b/src/SMDS/SMDS_StdMapNodeOfExtendedMap_0.cxx deleted file mode 100644 index c9b3b273c..000000000 --- a/src/SMDS/SMDS_StdMapNodeOfExtendedMap_0.cxx +++ /dev/null @@ -1,109 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_StdMapNodeOfExtendedMap_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_StdMapNodeOfExtendedMap.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshElementMapHasher_HeaderFile -#include "SMDS_MeshElementMapHasher.hxx" -#endif -#ifndef _SMDS_ExtendedMap_HeaderFile -#include "SMDS_ExtendedMap.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedMap.hxx" -#endif -SMDS_StdMapNodeOfExtendedMap::~SMDS_StdMapNodeOfExtendedMap() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_StdMapNodeOfExtendedMap_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_StdMapNodeOfExtendedMap", - sizeof(SMDS_StdMapNodeOfExtendedMap), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_StdMapNodeOfExtendedMap) Handle(SMDS_StdMapNodeOfExtendedMap)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_StdMapNodeOfExtendedMap) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_StdMapNodeOfExtendedMap))) { - _anOtherObject = Handle(SMDS_StdMapNodeOfExtendedMap)((Handle(SMDS_StdMapNodeOfExtendedMap)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_StdMapNodeOfExtendedMap::DynamicType() const -{ - return STANDARD_TYPE(SMDS_StdMapNodeOfExtendedMap) ; -} -Standard_Boolean SMDS_StdMapNodeOfExtendedMap::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_StdMapNodeOfExtendedMap) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_StdMapNodeOfExtendedMap::~Handle_SMDS_StdMapNodeOfExtendedMap() {} -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedMap_Type_() -#define TCollection_Map SMDS_ExtendedMap -#define TCollection_Map_hxx -#include - diff --git a/src/SMDS/SMDS_StdMapNodeOfExtendedOrientedMap.hxx b/src/SMDS/SMDS_StdMapNodeOfExtendedOrientedMap.hxx deleted file mode 100644 index d5fd39015..000000000 --- a/src/SMDS/SMDS_StdMapNodeOfExtendedOrientedMap.hxx +++ /dev/null @@ -1,143 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_StdMapNodeOfExtendedOrientedMap.hxx -// Module : SMESH - -#ifndef _SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#define _SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile - -#ifndef _Standard_HeaderFile -#include -#endif -#ifndef _Handle_SMDS_StdMapNodeOfExtendedOrientedMap_HeaderFile -#include "Handle_SMDS_StdMapNodeOfExtendedOrientedMap.hxx" -#endif - -#ifndef _Handle_SMDS_MeshElement_HeaderFile -#include "Handle_SMDS_MeshElement.hxx" -#endif -#ifndef _TCollection_MapNode_HeaderFile -#include -#endif -#ifndef _TCollection_MapNodePtr_HeaderFile -#include -#endif -class SMDS_MeshElement; -class SMDS_MeshOrientedElementMapHasher; -class SMDS_ExtendedOrientedMap; -class SMDS_MapIteratorOfExtendedOrientedMap; - - -class SMDS_StdMapNodeOfExtendedOrientedMap : public TCollection_MapNode { - -public: - - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT inline SMDS_StdMapNodeOfExtendedOrientedMap(const Handle(SMDS_MeshElement)& K,const TCollection_MapNodePtr& n); -Standard_EXPORT inline Handle_SMDS_MeshElement& Key() const; -Standard_EXPORT ~SMDS_StdMapNodeOfExtendedOrientedMap(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMDS_StdMapNodeOfExtendedOrientedMap_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; - -protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // - - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // -Handle_SMDS_MeshElement myKey; - - -}; - -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshOrientedElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedOrientedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedOrientedMap_Type_() -#define TCollection_Map SMDS_ExtendedOrientedMap -#define TCollection_Map_hxx - -#include - -#undef TheKey -#undef TheKey_hxx -#undef Hasher -#undef Hasher_hxx -#undef TCollection_StdMapNode -#undef TCollection_StdMapNode_hxx -#undef TCollection_MapIterator -#undef TCollection_MapIterator_hxx -#undef Handle_TCollection_StdMapNode -#undef TCollection_StdMapNode_Type_ -#undef TCollection_Map -#undef TCollection_Map_hxx - - -// other inline functions and methods (like "C++: function call" methods) -// - - -#endif diff --git a/src/SMDS/SMDS_StdMapNodeOfExtendedOrientedMap_0.cxx b/src/SMDS/SMDS_StdMapNodeOfExtendedOrientedMap_0.cxx deleted file mode 100644 index ffe08bc7f..000000000 --- a/src/SMDS/SMDS_StdMapNodeOfExtendedOrientedMap_0.cxx +++ /dev/null @@ -1,109 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_StdMapNodeOfExtendedOrientedMap_0.cxx -// Module : SMESH - -using namespace std; -#include "SMDS_StdMapNodeOfExtendedOrientedMap.hxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -#ifndef _SMDS_MeshElement_HeaderFile -#include "SMDS_MeshElement.hxx" -#endif -#ifndef _SMDS_MeshOrientedElementMapHasher_HeaderFile -#include "SMDS_MeshOrientedElementMapHasher.hxx" -#endif -#ifndef _SMDS_ExtendedOrientedMap_HeaderFile -#include "SMDS_ExtendedOrientedMap.hxx" -#endif -#ifndef _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile -#include "SMDS_MapIteratorOfExtendedOrientedMap.hxx" -#endif -SMDS_StdMapNodeOfExtendedOrientedMap::~SMDS_StdMapNodeOfExtendedOrientedMap() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_StdMapNodeOfExtendedOrientedMap_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_StdMapNodeOfExtendedOrientedMap", - sizeof(SMDS_StdMapNodeOfExtendedOrientedMap), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_StdMapNodeOfExtendedOrientedMap) Handle(SMDS_StdMapNodeOfExtendedOrientedMap)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_StdMapNodeOfExtendedOrientedMap) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_StdMapNodeOfExtendedOrientedMap))) { - _anOtherObject = Handle(SMDS_StdMapNodeOfExtendedOrientedMap)((Handle(SMDS_StdMapNodeOfExtendedOrientedMap)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_StdMapNodeOfExtendedOrientedMap::DynamicType() const -{ - return STANDARD_TYPE(SMDS_StdMapNodeOfExtendedOrientedMap) ; -} -Standard_Boolean SMDS_StdMapNodeOfExtendedOrientedMap::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_StdMapNodeOfExtendedOrientedMap) == AType || TCollection_MapNode::IsKind(AType)); -} -Handle_SMDS_StdMapNodeOfExtendedOrientedMap::~Handle_SMDS_StdMapNodeOfExtendedOrientedMap() {} -#define TheKey Handle_SMDS_MeshElement -#define TheKey_hxx -#define Hasher SMDS_MeshOrientedElementMapHasher -#define Hasher_hxx -#define TCollection_StdMapNode SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_hxx -#define TCollection_MapIterator SMDS_MapIteratorOfExtendedOrientedMap -#define TCollection_MapIterator_hxx -#define Handle_TCollection_StdMapNode Handle_SMDS_StdMapNodeOfExtendedOrientedMap -#define TCollection_StdMapNode_Type_() SMDS_StdMapNodeOfExtendedOrientedMap_Type_() -#define TCollection_Map SMDS_ExtendedOrientedMap -#define TCollection_Map_hxx -#include - diff --git a/src/SMDS/SMDS_VertexPosition.cdl b/src/SMDS/SMDS_VertexPosition.cdl deleted file mode 100644 index 3c5ac54a6..000000000 --- a/src/SMDS/SMDS_VertexPosition.cdl +++ /dev/null @@ -1,46 +0,0 @@ --- SMESH SMDS : implementaion of Salome mesh data structure --- --- Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, --- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS --- --- This library is free software; you can redistribute it and/or --- modify it under the terms of the GNU Lesser General Public --- License as published by the Free Software Foundation; either --- version 2.1 of the License. --- --- This library is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --- Lesser General Public License for more details. --- --- You should have received a copy of the GNU Lesser General Public --- License along with this library; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- --- See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org --- --- --- --- File : SMDS_VertexPosition.cdl --- Author : Jean-Michel BOULCOURT --- Module : SMESH - -class VertexPosition from SMDS inherits Position from SMDS - - ---Purpose: used to characterize a MeshNode with a CAD vertex - -uses - Pnt from gp - -is - - Create returns mutable VertexPosition; - ---Purpose: empty constructor. the vertex is not set - - Create(aVertexId : Integer) returns mutable VertexPosition; - - Coords(me) returns Pnt from gp is redefined virtual; - ---Purpose: returns the resulting 3d point to be set - -- in the MeshNode instance - -end VertexPosition; diff --git a/src/SMDS/SMDS_VertexPosition.ixx b/src/SMDS/SMDS_VertexPosition.ixx deleted file mode 100644 index 45d35d15e..000000000 --- a/src/SMDS/SMDS_VertexPosition.ixx +++ /dev/null @@ -1,83 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_VertexPosition.ixx -// Module : SMESH - -#include "SMDS_VertexPosition.jxx" - -#ifndef _Standard_TypeMismatch_HeaderFile -#include -#endif - -SMDS_VertexPosition::~SMDS_VertexPosition() {} - - - -Standard_EXPORT Handle_Standard_Type& SMDS_VertexPosition_Type_() -{ - - static Handle_Standard_Type aType1 = STANDARD_TYPE(SMDS_Position); - if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SMDS_Position); - static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared); - if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared); - static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient); - if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient); - - - static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL}; - static Handle_Standard_Type _aType = new Standard_Type("SMDS_VertexPosition", - sizeof(SMDS_VertexPosition), - 1, - (Standard_Address)_Ancestors, - (Standard_Address)NULL); - - return _aType; -} - - -// DownCast method -// allow safe downcasting -// -const Handle(SMDS_VertexPosition) Handle(SMDS_VertexPosition)::DownCast(const Handle(Standard_Transient)& AnObject) -{ - Handle(SMDS_VertexPosition) _anOtherObject; - - if (!AnObject.IsNull()) { - if (AnObject->IsKind(STANDARD_TYPE(SMDS_VertexPosition))) { - _anOtherObject = Handle(SMDS_VertexPosition)((Handle(SMDS_VertexPosition)&)AnObject); - } - } - - return _anOtherObject ; -} -const Handle(Standard_Type)& SMDS_VertexPosition::DynamicType() const -{ - return STANDARD_TYPE(SMDS_VertexPosition) ; -} -Standard_Boolean SMDS_VertexPosition::IsKind(const Handle(Standard_Type)& AType) const -{ - return (STANDARD_TYPE(SMDS_VertexPosition) == AType || SMDS_Position::IsKind(AType)); -} -Handle_SMDS_VertexPosition::~Handle_SMDS_VertexPosition() {} - diff --git a/src/SMDS/SMDS_VertexPosition.jxx b/src/SMDS/SMDS_VertexPosition.jxx deleted file mode 100644 index b868b0617..000000000 --- a/src/SMDS/SMDS_VertexPosition.jxx +++ /dev/null @@ -1,32 +0,0 @@ -// SMESH SMDS : implementaion of Salome mesh data structure -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SMDS_VertexPosition.jxx -// Module : SMESH - -#ifndef _gp_Pnt_HeaderFile -#include -#endif -#ifndef _SMDS_VertexPosition_HeaderFile -#include "SMDS_VertexPosition.hxx" -#endif