xc
|
Point container. More...
#include <PntMap.h>
Public Member Functions | |
PntMap (MultiBlockTopology *mbt=nullptr) | |
Constructor. | |
Vector3d | getVector (const Indice &i, const Indice &j) const |
Return the vector defined by the points which indices are being passed as parameters. | |
Line3d | getRecta (const Indice &i, const Indice &j) const |
Return the line defined by the points which indices are being passed as parameters. | |
Plane | getPlane (const Indice &i, const Indice &j, const Indice &k) const |
Return the plane defined by the points which indices are being passed as parameters. | |
Pnt * | New (void) |
Creates a new point. | |
Pnt * | New (const Pos3d &) |
Creates a new point at the position being passed as parameter. | |
Pnt * | New (const size_t &, const Pos3d &) |
Creates a new point with the tag being passed as parameter. | |
Pnt * | Copy (const Pnt *, const Vector3d &v) |
Creates a new point, copy from the point argument with the corresponding name according to the value of the tag. More... | |
void | Copy (const std::vector< PntMap::Indice > &) |
Create copies of the points which identifiers are being passed as parameters. More... | |
void | Transforma (const TrfGeom &trf, const std::vector< PntMap::Indice > &) |
Applies the transformation to the points identified by the indices being passed as parameter. More... | |
double | Dist (const Indice &i, const Indice &j) const |
Return the distance between the points which identifiers are being passed as parameters. More... | |
![]() | |
EntityMap (MultiBlockTopology *mbt=nullptr) | |
Constructor. | |
Pnt * | getNearest (const Pos3d &p) |
Returns the object closest to the position being passed as parameter. | |
const Pnt * | getNearest (const Pos3d &p) const |
Returns the object closest to the position being passed as parameter. | |
void | numera (void) |
Set indices to the objects to allow its use in VTK. | |
![]() | |
ModelComponentContainer (MultiBlockTopology *mbt=nullptr) | |
Constructor. | |
Pnt * | busca (const Indice &) |
Return a pointer to the geometry entity whose identifier is passed as parameter. | |
const Pnt * | busca (const Indice &) const |
Return a pointer to the entity whose identifier is passed as parameter. | |
bool | exists (const Indice &) const |
Return true if the entity already exists. | |
Pnt * | get (const Indice &) |
Return the entity with tag iEnt. | |
boost::python::list | getKeys (void) const |
Return the container's keys. | |
void | clearAll (void) |
Erase all the entities. | |
virtual | ~ModelComponentContainer (void) |
Destructor. | |
![]() | |
ModelComponentContainerBase (MultiBlockTopology *mbt=nullptr) | |
Default identifier for new component. More... | |
const MultiBlockTopology * | getMultiBlockTopology (void) const |
Return a pointer to MultiBlockTopology. | |
MultiBlockTopology * | getMultiBlockTopology (void) |
Return a pointer to MultiBlockTopology. | |
const Preprocessor * | getPreprocessor (void) const |
Return a pointer to preprocessor. | |
Preprocessor * | getPreprocessor (void) |
Return a pointer to preprocessor. | |
size_t | getTag (void) const |
void | setTag (const size_t &t) |
Protected Member Functions | |
Pnt * | Crea (void) |
Creates a new point. | |
Additional Inherited Members | |
![]() | |
typedef ModelComponentContainer< Pnt >::iterator | iterator |
typedef ModelComponentContainer< Pnt >::const_iterator | const_iterator |
![]() | |
typedef std::map< Indice, Pnt *> | map_base |
typedef std::pair< Indice, Pnt *> | pair |
typedef map_base::iterator | iterator |
typedef map_base::const_iterator | const_iterator |
![]() | |
typedef size_t | Indice |
![]() | |
Indice | tag |
Point container.
Creates a new point, copy from the point argument with the corresponding name according to the value of the tag.
The coordinates of the new point will be those obtained from the addition to the point the vector being passed as parameter.
void XC::PntMap::Copy | ( | const std::vector< PntMap::Indice > & | indices | ) |
Create copies of the points which identifiers are being passed as parameters.
double XC::PntMap::Dist | ( | const Indice & | i, |
const Indice & | j | ||
) | const |
Return the distance between the points which identifiers are being passed as parameters.
void XC::PntMap::Transforma | ( | const TrfGeom & | trf, |
const std::vector< PntMap::Indice > & | indices | ||
) |
Applies the transformation to the points identified by the indices being passed as parameter.