xc
|
Array of positions in a three-dimensional space. More...
#include <Pos3dArray.h>
Public Member Functions | |
Pos3dArray (const size_t &f=1, const size_t &c=1, const Pos3d &p=Pos3d()) | |
Constructor. | |
Pos3dArray (const Pos3d &p1, const Pos3d &p2, const size_t &num, const GEOM_FT &ratio) | |
Constructor. | |
Pos3dArray (const Pos3d &p1, const Pos3d &p2, const size_t &ndiv) | |
Constructor. | |
Pos3dArray (const Pos3d &p1, const Pos3d &p2, const std::vector< GEOM_FT > &longs) | |
Ver el constructor correspondiente en PosArray<POS>. | |
Pos3dArray (const Pos3d &p0, const Pos3d &p1, const Pos3d &p2, const size_t &ndiv1, const size_t &ndiv2) | |
Constructor. | |
Pos3dArray (const Pos3dArray &l1_points, const Pos3dArray &l2_points, const Pos3dArray &l3_points, const Pos3dArray &l4_points) | |
Pos3dArray (const Pos3d &p1, const Pos3d &p2, const Pos3d &p3, const Pos3d &p4, const size_t &ndiv1, const size_t &ndiv2) | |
Pos3d | getCenter (void) const |
Triangle3d | getTriangle1 (const size_t &i, const size_t &j) const |
Return the triangle inscribed in the cell of the mesh the has the (i,j) vertex as lower left corner and remains under the diagonal between the (i,j) and the (i+1,j+1) vertices. More... | |
Triangle3d | getTriangle2 (const size_t &i, const size_t &j) const |
Return the triangle inscribed in the cell of the mesh the has the (i,j) vertex as lower left corner and remains over the diagonal between the (i,j) and the (i+1,j+1) vertices. More... | |
GEOM_FT | Lagrange (const GEOM_FT &tol) |
Set the interior points of the mesh corresponding to the Lagrange interpolation (see page IX-19 of the SAP90 manual). More... | |
void | Transform (const Trf3d &trf) |
Applies the transformation argument to the matrix. | |
size_t | getNumQuads (void) const |
Return the number of quadrilaterals in the grid. | |
Quadrilateral3d | getQuad (const size_t &i, const size_t &j) const |
Return the i,j quadrilateral: | |
double | getQuadArea (const size_t &i, const size_t &j) const |
Return the area of the quad at i,j: | |
Pos3d | getQuadCentroid (const size_t &i, const size_t &j) const |
Return the centroid of the quad at i,j: | |
Vector3d | getQuadNormal (const size_t &i, const size_t &j) const |
Return the normal of the quad at i,j: | |
std::vector< Pos3d > | getQuadCentroids (void) const |
Return the positions of the quad centroids. | |
boost::python::list | getQuadCentroidsPy (void) const |
Return the positions of the quad centroids in a Python list. | |
std::vector< double > | getQuadAreas (void) const |
Return the areas of the grid quads. | |
boost::python::list | getQuadAreasPy (void) const |
Return the quad areas in a Python list. | |
std::vector< Vector3d > | getQuadNormals (void) const |
Return the positions of the quad normals. | |
boost::python::list | getQuadNormalsPy (void) const |
Return the positions of the quad normals in a Python list. | |
![]() | |
PosArray (const size_t &f=1, const size_t &c=1, const Pos3d &p=Pos3d()) | |
PosArray (const Pos3d &p1, const Pos3d &p2, const size_t &num, const GEOM_FT &ratio) | |
Build the point matrix between p1 and p2 in such way that, the firs point is p1, the number of point is num and each point is obtained by summing the product of ratio by the p1p2 vector to the previous one. More... | |
PosArray (const Pos3d &p1, const Pos3d &p2, const size_t &ndiv) | |
Build the point matrix between p1 and p2 in such way that, the firs point is p1, the last one is p2 and the intermediate points result from dividing the segment p1p2 in ndiv equal parts. More... | |
PosArray (const Pos3d &p1, const Pos3d &p2, const std::vector< GEOM_FT > &longs) | |
Build the point matrix between p1 and p2 in such way that, the firs point is p1 the last one is p2, the number of points is longs.size()+1 and the lengths of interior segments are proportional to those in longs. More... | |
PosArray (const Pos3d &p0, const Pos3d &p1, const Pos3d &p2, const size_t &ndiv1, const size_t &ndiv2) | |
Constructor. | |
PosArray (const PosArray &l1_points, const PosArray &l2_points, const PosArray &l3_points, const PosArray &l4_points) | |
PosArray< Pos3d > | getBox (size_t f1, size_t c1, size_t f2, size_t c2) const |
PosArray< Pos3d > | getRow (size_t iRow) const |
PosArray< Pos3d > | getColumn (size_t col) const |
![]() | |
TMatrix (size_t rows=1, size_t n_columns=1) | |
Constructor por defecto. | |
TMatrix (size_t n_rows, size_t n_columns, Pos3d val) | |
Constructor. | |
TMatrix (const size_t &n_rows, const size_t &n_columns, InputIterator b, InputIterator e) | |
Constructor con lista inicialización. | |
TMatrix (const TMatrix< Pos3d, std::vector< Pos3d > > &) | |
Constructor de copia. | |
TMatrix< Pos3d, std::vector< Pos3d > > & | operator= (const TMatrix< Pos3d, std::vector< Pos3d > > &m) |
Assignment operator. | |
TMatrix< Pos3d, std::vector< Pos3d > > & | operator= (const Pos3d &n) |
virtual bool | operator== (const TMatrix< Pos3d, std::vector< Pos3d > > &) const |
Comparison operator. | |
void | resize (size_t n_rows, size_t n_columns, Pos3d val) |
Assignment operator. | |
size_t | size (void) const |
const std::vector< Pos3d > & | getVector (void) const |
const_reference | front () const |
reference | front () |
const_reference | back () const |
reference | back () |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
TMatrix< Pos3d, std::vector< Pos3d > > & | Con (const Pos3d &t) |
virtual reference | operator() (size_t iRow=1, size_t col=1) |
virtual const_reference | operator() (size_t iRow=1, size_t col=1) const |
virtual reference | at (size_t iRow=1, size_t col=1) |
virtual const_reference | at (size_t iRow=1, size_t col=1) const |
void | assign (size_t row, size_t col, const Pos3d &value) |
Put the box int the position (f,c) of this matrix. | |
void | swap (size_t f1, size_t c1, size_t f2, size_t c2) |
TMatrix< Pos3d, std::vector< Pos3d > > & | Trn (void) |
TMatrix< Pos3d, std::vector< Pos3d > > | GetTrn (void) const |
TMatrix< Pos3d, std::vector< Pos3d > > | getBox (size_t f1, size_t c1, size_t f2, size_t c2) const |
box_const_ref | GetBoxConstRef (size_t f1, size_t c1, size_t f2, size_t c2) const |
box_const_ref | GetBoxConstRef (const RangoIndice &row_range, const RangoIndice &column_range) const |
box_const_ref | GetBoxConstRef (size_t f=1, size_t c=1) const |
TMatrix< Pos3d, std::vector< Pos3d > > | getRow (size_t iRow) const |
row_const_ref | getRowConstRef (size_t f, size_t c1, size_t c2) const |
row_const_ref | getRowConstRef (size_t f, const RangoIndice &column_range) const |
row_const_ref | getRowConstRef (size_t f=1, size_t c=1) const |
const_ref_col | getColumnConstRef (size_t c, size_t f1, size_t f2) const |
const_ref_col | getColumnConstRef (const RangoIndice &row_range, size_t c) const |
const_ref_col | getColumnConstRef (size_t c=1, size_t f=1) const |
TMatrix< Pos3d, std::vector< Pos3d > > | getColumn (size_t col) const |
TMatrix< Pos3d, std::vector< Pos3d > > | GetMenor (size_t f, size_t c) const |
Return the minor of the matrix that corresponds to the row and the column arguments. More... | |
void | putBox (size_t f, size_t c, const TMatrix< Pos3d, std::vector< Pos3d > > &) |
Put the box int the position (f,c) of this matrix. | |
void | putRow (size_t iRow, const TMatrix< Pos3d, std::vector< Pos3d > > &f) |
void | PutCol (size_t col, const TMatrix< Pos3d, std::vector< Pos3d > > &c) |
void | OrlaCol (const TMatrix< Pos3d, std::vector< Pos3d > > &c) |
void | decorateRow (const TMatrix< Pos3d, std::vector< Pos3d > > &f) |
void | swapRows (size_t f1, size_t f2) |
void | swapColumns (size_t c1, size_t c2) |
virtual void | Print (std::ostream &) const |
virtual void | Input (std::istream &) |
Lectura desde istream. | |
virtual void | Input (const std::string &) |
Lectura desde string. | |
![]() | |
ProtoMatrix (size_t n_rows=1, size_t n_columns=1) | |
ProtoMatrix (const ProtoMatrix &other) | |
ProtoMatrix & | operator= (const ProtoMatrix &m) |
virtual bool | operator== (const ProtoMatrix &other) const |
virtual void | resize (size_t n_rows, size_t n_columns) |
virtual size_t | Tam (void) |
size_t | getNumberOfRows (void) const |
size_t | getNumberOfColumns (void) const |
bool | CheckIndices (const size_t &f, const size_t &c) const |
bool | interior (const size_t &i, const size_t &j) const |
Return true if the indices correspond to a component. | |
int | Cuadrada (void) const |
bool | isRow (void) const |
bool | isColumn (void) const |
Friends | |
class | Pos3dArray3d |
Additional Inherited Members | |
![]() | |
typedef TMatrix< Pos3d, std::vector< Pos3d > > | m_pos |
typedef Pos3d ::vector | vector |
![]() | |
typedef std::list< Pos3d > | lst_T |
typedef std::vector< Pos3d > ::iterator | iterator |
typedef std::vector< Pos3d > ::const_iterator | const_iterator |
typedef std::vector< Pos3d > ::value_type | value_type |
typedef std::vector< Pos3d > ::reference | reference |
typedef std::vector< Pos3d > ::const_reference | const_reference |
typedef BoxConstRef< TMatrix< Pos3d, std::vector< Pos3d > > > | box_const_ref |
typedef RowConstRef< TMatrix< Pos3d, std::vector< Pos3d > > > | row_const_ref |
typedef ColumnConstRef< TMatrix< Pos3d, std::vector< Pos3d > > > | const_ref_col |
![]() | |
PosArray (const PosArray< Pos3d > &mp, size_t &f1, size_t &c1, size_t &f2, size_t &c2) | |
![]() | |
virtual size_t | Indice (const size_t &iRow, const size_t &iCol) const |
bool | equal_to (const TMatrix< Pos3d, std::vector< Pos3d > > &m2) const |
TMatrix (const TMatrix< Pos3d, std::vector< Pos3d > > &orig, size_t f1, size_t c1, size_t f2, size_t c2) | |
![]() | |
void | PutDim (size_t nRows, size_t nCols) |
void | inic (size_t n_rows, size_t n_columns) |
virtual bool | check_range (const size_t &iRow, const size_t &col) const |
void | check_put_box (size_t f, size_t c, const ProtoMatrix &box) const |
void | check_get_box (size_t f1, size_t c1, size_t f2, size_t c2) const |
void | check_sto_sum (const ProtoMatrix &m) const |
void | check_sto_dif (const ProtoMatrix &m) const |
void | check_traza (void) const |
![]() | |
size_t | n_rows |
size_t | n_columns |
Array of positions in a three-dimensional space.
Triangle3d Pos3dArray::getTriangle1 | ( | const size_t & | i, |
const size_t & | j | ||
) | const |
Return the triangle inscribed in the cell of the mesh the has the (i,j) vertex as lower left corner and remains under the diagonal between the (i,j) and the (i+1,j+1) vertices.
Triangle3d Pos3dArray::getTriangle2 | ( | const size_t & | i, |
const size_t & | j | ||
) | const |
Return the triangle inscribed in the cell of the mesh the has the (i,j) vertex as lower left corner and remains over the diagonal between the (i,j) and the (i+1,j+1) vertices.
GEOM_FT Pos3dArray::Lagrange | ( | const GEOM_FT & | tol | ) |
Set the interior points of the mesh corresponding to the Lagrange interpolation (see page IX-19 of the SAP90 manual).