XC Open source finite element analysis program
MapPuntos.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 //MapPuntos.h
28 
29 #ifndef MAPPUNTOS_H
30 #define MAPPUNTOS_H
31 
32 #include "MapEnt.h"
33 #include <map>
34 
35 class Pos3d;
36 class Recta3d;
37 class Plano3d;
38 class Vector3d;
39 
40 namespace XC {
41 
42 class Preprocessor;
43 class Cad;
44 class Pnt;
45 class SetEstruct;
46 class TrfGeom;
47 
49 //
51 class MapPuntos: public MapEnt<Pnt>
52  {
53  private:
54  void UpdateSets(Pnt *) const;
55  protected:
56 
57 
58  Pnt *Crea(void);
59  public:
60  MapPuntos(Cad *cad= nullptr);
61 
62  Vector3d getVector(const Indice &i,const Indice &j) const;
63  Recta3d getRecta(const Indice &i,const Indice &j) const;
64  Plano3d getPlano(const Indice &i,const Indice &j,const Indice &k) const;
65 
66  Pnt *New(void);
67  Pnt *New(const Pos3d &);
68  Pnt *New(const size_t &,const Pos3d &);
69 
70  Pnt *Copia(const Pnt *,const Vector3d &v);
71  void Copia(const std::vector<MapPuntos::Indice> &);
72  void Transforma(const TrfGeom &trf,const std::vector<MapPuntos::Indice> &);
73  double Dist(const Indice &i,const Indice &j) const;
74 
75 
76  };
77 
78 } //end of XC namespace
79 #endif
Plano3d getPlano(const Indice &i, const Indice &j, const Indice &k) const
Returns the plane defined by the points which indices are being passed as parameters.
Definition: MapPuntos.cc:98
double Dist(const Indice &i, const Indice &j) const
Return the distancia entre los puntos cuyos identificadores being passed as parameters.
Definition: MapPuntos.cc:237
Point container.
Definition: MapPuntos.h:51
Vector3d getVector(const Indice &i, const Indice &j) const
Returns the vector defined by the points which indices are being passed as parameters.
Definition: MapPuntos.cc:64
Pnt * New(void)
Creates a new point.
Definition: MapPuntos.cc:132
void Transforma(const TrfGeom &trf, const std::vector< MapPuntos::Indice > &)
Applies the transformation to the points identified by the indices being passed as parameter...
Definition: MapPuntos.cc:223
MapPuntos(Cad *cad=nullptr)
Constructor.
Definition: MapPuntos.cc:43
Punto (KPoint).
Definition: Pnt.h:49
Model geometry manager. Management of geometry entities: points, lines, surfaces, bodies...
Definition: Cad.h:69
Definition: TrfGeom.h:49
Pnt * Copia(const Pnt *, const Vector3d &v)
Creates a new point, copia del being passed as parameter con el nombre que le toca según el valor del...
Definition: MapPuntos.cc:178
================================================================================
Definition: ContinuaReprComponent.h:34
Pnt * Crea(void)
Creates a new point.
Definition: MapPuntos.cc:120
Geometric entities container (points, lines, surfaces,...).
Definition: MapEnt.h:42
Recta3d getRecta(const Indice &i, const Indice &j) const
Return the line defined by the points which indices are being passed as parameters.
Definition: MapPuntos.cc:81