XC Open source finite element analysis program
EntGeomSection.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 //EntGeomSection.h
28 
29 #ifndef ENTGEOMSECTION_H
30 #define ENTGEOMSECTION_H
31 
32 #include "xc_utils/src/nucleo/EntConNmb.h"
33 
34 namespace XC {
35 class GeomSection;
36 class SisRefScc;
37 class Spot;
38 class Eje;
39 
41 //
43 //
45 //
47 class EntGeomSection: public EntConNmb
48  {
49  private:
50  GeomSection *sccGeom;
51  protected:
52  const GeomSection *getGeomSection(void) const;
54 
55  public:
56  EntGeomSection(const std::string &nmb="",GeomSection *sccGeom= nullptr);
57  EntGeomSection(const EntGeomSection &otro);
59  inline const GeomSection *GetGeomSection(void) const
60  { return getGeomSection(); }
61  inline GeomSection *GetGeomSection(void)
62  { return getGeomSection(); }
63  int getVtkCellType(void) const;
64  virtual int getMEDCellType(void) const;
65 
66 
67  SisRefScc *SisRefSccActual(void);
68  const SisRefScc *SisRefSccActual(void) const;
69 
70  Spot *BuscaSpot(const size_t &id_punto);
71  const Spot *BuscaSpot(const size_t &id_punto) const;
72  Eje *BuscaEje(const size_t &id_edge);
73  const Eje *BuscaEje(const size_t &id_edge) const;
74  };
75 
76 } //end of XC namespace
77 #endif
Point object for section geometry definition.
Definition: Spot.h:43
virtual int getMEDCellType(void) const
Interfaz con el formato MED de Salome.
Definition: EntGeomSection.cc:147
EntGeomSection(const std::string &nmb="", GeomSection *sccGeom=nullptr)
Constructor.
Definition: EntGeomSection.cc:45
EntGeomSection & operator=(const EntGeomSection &otro)
Assignment operator.
Definition: EntGeomSection.cc:54
SisRefScc * SisRefSccActual(void)
Returns current reference system.
Definition: EntGeomSection.cc:62
Spot * BuscaSpot(const size_t &id_punto)
Returns a pointer to the point with the identifier being passed as parameter.
Definition: EntGeomSection.cc:80
Base class of section geometry representation classes.
Definition: EntGeomSection.h:47
Eje * BuscaEje(const size_t &id_edge)
Returns a pointer to the Eje indentified by the tag being passed as parameter.
Definition: EntGeomSection.cc:110
Base class for 1D entities in section definition.
Definition: Eje.h:43
const GeomSection * getGeomSection(void) const
Returns a pointer to the GeomSection.
Definition: EntGeomSection.cc:38
int getVtkCellType(void) const
Interfaz con VTK.
Definition: EntGeomSection.cc:140
================================================================================
Definition: ContinuaReprComponent.h:34
Cross section geometry.
Definition: GeomSection.h:62
Reference system used for make easier definining point positions.
Definition: SisRefScc.h:42