0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / BRepOffsetAPI / BRepOffsetAPI_MiddlePath.hxx
1 // Created on: 2012-08-06
2 // Created by: jgv@ROLEX
3 // Copyright (c) 2012-2014 OPEN CASCADE SAS
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 _BRepOffsetAPI_MiddlePath_HeaderFile
17 #define _BRepOffsetAPI_MiddlePath_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
22
23 #include <TopoDS_Shape.hxx>
24 #include <TopoDS_Wire.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <TopTools_MapOfShape.hxx>
27 #include <BRepOffsetAPI_SequenceOfSequenceOfShape.hxx>
28 #include <BRepBuilderAPI_MakeShape.hxx>
29 class TopoDS_Shape;
30
31
32 //! Describes functions to build a middle path of a
33 //! pipe-like shape
34 class BRepOffsetAPI_MiddlePath  : public BRepBuilderAPI_MakeShape
35 {
36 public:
37
38   DEFINE_STANDARD_ALLOC
39
40   
41   //! General constructor.
42   //! StartShape and EndShape may be
43   //! a wire or a face
44   Standard_EXPORT BRepOffsetAPI_MiddlePath(const TopoDS_Shape& aShape, const TopoDS_Shape& StartShape, const TopoDS_Shape& EndShape);
45   
46   Standard_EXPORT virtual void Build() Standard_OVERRIDE;
47
48
49
50
51 protected:
52
53
54
55
56
57 private:
58
59
60
61   TopoDS_Shape myInitialShape;
62   TopoDS_Wire myStartWire;
63   TopoDS_Wire myEndWire;
64   Standard_Boolean myClosedSection;
65   Standard_Boolean myClosedRing;
66   TopTools_MapOfShape myStartWireEdges;
67   TopTools_MapOfShape myEndWireEdges;
68   BRepOffsetAPI_SequenceOfSequenceOfShape myPaths;
69
70
71 };
72
73
74
75
76
77
78
79 #endif // _BRepOffsetAPI_MiddlePath_HeaderFile