Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRepPrim_Wedge.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1995-01-09
0002 // Created by: Modelistation
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRepPrim_Wedge_HeaderFile
0018 #define _BRepPrim_Wedge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <BRepPrim_GWedge.hxx>
0025 class gp_Ax2;
0026 
0027 //! Provides constructors without Builders.
0028 class BRepPrim_Wedge : public BRepPrim_GWedge
0029 {
0030 public:
0031   DEFINE_STANDARD_ALLOC
0032 
0033   //! Default constructor
0034   BRepPrim_Wedge() = default;
0035 
0036   //! Creates a Wedge algorithm. <Axes> is the axis
0037   //! system for the primitive.
0038   //!
0039   //! XMin, YMin, ZMin are set to 0
0040   //! XMax, YMax, ZMax are set to dx, dy, dz
0041   //! Z2Min = ZMin
0042   //! Z2Max = ZMax
0043   //! X2Min = XMin
0044   //! X2Max = XMax
0045   //! The result is a box
0046   //! dx,dy,dz should be positive
0047   Standard_EXPORT BRepPrim_Wedge(const gp_Ax2& Axes,
0048                                  const double  dx,
0049                                  const double  dy,
0050                                  const double  dz);
0051 
0052   //! Creates a Wedge primitive. <Axes> is the axis
0053   //! system for the primitive.
0054   //!
0055   //! XMin, YMin, ZMin are set to 0
0056   //! XMax, YMax, ZMax are set to dx, dy, dz
0057   //! Z2Min = ZMin
0058   //! Z2Max = ZMax
0059   //! X2Min = ltx
0060   //! X2Max = ltx
0061   //! The result is a STEP right angular wedge
0062   //! dx,dy,dz should be positive
0063   //! ltx should not be negative
0064   Standard_EXPORT BRepPrim_Wedge(const gp_Ax2& Axes,
0065                                  const double  dx,
0066                                  const double  dy,
0067                                  const double  dz,
0068                                  const double  ltx);
0069 
0070   //! Create a Wedge primitive. <Axes> is the axis
0071   //! system for the primitive.
0072   //!
0073   //! all the fields are set to the corresponding value
0074   //! XYZMax - XYZMin should be positive
0075   //! ZX2Max - ZX2Min should not be negative
0076   Standard_EXPORT BRepPrim_Wedge(const gp_Ax2& Axes,
0077                                  const double  xmin,
0078                                  const double  ymin,
0079                                  const double  zmin,
0080                                  const double  z2min,
0081                                  const double  x2min,
0082                                  const double  xmax,
0083                                  const double  ymax,
0084                                  const double  zmax,
0085                                  const double  z2max,
0086                                  const double  x2max);
0087 };
0088 
0089 #endif // _BRepPrim_Wedge_HeaderFile