xc
GeomGroup3d.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. Pérez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //GeomGroup3d.h
22 
23 #ifndef GEOMGROUP3D_H
24 #define GEOMGROUP3D_H
25 
26 #include "utility/utils/stl/pdeque.h"
27 #include "GeomObj3d.h"
28 #include "utility/geom/lists/GeomGroup.h"
29 
30 class Line3d;
31 
32 
34 //
36 class GeomGroup3d : public GeomGroup<GeomObj3d>
37  {
38 
39  virtual GEOM_FT inertia(const Line3d &e) const;
40  public:
41  typedef pdeque_geom_obj::const_iterator const_iterator;
42  typedef pdeque_geom_obj::iterator iterator;
43 
44 
46 
47  virtual GeomObj3d *getCopy(void) const
48  { return new GeomGroup3d(*this); }
49 
50  virtual Pos3d getCenterOfMass(void) const;
51 
52  virtual GEOM_FT Ix(void) const;
53  //Moment of inertia with respect to the center of mass in local coordinates.
54  virtual GEOM_FT Iy(void) const;
55  //Moment of inertia with respect to the center of mass in local coordinates.
56  virtual GEOM_FT Iz(void) const;
57  //Moment of inertia with respect to the center of mass in local coordinates.
58  GEOM_FT Pxy(void) const;
59  //product of inertia with respect to the center of mass in local coordinates.
60 
61 
62  };
63 
64 #endif
virtual GEOM_FT Iy(void) const
Moment of inertia with respect to an axis parallel to the y axis passing through the center of mass...
Definition: GeomGroup3d.cc:59
virtual Pos3d getCenterOfMass(void) const
Return the position of the object&#39;s center of mass.
Definition: GeomGroup3d.cc:78
Base class for geometric entities groups.
Definition: GeomGroup.h:33
Posición en tres dimensiones.
Definition: Pos3d.h:44
Line in a three-dimensional space.
Definition: Line3d.h:62
GEOM_FT Pxy(void) const
Moment of inertia with respect to the axis parallel to the x and y axis passing through the center of...
Definition: GeomGroup3d.cc:69
Group of 3D entities.
Definition: GeomGroup3d.h:36
virtual GEOM_FT Iz(void) const
Moment of inertia with respect to an axis parallel to the z axis passing through the center of mass...
Definition: GeomGroup3d.cc:64
virtual GEOM_FT Ix(void) const
Moment of inertia with respect to an axis parallel to the x axis passing through the center of mass...
Definition: GeomGroup3d.cc:54
Clase base para los objetos en tres dimensiones.
Definition: GeomObj3d.h:43