1 // Created on: 2016-04-07
2 // Copyright (c) 2016 OPEN CASCADE SAS
3 // Created by: Oleg AGASHIN
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _BRepMeshData_Edge_HeaderFile
17 #define _BRepMeshData_Edge_HeaderFile
19 #include <IMeshData_Edge.hxx>
20 #include <IMeshData_Curve.hxx>
21 #include <NCollection_IncAllocator.hxx>
22 #include <IMeshData_Types.hxx>
24 //! Default implementation of edge data model entity.
25 class BRepMeshData_Edge : public IMeshData_Edge
32 Standard_EXPORT BRepMeshData_Edge (
33 const TopoDS_Edge& theEdge,
34 const Handle (NCollection_IncAllocator)& theAllocator);
37 Standard_EXPORT virtual ~BRepMeshData_Edge ();
39 //! Returns number of pcurves assigned to current edge.
40 Standard_EXPORT virtual Standard_Integer PCurvesNb () const Standard_OVERRIDE;
42 //! Adds disrete pcurve for the specifed discrete face.
43 Standard_EXPORT virtual const IMeshData::IPCurveHandle& AddPCurve (
44 const IMeshData::IFacePtr& theDFace,
45 const TopAbs_Orientation theOrientation) Standard_OVERRIDE;
47 //! Returns pcurve for the specified discrete face.
48 Standard_EXPORT virtual const IMeshData::IPCurveHandle& GetPCurve (
49 const IMeshData::IFacePtr& theDFace,
50 const TopAbs_Orientation theOrientation) const Standard_OVERRIDE;
52 //! Returns pcurve with the given index.
53 Standard_EXPORT virtual const IMeshData::IPCurveHandle& GetPCurve (
54 const Standard_Integer theIndex) const Standard_OVERRIDE;
56 DEFINE_STANDARD_RTTI_INLINE(BRepMeshData_Edge, IMeshData_Edge)
60 Handle (NCollection_IncAllocator) myAllocator;
61 IMeshData::VectorOfIPCurveHandles myPCurves;
62 IMeshData::DMapOfIFacePtrsListOfInteger myPCurvesMap;