0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / BRepPrimAPI / BRepPrimAPI_MakeWedge.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-07-22
2// Created by: Remi LEQUETTE
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _BRepPrimAPI_MakeWedge_HeaderFile
18#define _BRepPrimAPI_MakeWedge_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <BRepPrim_Wedge.hxx>
25#include <BRepBuilderAPI_MakeShape.hxx>
26#include <Standard_Real.hxx>
27class Standard_DomainError;
28class StdFail_NotDone;
29class gp_Ax2;
30class BRepPrim_Wedge;
31class TopoDS_Shell;
32class TopoDS_Solid;
33
34
35//! Describes functions to build wedges, i.e. boxes with inclined faces.
36//! A MakeWedge object provides a framework for:
37//! - defining the construction of a wedge,
38//! - implementing the construction algorithm, and
39//! - consulting the result.
40class BRepPrimAPI_MakeWedge : public BRepBuilderAPI_MakeShape
41{
42public:
43
44 DEFINE_STANDARD_ALLOC
45
46
47 //! Make a STEP right angular wedge. (ltx >= 0)
48 Standard_EXPORT BRepPrimAPI_MakeWedge(const Standard_Real dx, const Standard_Real dy, const Standard_Real dz, const Standard_Real ltx);
49
50 //! Make a STEP right angular wedge. (ltx >= 0)
51 Standard_EXPORT BRepPrimAPI_MakeWedge(const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz, const Standard_Real ltx);
52
53 //! Make a wedge. The face at dy is xmin,zmin xmax,zmax
54 Standard_EXPORT BRepPrimAPI_MakeWedge(const Standard_Real dx, const Standard_Real dy, const Standard_Real dz, const Standard_Real xmin, const Standard_Real zmin, const Standard_Real xmax, const Standard_Real zmax);
55
56 //! Make a wedge. The face at dy is xmin,zmin xmax,zmax
57 Standard_EXPORT BRepPrimAPI_MakeWedge(const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz, const Standard_Real xmin, const Standard_Real zmin, const Standard_Real xmax, const Standard_Real zmax);
58
59 //! Returns the internal algorithm.
60 Standard_EXPORT BRepPrim_Wedge& Wedge();
61
62 //! Stores the solid in myShape.
63 Standard_EXPORT virtual void Build() Standard_OVERRIDE;
64
65 //! Returns the constructed box in the form of a shell.
66 Standard_EXPORT const TopoDS_Shell& Shell();
67Standard_EXPORT operator TopoDS_Shell();
68
69 //! Returns the constructed box in the form of a solid.
70 Standard_EXPORT const TopoDS_Solid& Solid();
71Standard_EXPORT operator TopoDS_Solid();
72
73
74
75
76protected:
77
78
79
80
81
82private:
83
84
85
86 BRepPrim_Wedge myWedge;
87
88
89};
90
91
92
93
94
95
96
97#endif // _BRepPrimAPI_MakeWedge_HeaderFile