42cf5bc1 |
1 | // Created on: 1991-03-12 |
2 | // Created by: Michel CHAUVAT |
3 | // Copyright (c) 1991-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 _GProp_HeaderFile |
18 | #define _GProp_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Real.hxx> |
25 | class gp_Pnt; |
26 | class gp_Mat; |
27 | class GProp_GProps; |
28 | class GProp_PGProps; |
29 | class GProp_CelGProps; |
30 | class GProp_SelGProps; |
31 | class GProp_VelGProps; |
32 | class GProp_PrincipalProps; |
33 | class GProp_PEquation; |
34 | |
35 | |
36 | |
37 | //! This package defines algorithmes to compute the global properties |
38 | //! of a set of points, a curve, a surface, a solid (non infinite |
39 | //! region of space delimited with geometric entities), a compound |
40 | //! geometric system (heterogeneous composition of the previous |
41 | //! entities). |
42 | //! |
43 | //! Global properties are : |
44 | //! . length, area, volume, |
45 | //! . centre of mass, |
46 | //! . axis of inertia, |
47 | //! . moments of inertia, |
48 | //! . radius of gyration. |
49 | //! |
50 | //! It provides also a class to compile the average point or |
51 | //! line of a set of points. |
52 | class GProp |
53 | { |
54 | public: |
55 | |
56 | DEFINE_STANDARD_ALLOC |
57 | |
58 | |
59 | //! methods of package |
60 | //! Computes the matrix Operator, referred to as the |
61 | //! "Huyghens Operator" of a geometric system at the |
62 | //! point Q of the space, using the following data : |
63 | //! - Mass, i.e. the mass of the system, |
64 | //! - G, the center of mass of the system. |
65 | //! The "Huyghens Operator" is used to compute |
66 | //! Inertia/Q, the matrix of inertia of the system at |
67 | //! the point Q using Huyghens' theorem : |
68 | //! Inertia/Q = Inertia/G + HOperator (Q, G, Mass) |
69 | //! where Inertia/G is the matrix of inertia of the |
70 | //! system relative to its center of mass as returned by |
71 | //! the function MatrixOfInertia on any GProp_GProps object. |
72 | Standard_EXPORT static void HOperator (const gp_Pnt& G, const gp_Pnt& Q, const Standard_Real Mass, gp_Mat& Operator); |
73 | |
74 | |
75 | |
76 | |
77 | protected: |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | private: |
84 | |
85 | |
86 | |
87 | |
88 | friend class GProp_GProps; |
89 | friend class GProp_PGProps; |
90 | friend class GProp_CelGProps; |
91 | friend class GProp_SelGProps; |
92 | friend class GProp_VelGProps; |
93 | friend class GProp_PrincipalProps; |
94 | friend class GProp_PEquation; |
95 | |
96 | }; |
97 | |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | #endif // _GProp_HeaderFile |