Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRepFill_SectionLaw.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1998-01-07
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRepFill_SectionLaw_HeaderFile
0018 #define _BRepFill_SectionLaw_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <GeomFill_SectionLaw.hxx>
0024 #include <NCollection_Array1.hxx>
0025 #include <NCollection_HArray1.hxx>
0026 #include <TopoDS_Shape.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopTools_ShapeMapHasher.hxx>
0029 #include <NCollection_DataMap.hxx>
0030 #include <BRepTools_WireExplorer.hxx>
0031 #include <Standard_Transient.hxx>
0032 #include <GeomAbs_Shape.hxx>
0033 class GeomFill_SectionLaw;
0034 class TopoDS_Vertex;
0035 class TopoDS_Shape;
0036 class TopoDS_Wire;
0037 class TopoDS_Edge;
0038 
0039 //! Build Section Law, with an Vertex, or an Wire
0040 class BRepFill_SectionLaw : public Standard_Transient
0041 {
0042 
0043 public:
0044   Standard_EXPORT int NbLaw() const;
0045 
0046   Standard_EXPORT const occ::handle<GeomFill_SectionLaw>& Law(const int Index) const;
0047 
0048   Standard_EXPORT int IndexOfEdge(const TopoDS_Shape& anEdge) const;
0049 
0050   Standard_EXPORT virtual bool IsConstant() const = 0;
0051 
0052   Standard_EXPORT bool IsUClosed() const;
0053 
0054   Standard_EXPORT bool IsVClosed() const;
0055 
0056   Standard_EXPORT bool IsDone() const;
0057 
0058   //! Say if the input shape is a vertex.
0059   Standard_EXPORT virtual bool IsVertex() const = 0;
0060 
0061   Standard_EXPORT virtual occ::handle<GeomFill_SectionLaw> ConcatenedLaw() const = 0;
0062 
0063   Standard_EXPORT virtual GeomAbs_Shape Continuity(const int    Index,
0064                                                    const double TolAngular) const = 0;
0065 
0066   Standard_EXPORT virtual double VertexTol(const int Index, const double Param) const = 0;
0067 
0068   Standard_EXPORT virtual TopoDS_Vertex Vertex(const int Index, const double Param) const = 0;
0069 
0070   Standard_EXPORT virtual void D0(const double U, TopoDS_Shape& S) = 0;
0071 
0072   Standard_EXPORT void Init(const TopoDS_Wire& W);
0073 
0074   Standard_EXPORT TopoDS_Edge CurrentEdge();
0075 
0076   DEFINE_STANDARD_RTTIEXT(BRepFill_SectionLaw, Standard_Transient)
0077 
0078 protected:
0079   occ::handle<NCollection_HArray1<occ::handle<GeomFill_SectionLaw>>> myLaws;
0080   bool                                                               uclosed;
0081   bool                                                               vclosed;
0082   bool                                                               myDone;
0083   NCollection_DataMap<TopoDS_Shape, int, TopTools_ShapeMapHasher>    myIndices;
0084 
0085 private:
0086   BRepTools_WireExplorer myIterator;
0087 };
0088 
0089 #endif // _BRepFill_SectionLaw_HeaderFile