0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / BRepMeshData / BRepMeshData_Face.hxx
1 // Created on: 2016-04-07
2 // Copyright (c) 2016 OPEN CASCADE SAS
3 // Created by: Oleg AGASHIN
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _BRepMeshData_Face_HeaderFile
17 #define _BRepMeshData_Face_HeaderFile
18
19 #include <IMeshData_Types.hxx>
20 #include <IMeshData_Face.hxx>
21 #include <IMeshData_Wire.hxx>
22
23 //! Default implementation of face data model entity.
24 class BRepMeshData_Face : public IMeshData_Face
25 {
26 public:
27
28   DEFINE_INC_ALLOC
29
30   //! Constructor.
31   Standard_EXPORT BRepMeshData_Face (
32     const TopoDS_Face&                       theFace,
33     const Handle (NCollection_IncAllocator)& theAllocator);
34
35   //! Destructor.
36   Standard_EXPORT virtual ~BRepMeshData_Face ();
37
38   //! Gets number of children.
39   Standard_EXPORT virtual Standard_Integer WiresNb () const Standard_OVERRIDE;
40
41   //! Gets wire with the given index.
42   Standard_EXPORT virtual const IMeshData::IWireHandle& GetWire (
43     const Standard_Integer theIndex) const Standard_OVERRIDE;
44
45   //! Adds wire to discrete model of face.
46   Standard_EXPORT virtual const IMeshData::IWireHandle& AddWire (
47     const TopoDS_Wire&     theWire,
48     const Standard_Integer theEdgeNb = 0) Standard_OVERRIDE;
49
50   DEFINE_STANDARD_RTTI_INLINE(BRepMeshData_Face, IMeshData_Face)
51
52 private:
53
54   Handle (NCollection_IncAllocator) myAllocator;
55   IMeshData::VectorOfIWireHandles   myDWires;
56 };
57
58 #endif