// File generated by CPPExt (Value)
//
//                     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 _MAT2d_Mat2d_HeaderFile
#define _MAT2d_Mat2d_HeaderFile

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_MAT_ListOfEdge_HeaderFile
#include <Handle_MAT_ListOfEdge.hxx>
#endif
#ifndef _TColStd_DataMapOfIntegerInteger_HeaderFile
#include <TColStd_DataMapOfIntegerInteger.hxx>
#endif
#ifndef _MAT_DataMapOfIntegerBisector_HeaderFile
#include <MAT_DataMapOfIntegerBisector.hxx>
#endif
#ifndef _Handle_MAT_ListOfBisector_HeaderFile
#include <Handle_MAT_ListOfBisector.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_MAT_Bisector_HeaderFile
#include <Handle_MAT_Bisector.hxx>
#endif
class MAT_ListOfEdge;
class MAT_ListOfBisector;
class MAT2d_Tool2d;
class MAT_Bisector;


#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif


class MAT2d_Mat2d  {

public:

    void* operator new(size_t,void* anAddress) 
      {
        return anAddress;
      }
    void* operator new(size_t size) 
      { 
        return Standard::Allocate(size); 
      }
    void  operator delete(void *anAddress) 
      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
 // Methods PUBLIC
 // 


Standard_EXPORT MAT2d_Mat2d();


Standard_EXPORT   void CreateMat(MAT2d_Tool2d& aTool) ;


Standard_EXPORT   Standard_Boolean IsDone() const;


Standard_EXPORT   void Init() ;


Standard_EXPORT   Standard_Boolean More() const;


Standard_EXPORT   void Next() ;


Standard_EXPORT   Handle_MAT_Bisector Bisector() const;


Standard_EXPORT   Standard_Boolean SemiInfinite() const;


Standard_EXPORT   Standard_Integer NumberOfBisectors() const;





protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


Standard_EXPORT   void LoadBisectorsToRemove(Standard_Integer& noofbisectorstoremove,const Standard_Real distance1,const Standard_Real distance2,const Handle(MAT_Bisector)& bisector1,const Handle(MAT_Bisector)& bisector2,const Handle(MAT_Bisector)& bisector3,const Handle(MAT_Bisector)& bisector4) ;


Standard_EXPORT   void Intersect(MAT2d_Tool2d& atool,const Standard_Integer aside,Standard_Integer& noofbisectorstoremove,const Handle(MAT_Bisector)& bisector1,const Handle(MAT_Bisector)& bisector2) ;


 // Fields PRIVATE
 //
Standard_Integer thenumberofbisectors;
Standard_Integer thenumberofedges;
Standard_Boolean semiInfinite;
Handle_MAT_ListOfEdge theedgelist;
TColStd_DataMapOfIntegerInteger typeofbisectortoremove;
MAT_DataMapOfIntegerBisector bisectoronetoremove;
MAT_DataMapOfIntegerBisector bisectortwotoremove;
MAT_DataMapOfIntegerBisector bisectormap;
Handle_MAT_ListOfBisector roots;
Standard_Integer thecurrentindex;
Standard_Boolean isDone;


};





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


#endif
