xc
|
Pointers to points in a matrix structure. More...
#include <PntPtrArray.h>
Public Member Functions | |
PntPtrArray (const size_t &f=0, const size_t &c=0) | |
Constructor. | |
m_int | getTags (void) const |
Returns an array with the point identifiers. | |
const MultiBlockTopology * | getMultiBlockTopology (void) const |
Returns a pointer to the MultiBlockTopology object. | |
MultiBlockTopology * | getMultiBlockTopology (void) |
Returns a pointer to the MultiBlockTopology object. | |
void | setPnt (const size_t &, const size_t &, const int &) |
Pnt * | getPnt (const size_t &, const size_t &) |
Pnt * | findPoint (const size_t &) |
Returns (if it exists) a pointer to point identified by the tag is being passed as parameter. More... | |
const Pnt * | findPoint (const size_t &) const |
Returns (if it exists) a pointer to the point identified by the tag passed as parameter. More... | |
Pnt * | getNearestPnt (const Pos3d &p) |
Return the point closest to the point being passed as parameter. | |
const Pnt * | getNearestPnt (const Pos3d &p) const |
Return the ppoint closest to the point being passed as parameter. | |
std::deque< size_t > | copyPoints (const MatrixRange &, const std::vector< size_t > &, const Vector3d &) |
Copy the points from the range being passed as parameter, and places the at the positions of the matrix that result form adding to the (i,j) indexes of the point the values of the offsetIndices vector; i.e. More... | |
Pos3d | getCentroide (void) const |
Return the framework centroid. | |
![]() | |
bool | Null (void) const |
Returns true if it's empty or the pointers are NULL. | |
bool | HasNull (void) const |
Returns true if it's empty or any of the pointers are NULL. | |
void | dim (const size_t &, const size_t &) |
Matrix dimensions. | |
std::vector< int > | getRowObjectsTags (const size_t &) |
Asks each of the objects in the row to execute the code being passed as parameter. More... | |
std::vector< int > | getColumnObjectsTags (const size_t &) |
Asks each of the objects in the column to execute the code being passed as parameter. More... | |
std::vector< int > | getRowInteriorObjectsTags (const size_t &) |
Asks each of the objects at the interior of the row to execute the code being passed as parameter. More... | |
std::vector< int > | getColumnInteriorObjectsTags (const size_t &) |
Asks each of the objects at the interior of the column to execute the code being passed as parameter. More... | |
std::vector< int > | getTagsInteriorObjs (void) |
Asks each of the objects at the interior to execute the code being passed as parameter. More... | |
std::vector< int > | getTagsObjs (void) |
Friends | |
class | MultiBlockTopology |
Additional Inherited Members | |
![]() | |
typedef TMatrix< Pnt *, std::vector< Pnt *> > | m_ptr |
typedef m_ptr::iterator | iterator |
typedef m_ptr::const_iterator | const_iterator |
typedef m_ptr::value_type | value_type |
typedef m_ptr::reference | reference |
typedef m_ptr::const_reference | const_reference |
![]() | |
PtrArrayBase (const size_t &f=0, const size_t &c=0) | |
Constructor. | |
Pointers to points in a matrix structure.
std::deque< size_t > XC::PntPtrArray::copyPoints | ( | const MatrixRange & | rango, |
const std::vector< size_t > & | offsetIndices, | ||
const Vector3d & | vectorOffset = Vector3d() |
||
) |
Copy the points from the range being passed as parameter, and places the at the positions of the matrix that result form adding to the (i,j) indexes of the point the values of the offsetIndices vector; i.e.
: (i,j)->(i+offsetIndices[0],j+offsetIndices[1]) and moving the by the vectorOffset vector.
XC::Pnt * XC::PntPtrArray::findPoint | ( | const size_t & | tag | ) |
Returns (if it exists) a pointer to point identified by the tag is being passed as parameter.
const XC::Pnt * XC::PntPtrArray::findPoint | ( | const size_t & | tag | ) | const |
Returns (if it exists) a pointer to the point identified by the tag passed as parameter.