0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / BRepPrim / BRepPrim_Wedge.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-01-09
2// Created by: Modelistation
3// Copyright (c) 1995-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 _BRepPrim_Wedge_HeaderFile
18#define _BRepPrim_Wedge_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <BRepPrim_GWedge.hxx>
25#include <Standard_Real.hxx>
26class Standard_DomainError;
27class gp_Ax2;
28
29
30//! Provides constructors without Builders.
31class BRepPrim_Wedge : public BRepPrim_GWedge
32{
33public:
34
35 DEFINE_STANDARD_ALLOC
36
37
38 //! Creates a Wedge algorithm. <Axes> is the axis
39 //! system for the primitive.
40 //!
41 //! XMin, YMin, ZMin are set to 0
42 //! XMax, YMax, ZMax are set to dx, dy, dz
43 //! Z2Min = ZMin
44 //! Z2Max = ZMax
45 //! X2Min = XMin
46 //! X2Max = XMax
47 //! The result is a box
48 //! dx,dy,dz should be positive
49 Standard_EXPORT BRepPrim_Wedge(const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz);
50
51 //! Creates a Wedge primitive. <Axes> is the axis
52 //! system for the primitive.
53 //!
54 //! XMin, YMin, ZMin are set to 0
55 //! XMax, YMax, ZMax are set to dx, dy, dz
56 //! Z2Min = ZMin
57 //! Z2Max = ZMax
58 //! X2Min = ltx
59 //! X2Max = ltx
60 //! The result is a STEP right angular wedge
61 //! dx,dy,dz should be positive
62 //! ltx should not be negative
63 Standard_EXPORT BRepPrim_Wedge(const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz, const Standard_Real ltx);
64
65 //! Create a Wedge primitive. <Axes> is the axis
66 //! system for the primitive.
67 //!
68 //! all the fields are set to the corresponding value
69 //! XYZMax - XYZMin should be positive
70 //! ZX2Max - ZX2Min should not be negative
71 Standard_EXPORT BRepPrim_Wedge(const gp_Ax2& Axes, const Standard_Real xmin, const Standard_Real ymin, const Standard_Real zmin, const Standard_Real z2min, const Standard_Real x2min, const Standard_Real xmax, const Standard_Real ymax, const Standard_Real zmax, const Standard_Real z2max, const Standard_Real x2max);
72
73
74
75
76protected:
77
78
79
80
81
82private:
83
84
85
86
87
88};
89
90
91
92
93
94
95
96#endif // _BRepPrim_Wedge_HeaderFile