1 // Created on: 1997-04-14
2 // Created by: Olga PILLOT
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _LocOpe_LinearForm_HeaderFile
18 #define _LocOpe_LinearForm_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
23 #include <TopoDS_Shape.hxx>
25 #include <TopTools_DataMapOfShapeListOfShape.hxx>
27 #include <TopTools_ListOfShape.hxx>
30 //! Defines a linear form (using Prism from BRepSweep)
31 //! with modifications provided for the LinearForm feature.
32 class LocOpe_LinearForm
41 LocOpe_LinearForm(const TopoDS_Shape& Base, const gp_Vec& V, const gp_Pnt& Pnt1, const gp_Pnt& Pnt2);
43 LocOpe_LinearForm(const TopoDS_Shape& Base, const gp_Vec& V, const gp_Vec& Vectra, const gp_Pnt& Pnt1, const gp_Pnt& Pnt2);
45 Standard_EXPORT void Perform (const TopoDS_Shape& Base, const gp_Vec& V, const gp_Pnt& Pnt1, const gp_Pnt& Pnt2);
47 Standard_EXPORT void Perform (const TopoDS_Shape& Base, const gp_Vec& V, const gp_Vec& Vectra, const gp_Pnt& Pnt1, const gp_Pnt& Pnt2);
49 Standard_EXPORT const TopoDS_Shape& FirstShape() const;
51 Standard_EXPORT const TopoDS_Shape& LastShape() const;
53 Standard_EXPORT const TopoDS_Shape& Shape() const;
55 Standard_EXPORT const TopTools_ListOfShape& Shapes (const TopoDS_Shape& S) const;
69 Standard_EXPORT void IntPerf();
75 Standard_Boolean myDone;
76 Standard_Boolean myIsTrans;
78 TopoDS_Shape myFirstShape;
79 TopoDS_Shape myLastShape;
80 TopTools_DataMapOfShapeListOfShape myMap;
88 #include <LocOpe_LinearForm.lxx>
94 #endif // _LocOpe_LinearForm_HeaderFile