xc
Public Member Functions | Friends | List of all members
Pos2dArray Class Reference

Array of positions in a two-dimensional space. More...

#include <Pos2dArray.h>

Inheritance diagram for Pos2dArray:
Inheritance graph
[legend]
Collaboration diagram for Pos2dArray:
Collaboration graph
[legend]

Public Member Functions

 Pos2dArray (const size_t &f=1, const size_t &c=1, const Pos2d &p=Pos2d())
 
 Pos2dArray (const Pos2d &p1, const Pos2d &p2, const size_t &num, const GEOM_FT &ratio)
 Ver el constructor correspondiente en PosArray<POS>.
 
 Pos2dArray (const Pos2d &p1, const Pos2d &p2, const size_t &ndiv)
 Ver el constructor correspondiente en PosArray<POS>.
 
 Pos2dArray (const Pos2d &p1, const Pos2d &p2, const std::vector< GEOM_FT > &longs)
 Ver el constructor correspondiente en PosArray<POS>.
 
 Pos2dArray (const Pos2d &p0, const Pos2d &p1, const Pos2d &p2, const size_t &ndiv1, const size_t &ndiv2)
 Constructor.
 
 Pos2dArray (const Pos2dArray &, const Pos2dArray &, const Pos2dArray &, const Pos2dArray &)
 Constructor.
 
size_t GetNumQuads (void) const
 Return the number of quadrilaterals in the grid.
 
GEOM_FT GetMax (unsigned short int i) const
 Return the maximum value of the k coordinate.
 
GEOM_FT GetMin (unsigned short int i) const
 Return the minimum value of the k coordinate.
 
GEOM_FT getIx (void) const
 Return el moment of inertia with respect to axis parallel to x por el origen.
 
GEOM_FT getIy (void) const
 Return the moment of inertia with respect to the axis which is parallel to the y axis through the origin. More...
 
GEOM_FT GetPxy (void) const
 Return el product of inertia with respect to the axis that pass through the origin. More...
 
GEOM_FT Ix (void) const
 Moment of inertia with respect to axis parallel to x through the center of mass.
 
GEOM_FT Iy (void) const
 Moment of inertia with respect to the center of mass in local coordinates.
 
GEOM_FT Pxy (void) const
 product of inertia with respect to the center of mass in local coordinates.
 
Pos2d getCenter (void) const
 Return the position of the midpoint.
 
Pos2d getCenterOfMass (void) const
 Return the center of mass.
 
GEOM_FT GetArea (void) const
 
Triangle2d 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...
 
Triangle2d 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 GetX (const size_t &, const size_t &) const
 Return the x coordinate of point i,j.
 
GEOM_FT GetY (const size_t &, const size_t &) const
 Return the y coordinate of point i,j.
 
const FT_matrixGetVertCoords (const size_t &, const size_t &) const
 Return the coordinates of the i,j point.
 
Pos2d getPoint (const size_t &, const size_t &) const
 Return the point i,j.
 
Quadrilateral2d GetQuad (const size_t &i, const size_t &j) const
 Return the i,j quadrilateral:
 
double GetAreaQuad (const size_t &i, const size_t &j) const
 Return the area of the quad at i,j:
 
Pos2d getQuadCentroid (const size_t &i, const size_t &j) const
 Return the centroid of the quad at i,j:
 
std::vector< Pos2dgetQuadCentroids (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.
 
bool In (const Pos2d &, const double &) const
 
void Transform (const Trf2d &trf2d)
 Applies the transformation to the points.
 
GEOM_FT Lagrange (const GEOM_FT &tol)
 Set the interior points of the mesh corresponding to Lagrange interpolation (see page IX-19 from SAP90 manual). More...
 
- Public Member Functions inherited from PosArray< Pos2d >
 PosArray (const size_t &f=1, const size_t &c=1, const Pos2d &p=Pos2d())
 
 PosArray (const Pos2d &p1, const Pos2d &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 Pos2d &p1, const Pos2d &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 Pos2d &p1, const Pos2d &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 Pos2d &p0, const Pos2d &p1, const Pos2d &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< Pos2dgetBox (size_t f1, size_t c1, size_t f2, size_t c2) const
 
PosArray< Pos2dgetRow (size_t iRow) const
 
PosArray< Pos2dgetColumn (size_t col) const
 
- Public Member Functions inherited from TMatrix< Pos2d, std::vector< Pos2d > >
 TMatrix (size_t rows=1, size_t n_columns=1)
 Constructor por defecto.
 
 TMatrix (size_t n_rows, size_t n_columns, Pos2d 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< Pos2d, std::vector< Pos2d > > &)
 Constructor de copia.
 
TMatrix< Pos2d, std::vector< Pos2d > > & operator= (const TMatrix< Pos2d, std::vector< Pos2d > > &m)
 Assignment operator.
 
TMatrix< Pos2d, std::vector< Pos2d > > & operator= (const Pos2d &n)
 
virtual bool operator== (const TMatrix< Pos2d, std::vector< Pos2d > > &) const
 Comparison operator.
 
void resize (size_t n_rows, size_t n_columns, Pos2d val)
 Assignment operator.
 
size_t size (void) const
 
const std::vector< Pos2d > & 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< Pos2d, std::vector< Pos2d > > & Con (const Pos2d &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 Pos2d &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< Pos2d, std::vector< Pos2d > > & Trn (void)
 
TMatrix< Pos2d, std::vector< Pos2d > > GetTrn (void) const
 
TMatrix< Pos2d, std::vector< Pos2d > > 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< Pos2d, std::vector< Pos2d > > 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< Pos2d, std::vector< Pos2d > > getColumn (size_t col) const
 
TMatrix< Pos2d, std::vector< Pos2d > > 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< Pos2d, std::vector< Pos2d > > &)
 Put the box int the position (f,c) of this matrix.
 
void putRow (size_t iRow, const TMatrix< Pos2d, std::vector< Pos2d > > &f)
 
void PutCol (size_t col, const TMatrix< Pos2d, std::vector< Pos2d > > &c)
 
void OrlaCol (const TMatrix< Pos2d, std::vector< Pos2d > > &c)
 
void decorateRow (const TMatrix< Pos2d, std::vector< Pos2d > > &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.
 
- Public Member Functions inherited from ProtoMatrix
 ProtoMatrix (size_t n_rows=1, size_t n_columns=1)
 
 ProtoMatrix (const ProtoMatrix &other)
 
ProtoMatrixoperator= (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 Pos2dArray3d
 

Additional Inherited Members

- Public Types inherited from PosArray< Pos2d >
typedef TMatrix< Pos2d, std::vector< Pos2d > > m_pos
 
typedef Pos2d ::vector vector
 
- Public Types inherited from TMatrix< Pos2d, std::vector< Pos2d > >
typedef std::list< Pos2dlst_T
 
typedef std::vector< Pos2d > ::iterator iterator
 
typedef std::vector< Pos2d > ::const_iterator const_iterator
 
typedef std::vector< Pos2d > ::value_type value_type
 
typedef std::vector< Pos2d > ::reference reference
 
typedef std::vector< Pos2d > ::const_reference const_reference
 
typedef BoxConstRef< TMatrix< Pos2d, std::vector< Pos2d > > > box_const_ref
 
typedef RowConstRef< TMatrix< Pos2d, std::vector< Pos2d > > > row_const_ref
 
typedef ColumnConstRef< TMatrix< Pos2d, std::vector< Pos2d > > > const_ref_col
 
- Protected Member Functions inherited from PosArray< Pos2d >
 PosArray (const PosArray< Pos2d > &mp, size_t &f1, size_t &c1, size_t &f2, size_t &c2)
 
- Protected Member Functions inherited from TMatrix< Pos2d, std::vector< Pos2d > >
virtual size_t Indice (const size_t &iRow, const size_t &iCol) const
 
bool equal_to (const TMatrix< Pos2d, std::vector< Pos2d > > &m2) const
 
 TMatrix (const TMatrix< Pos2d, std::vector< Pos2d > > &orig, size_t f1, size_t c1, size_t f2, size_t c2)
 
- Protected Member Functions inherited from ProtoMatrix
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
 
- Protected Attributes inherited from ProtoMatrix
size_t n_rows
 
size_t n_columns
 

Detailed Description

Array of positions in a two-dimensional space.

Member Function Documentation

◆ getIy()

GEOM_FT Pos2dArray::getIy ( void  ) const

Return the moment of inertia with respect to the axis which is parallel to the y axis through the origin.

◆ GetPxy()

GEOM_FT Pos2dArray::GetPxy ( void  ) const

Return el product of inertia with respect to the axis that pass through the origin.

◆ getTriangle1()

Triangle2d Pos2dArray::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.

◆ getTriangle2()

Triangle2d Pos2dArray::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.

◆ Lagrange()

GEOM_FT Pos2dArray::Lagrange ( const GEOM_FT &  tol)

Set the interior points of the mesh corresponding to Lagrange interpolation (see page IX-19 from SAP90 manual).


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