xc
Public Member Functions | Protected Member Functions | List of all members
XC::PntMap Class Reference

Point container. More...

#include <PntMap.h>

Inheritance diagram for XC::PntMap:
XC::EntityMap< Pnt > XC::ModelComponentContainer< Pnt > XC::ModelComponentContainerBase

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.
 
PntNew (void)
 Creates a new point.
 
PntNew (const Pos3d &)
 Creates a new point at the position being passed as parameter.
 
PntNew (const size_t &, const Pos3d &)
 Creates a new point with the tag being passed as parameter.
 
PntCopy (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...
 
- Public Member Functions inherited from XC::EntityMap< Pnt >
 EntityMap (MultiBlockTopology *mbt=nullptr)
 Constructor.
 
PntgetNearest (const Pos3d &p)
 Returns the object closest to the position being passed as parameter.
 
const PntgetNearest (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.
 
- Public Member Functions inherited from XC::ModelComponentContainer< Pnt >
 ModelComponentContainer (MultiBlockTopology *mbt=nullptr)
 Constructor.
 
Pntbusca (const Indice &)
 Return a pointer to the geometry entity whose identifier is passed as parameter.
 
const Pntbusca (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.
 
Pntget (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.
 
- Public Member Functions inherited from XC::ModelComponentContainerBase
 ModelComponentContainerBase (MultiBlockTopology *mbt=nullptr)
 Default identifier for new component. More...
 
const MultiBlockTopologygetMultiBlockTopology (void) const
 Return a pointer to MultiBlockTopology.
 
MultiBlockTopologygetMultiBlockTopology (void)
 Return a pointer to MultiBlockTopology.
 
const PreprocessorgetPreprocessor (void) const
 Return a pointer to preprocessor.
 
PreprocessorgetPreprocessor (void)
 Return a pointer to preprocessor.
 
size_t getTag (void) const
 
void setTag (const size_t &t)
 

Protected Member Functions

PntCrea (void)
 Creates a new point.
 

Additional Inherited Members

- Public Types inherited from XC::EntityMap< Pnt >
typedef ModelComponentContainer< Pnt >::iterator iterator
 
typedef ModelComponentContainer< Pnt >::const_iterator const_iterator
 
- Public Types inherited from XC::ModelComponentContainer< Pnt >
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
 
- Public Types inherited from XC::ModelComponentContainerBase
typedef size_t Indice
 
- Protected Attributes inherited from XC::ModelComponentContainerBase
Indice tag
 

Detailed Description

Point container.

Member Function Documentation

§ Copy() [1/2]

XC::Pnt * XC::PntMap::Copy ( const Pnt p,
const Vector3d &  v = Vector3d() 
)

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.

§ Copy() [2/2]

void XC::PntMap::Copy ( const std::vector< PntMap::Indice > &  indices)

Create copies of the points which identifiers are being passed as parameters.

§ Dist()

double XC::PntMap::Dist ( const Indice &  i,
const Indice &  j 
) const

Return the distance between the points which identifiers are being passed as parameters.

§ Transforma()

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.


The documentation for this class was generated from the following files: