// File generated by CPPExt (Transient)
//
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _BRepMesh_DataStructureOfDelaun_HeaderFile
#define _BRepMesh_DataStructureOfDelaun_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_BRepMesh_DataStructureOfDelaun_HeaderFile
#include <Handle_BRepMesh_DataStructureOfDelaun.hxx>
#endif

#ifndef _BRepMesh_IDMapOfNodeOfDataStructureOfDelaun_HeaderFile
#include <BRepMesh_IDMapOfNodeOfDataStructureOfDelaun.hxx>
#endif
#ifndef _TColStd_ListOfInteger_HeaderFile
#include <TColStd_ListOfInteger.hxx>
#endif
#ifndef _BRepMesh_IDMapOfLinkOfDataStructureOfDelaun_HeaderFile
#include <BRepMesh_IDMapOfLinkOfDataStructureOfDelaun.hxx>
#endif
#ifndef _BRepMesh_IMapOfElementOfDataStructureOfDelaun_HeaderFile
#include <BRepMesh_IMapOfElementOfDataStructureOfDelaun.hxx>
#endif
#ifndef _MeshDS_DataMapOfInteger_HeaderFile
#include <MeshDS_DataMapOfInteger.hxx>
#endif
#ifndef _MeshDS_BaseAllocator_HeaderFile
#include <MeshDS_BaseAllocator.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Handle_BRepMesh_IndexedDataMapNodeOfIDMapOfNodeOfDataStructureOfDelaun_HeaderFile
#include <Handle_BRepMesh_IndexedDataMapNodeOfIDMapOfNodeOfDataStructureOfDelaun.hxx>
#endif
#ifndef _Handle_BRepMesh_IndexedDataMapNodeOfIDMapOfLinkOfDataStructureOfDelaun_HeaderFile
#include <Handle_BRepMesh_IndexedDataMapNodeOfIDMapOfLinkOfDataStructureOfDelaun.hxx>
#endif
#ifndef _Handle_BRepMesh_IndexedMapNodeOfIMapOfElementOfDataStructureOfDelaun_HeaderFile
#include <Handle_BRepMesh_IndexedMapNodeOfIMapOfElementOfDataStructureOfDelaun.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _MeshDS_ListOfInteger_HeaderFile
#include <MeshDS_ListOfInteger.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _MeshDS_MapOfInteger_HeaderFile
#include <MeshDS_MapOfInteger.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
class BRepMesh_Vertex;
class BRepMesh_Edge;
class BRepMesh_Triangle;
class BRepMesh_NodeHasherOfDataStructureOfDelaun;
class BRepMesh_LinkHasherOfDataStructureOfDelaun;
class BRepMesh_ElemHasherOfDataStructureOfDelaun;
class BRepMesh_IDMapOfNodeOfDataStructureOfDelaun;
class BRepMesh_IndexedDataMapNodeOfIDMapOfNodeOfDataStructureOfDelaun;
class BRepMesh_IDMapOfLinkOfDataStructureOfDelaun;
class BRepMesh_IndexedDataMapNodeOfIDMapOfLinkOfDataStructureOfDelaun;
class BRepMesh_IMapOfElementOfDataStructureOfDelaun;
class BRepMesh_IndexedMapNodeOfIMapOfElementOfDataStructureOfDelaun;
class BRepMesh_SelectorOfDataStructureOfDelaun;
class TColStd_ListOfInteger;



class BRepMesh_DataStructureOfDelaun : public MMgt_TShared {

public:
 // Methods PUBLIC
 // 


Standard_EXPORT BRepMesh_DataStructureOfDelaun(const MeshDS_BaseAllocator& theAllocator,const Standard_Integer NodeNumber = 100);


Standard_EXPORT   Standard_Integer AddNode(const BRepMesh_Vertex& theNode) ;


Standard_EXPORT  const BRepMesh_Vertex& GetNode(const Standard_Integer Index) ;
 const BRepMesh_Vertex& operator ()(const Standard_Integer Index) 
{
  return GetNode(Index);
}



Standard_EXPORT  const MeshDS_ListOfInteger& GetNodeList(const Standard_Integer Index) ;


Standard_EXPORT   void ForseRemoveNode(const Standard_Integer Index) ;


Standard_EXPORT   void ForseRemoveLink(const Standard_Integer Index) ;


Standard_EXPORT   void ReplaceNodes(const BRepMesh_IDMapOfNodeOfDataStructureOfDelaun& NewNodes) ;


Standard_EXPORT   void RemoveNode(const Standard_Integer Index) ;


Standard_EXPORT   Standard_Boolean MoveNode(const Standard_Integer Index,const BRepMesh_Vertex& newNode) ;


Standard_EXPORT   Standard_Integer NbNodes() const;


Standard_EXPORT   Standard_Integer AddLink(const BRepMesh_Edge& theLink) ;


Standard_EXPORT  const BRepMesh_Edge& GetLink(const Standard_Integer Index) ;


Standard_EXPORT   void RemoveLink(const Standard_Integer Index) ;


Standard_EXPORT   Standard_Boolean SubstituteLink(const Standard_Integer Index,const BRepMesh_Edge& newLink) ;


Standard_EXPORT   Standard_Integer NbLinks() const;


Standard_EXPORT   Standard_Integer AddElement(const BRepMesh_Triangle& theElement) ;


Standard_EXPORT  const BRepMesh_Triangle& GetElement(const Standard_Integer Index) ;


Standard_EXPORT   void RemoveElement(const Standard_Integer Index) ;


Standard_EXPORT   Standard_Boolean SubstituteElement(const Standard_Integer Index,const BRepMesh_Triangle& newElement) ;


Standard_EXPORT   Standard_Integer NbElements() const;


Standard_EXPORT   void NewDomain(const Standard_Integer domain) ;


Standard_EXPORT   void ClearDomain(const Standard_Integer domain) ;


Standard_EXPORT   Standard_Integer IndexOf(const BRepMesh_Vertex& aNode) const;


Standard_EXPORT   Standard_Integer IndexOf(const BRepMesh_Edge& aLink) const;


Standard_EXPORT   Standard_Integer IndexOf(const BRepMesh_Triangle& anElement) const;


Standard_EXPORT  const MeshDS_ListOfInteger& LinkNeighboursOf(const Standard_Integer theNode) const;


Standard_EXPORT  const MeshDS_ListOfInteger& ElemConnectedTo(const Standard_Integer theLink) const;


Standard_EXPORT  const MeshDS_MapOfInteger& ElemOfDomain(const Standard_Integer theDomain) const;


Standard_EXPORT  const MeshDS_MapOfInteger& LinkOfDomain(const Standard_Integer theDomain) const;


Standard_EXPORT   void DomainList(TColStd_ListOfInteger& theDomains) const;


Standard_EXPORT   void ClearDeleted() ;


Standard_EXPORT   void Statistics(Standard_OStream& flot) const;


Standard_EXPORT  const MeshDS_BaseAllocator& Allocator() const;
//Standard_EXPORT ~BRepMesh_DataStructureOfDelaun();




 // Type management
 //
 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
 // 


Standard_EXPORT   void ClearElement(const Standard_Integer Index,const BRepMesh_Triangle& theElem) ;


 // Fields PRIVATE
 //
BRepMesh_IDMapOfNodeOfDataStructureOfDelaun myNodes;
TColStd_ListOfInteger delNodes;
BRepMesh_IDMapOfLinkOfDataStructureOfDelaun myLinks;
TColStd_ListOfInteger delLinks;
BRepMesh_IMapOfElementOfDataStructureOfDelaun myElements;
TColStd_ListOfInteger delElements;
MeshDS_DataMapOfInteger elemOfDomain;
MeshDS_DataMapOfInteger linkOfDomain;
MeshDS_BaseAllocator myAllocator;


};





// other Inline functions and methods (like "C++: function call" methods)
//


#endif
