xc
Public Member Functions | Protected Member Functions | Friends | List of all members
CooSys Class Referenceabstract

Coordinate systems base class. More...

#include <CooSys.h>

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

Public Member Functions

virtual bool operator== (const CooSys &other) const
 
bool operator!= (const CooSys &other)
 
virtual size_t numberOfAxis (void) const
 
bool EsNormal (void) const
 Return true if the vectors are normalized.
 
bool EsOrtogonal (void) const
 Return verdadero si los vectores son ortogonales.
 
bool EsOrtonormal (void) const
 Return verdadero si los vectores son unitarios y ortogonales.
 
bool EsDextrogiro (void) const
 Return true if it's a dextrorotatory coordinate system.
 
FT_matrix getRow (const size_t &i) const
 Return the matrix i row.
 
void putRow (const size_t &axis, const FT_matrix &v)
 Set the i row of the matrix.
 
virtual FT_matrix TransAGlobal (void) const
 Return the matrix que transforma un vector expresado en locales al mismo vector expresado en globales. More...
 
virtual FT_matrix TransDeGlobal (void) const
 Return the matrix que transforma un vector expresado en globales al mismo vector expresado en locales. More...
 
FT_matrix GetTransA (const CooSys &dest) const
 Return the transformation matrix from this system to the argument one. More...
 
FT_matrix getGlobalCoordinates (const FT_matrix &v) const
 Return the global coordinates of the vector. More...
 
FT_matrix getLocalCoordinates (const FT_matrix &v) const
 Return the local coordinates of the vector. More...
 
FT_matrix getLocalMatrix (const FT_matrix &) const
 Return the given matrix expressed in local coordinates.
 
FT_matrix getGlobalMatrix (const FT_matrix &) const
 Return the given matrix expressed in global coordinates.
 
boost::python::list getLocalMatrixPy (const boost::python::list &) const
 Return the given matrix expressed in local coordinates.
 
boost::python::list getGlobalMatrixPy (const boost::python::list &) const
 Return the given matrix expressed in global coordinates.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
virtual void Print (std::ostream &os) const
 Prints the matrix.
 
- Public Member Functions inherited from ProtoGeom
 ProtoGeom (void)
 False when solution is not possible: intersection of parallel planes. More...
 
void setExists (bool e)
 
bool exists (void) const
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 

Protected Member Functions

void identity (void)
 Aligns the coordinate system with the global one. More...
 
void put (const size_t &i, const size_t &j, const GEOM_FT &)
 Assigns the (i,j) component of the matrix.
 
void normalize (void)
 Row-normalize matrix.
 
void ortogonaliza (void)
 Make the base orthogonal.
 
void orthonormalize (void)
 Makes the base orthonormal.
 
 CooSys (const size_t &, const size_t &)
 Constructor.
 
 CooSys (const CooSys &other)
 
CooSysoperator= (const CooSys &other)
 
virtual CooSysCopia (void) const =0
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Protected Member Functions inherited from EntityWithProperties
bool isEqual (const EntityWithProperties &) const
 Return true if both objects are equal.
 
- Protected Member Functions inherited from EntityWithOwner
virtual bool isEqual (const EntityWithOwner &) const
 Return true if both objects are equal.
 

Friends

std::ostream & operator<< (std::ostream &os, const CooSys &sc)
 

Additional Inherited Members

- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

Coordinate systems base class.

Member Function Documentation

◆ getGlobalCoordinates()

FT_matrix CooSys::getGlobalCoordinates ( const FT_matrix v) const

Return the global coordinates of the vector.

Parameters
vvector in local coordinates.

◆ getLocalCoordinates()

FT_matrix CooSys::getLocalCoordinates ( const FT_matrix v) const

Return the local coordinates of the vector.

Parameters
vvector in global coordinates.

◆ GetTransA()

FT_matrix CooSys::GetTransA ( const CooSys dest) const

Return the transformation matrix from this system to the argument one.

◆ identity()

void CooSys::identity ( void  )
protected

Aligns the coordinate system with the global one.

i. e:

  • If it's a one-dimensional coordinate system it is placed on the first axis of the global coordinate system.
  • If it's a two-dimensional coordinate system it is placed on the first axis and second axis of the global coordinate system.
  • If it's a three-dimensional coordinate system we make it match the global one.

◆ TransAGlobal()

FT_matrix CooSys::TransAGlobal ( void  ) const
virtual

Return the matrix que transforma un vector expresado en locales al mismo vector expresado en globales.

◆ TransDeGlobal()

FT_matrix CooSys::TransDeGlobal ( void  ) const
virtual

Return the matrix que transforma un vector expresado en globales al mismo vector expresado en locales.


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