// 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 _Intf_Interference_HeaderFile
#define _Intf_Interference_HeaderFile

#ifndef _Intf_SeqOfSectionPoint_HeaderFile
#include <Intf_SeqOfSectionPoint.hxx>
#endif
#ifndef _Intf_SeqOfSectionLine_HeaderFile
#include <Intf_SeqOfSectionLine.hxx>
#endif
#ifndef _Intf_SeqOfTangentZone_HeaderFile
#include <Intf_SeqOfTangentZone.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Standard_OutOfRange;
class Intf_SectionPoint;
class Intf_SectionLine;
class Intf_TangentZone;


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

//! Describes the   Interference  computation    result <br>
//!          between polygon2d or polygon3d or polyhedron. <br>
class Intf_Interference  {

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

//! Gives the number   of  points of  intersection  in the <br>
//!          interference. <br>
Standard_EXPORT   Standard_Integer NbSectionPoints() const;

//! Gives the point of  intersection of address  Index in <br>
//!          the interference. <br>
Standard_EXPORT  const Intf_SectionPoint& PntValue(const Standard_Integer Index) const;

//! Gives the number  of polylines of  intersection in the <br>
//!          interference. <br>
Standard_EXPORT   Standard_Integer NbSectionLines() const;

//! Gives the polyline of intersection at address <Index> in <br>
//!          the interference. <br>
Standard_EXPORT  const Intf_SectionLine& LineValue(const Standard_Integer Index) const;

//! Gives the number of zones of tangence in the interference. <br>
Standard_EXPORT   Standard_Integer NbTangentZones() const;

//! Gives  the zone of  tangence at address   Index in the <br>
//!          interference. <br>
Standard_EXPORT  const Intf_TangentZone& ZoneValue(const Standard_Integer Index) const;

//! Gives the tolerance used for the calculation. <br>
Standard_EXPORT   Standard_Real GetTolerance() const;

//! Tests if the polylines of  intersection or the zones of <br>
//!          tangence contain the point of intersection <ThePnt>. <br>
Standard_EXPORT   Standard_Boolean Contains(const Intf_SectionPoint& ThePnt) const;

//! Inserts a new zone of tangence in  the current list of <br>
//!          tangent zones of  the interference  and  returns  True <br>
//!          when done. <br>
Standard_EXPORT   Standard_Boolean Insert(const Intf_TangentZone& TheZone) ;

//! Insert a new segment of intersection in the current  list of <br>
//!          polylines of intersection of the interference. <br>
Standard_EXPORT   void Insert(const Intf_SectionPoint& pdeb,const Intf_SectionPoint& pfin) ;


Standard_EXPORT   void Dump() const;





protected:

 // Methods PROTECTED
 // 


Standard_EXPORT Intf_Interference(const Standard_Boolean Self);

//! Only one argument for the intersection. <br>
Standard_EXPORT   void SelfInterference(const Standard_Boolean Self) ;


 // Fields PROTECTED
 //
Intf_SeqOfSectionPoint mySPoins;
Intf_SeqOfSectionLine mySLines;
Intf_SeqOfTangentZone myTZones;
Standard_Boolean SelfIntf;
Standard_Real Tolerance;


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //


};





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


#endif
