27 #include "../ProtoGeom.h" 28 #include "utility/geom/FT_matrix.h" 43 void put(
const size_t &i,
const size_t &j,
const GEOM_FT &);
47 CooSys(
const size_t &,
const size_t &);
56 virtual CooSys *Copia(
void)
const= 0;
58 inline virtual bool operator==(
const CooSys &other)
const 59 {
return (rot==other.rot); }
60 inline bool operator!=(
const CooSys &other)
61 {
return !(*
this==other); }
63 virtual size_t numberOfAxis(
void)
const 64 {
return rot.getNumberOfRows(); }
87 boost::python::dict
getPyDict(
void)
const;
88 void setPyDict(
const boost::python::dict &);
89 virtual void Print(std::ostream &os)
const;
90 friend std::ostream &operator<<(std::ostream &os,
const CooSys &sc);
CooSys(const size_t &, const size_t &)
Constructor.
Definition: CooSys.cc:31
void putRow(const size_t &axis, const FT_matrix &v)
Set the i row of the matrix.
Definition: CooSys.cc:163
EntityWithOwner & operator=(const EntityWithOwner &)
Assignment operator.
Definition: EntityWithOwner.cc:53
bool EsNormal(void) const
Return true if the vectors are normalized.
Definition: CooSys.cc:106
virtual FT_matrix TransAGlobal(void) const
Return the matrix que transforma un vector expresado en locales al mismo vector expresado en globales...
Definition: CooSys.cc:167
FT_matrix getRow(const size_t &i) const
Return the matrix i row.
Definition: CooSys.cc:100
void put(const size_t &i, const size_t &j, const GEOM_FT &)
Assigns the (i,j) component of the matrix.
Definition: CooSys.cc:96
void identity(void)
Aligns the coordinate system with the global one.
Definition: CooSys.cc:89
bool EsOrtonormal(void) const
Return verdadero si los vectores son unitarios y ortogonales.
Definition: CooSys.cc:159
ProtoGeom(void)
False when solution is not possible: intersection of parallel planes.
Definition: ProtoGeom.cc:33
bool EsDextrogiro(void) const
Return true if it's a dextrorotatory coordinate system.
Definition: CooSys.cc:119
virtual FT_matrix TransDeGlobal(void) const
Return the matrix que transforma un vector expresado en globales al mismo vector expresado en locales...
Definition: CooSys.cc:172
FT_matrix getLocalCoordinates(const FT_matrix &v) const
Return the local coordinates of the vector.
Definition: CooSys.cc:189
Base class for geometry objects.
Definition: ProtoGeom.h:33
void orthonormalize(void)
Makes the base orthonormal.
Definition: CooSys.cc:76
void ortogonaliza(void)
Make the base orthogonal.
Definition: CooSys.cc:45
virtual void Print(std::ostream &os) const
Prints the matrix.
Definition: CooSys.cc:223
FT_matrix GetTransA(const CooSys &dest) const
Return the transformation matrix from this system to the argument one.
Definition: CooSys.cc:177
boost::python::list getGlobalMatrixPy(const boost::python::list &) const
Return the given matrix expressed in global coordinates.
Definition: CooSys.cc:216
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: CooSys.cc:227
void normalize(void)
Row-normalize matrix.
Definition: CooSys.cc:36
FT_matrix getLocalMatrix(const FT_matrix &) const
Return the given matrix expressed in local coordinates.
Definition: CooSys.cc:193
Matrix which components are GEOM_FT numbers.
Definition: FT_matrix.h:40
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: CooSys.cc:240
Coordinate systems base class.
Definition: CooSys.h:38
FT_matrix getGlobalMatrix(const FT_matrix &) const
Return the given matrix expressed in global coordinates.
Definition: CooSys.cc:201
bool EsOrtogonal(void) const
Return verdadero si los vectores son ortogonales.
Definition: CooSys.cc:138
FT_matrix getGlobalCoordinates(const FT_matrix &v) const
Return the global coordinates of the vector.
Definition: CooSys.cc:183
boost::python::list getLocalMatrixPy(const boost::python::list &) const
Return the given matrix expressed in local coordinates.
Definition: CooSys.cc:209