Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:15:48

0001 // Created on: 1992-12-02
0002 // Created by: Isabelle GRIGNON
0003 // Copyright (c) 1992-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 _GProp_SelGProps_HeaderFile
0018 #define _GProp_SelGProps_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <GProp_GProps.hxx>
0024 class gp_Cylinder;
0025 class gp_Pnt;
0026 class gp_Cone;
0027 class gp_Sphere;
0028 class gp_Torus;
0029 
0030 //! Computes the global properties of a bounded elementary surface in 3D
0031 //! (surfaces from the gp package: Cylinder, Cone, Sphere, Torus).
0032 class GProp_SelGProps : public GProp_GProps
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   Standard_EXPORT GProp_SelGProps();
0038 
0039   Standard_EXPORT GProp_SelGProps(const gp_Cylinder& S,
0040                                   const double       Alpha1,
0041                                   const double       Alpha2,
0042                                   const double       Z1,
0043                                   const double       Z2,
0044                                   const gp_Pnt&      SLocation);
0045 
0046   Standard_EXPORT GProp_SelGProps(const gp_Cone& S,
0047                                   const double   Alpha1,
0048                                   const double   Alpha2,
0049                                   const double   Z1,
0050                                   const double   Z2,
0051                                   const gp_Pnt&  SLocation);
0052 
0053   Standard_EXPORT GProp_SelGProps(const gp_Sphere& S,
0054                                   const double     Teta1,
0055                                   const double     Teta2,
0056                                   const double     Alpha1,
0057                                   const double     Alpha2,
0058                                   const gp_Pnt&    SLocation);
0059 
0060   Standard_EXPORT GProp_SelGProps(const gp_Torus& S,
0061                                   const double    Teta1,
0062                                   const double    Teta2,
0063                                   const double    Alpha1,
0064                                   const double    Alpha2,
0065                                   const gp_Pnt&   SLocation);
0066 
0067   Standard_EXPORT void SetLocation(const gp_Pnt& SLocation);
0068 
0069   Standard_EXPORT void Perform(const gp_Cylinder& S,
0070                                const double       Alpha1,
0071                                const double       Alpha2,
0072                                const double       Z1,
0073                                const double       Z2);
0074 
0075   Standard_EXPORT void Perform(const gp_Cone& S,
0076                                const double   Alpha1,
0077                                const double   Alpha2,
0078                                const double   Z1,
0079                                const double   Z2);
0080 
0081   Standard_EXPORT void Perform(const gp_Sphere& S,
0082                                const double     Teta1,
0083                                const double     Teta2,
0084                                const double     Alpha1,
0085                                const double     Alpha2);
0086 
0087   Standard_EXPORT void Perform(const gp_Torus& S,
0088                                const double    Teta1,
0089                                const double    Teta2,
0090                                const double    Alpha1,
0091                                const double    Alpha2);
0092 };
0093 
0094 #endif // _GProp_SelGProps_HeaderFile