xc
Public Types | Public Member Functions | Protected Member Functions | List of all members
Xd2dCooSys Class Reference

Coordinate system of dimension X defined in a two-dimensional space. More...

#include <Xd2dCooSys.h>

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

Public Types

typedef Vector2d VGlobal
 Vector in the 2D space.
 
typedef Dir2d DGlobal
 Direction in the 2D space.
 
typedef Pos2d PGlobal
 Point the 2D space.
 
- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 

Public Member Functions

virtual VGlobal getAxisVDir (const size_t &axis) const
 Return the direction vector of the axis being passed as parameter.
 
virtual DGlobal getAxisDir (const size_t &axis) const
 
VGlobal getGlobalCoordinates (const FT_matrix &v) const
 Return the global coordinates of the vector. More...
 
FT_matrix getLocalCoordinates (const VGlobal &v) const
 Return the local coordinates of the vector. More...
 
- Public Member Functions inherited from CooSys
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

 Xd2dCooSys (const size_t &)
 Define a coordinate system of dimension ne in a two-dimensional space. More...
 
 Xd2dCooSys (const size_t &, const VGlobal &)
 Define a coordinate system of dimension ne in a two-dimensional space. More...
 
 Xd2dCooSys (const size_t &, const PGlobal &, const PGlobal &)
 Define a coordinate system of dimension ne in a two-dimensional space. More...
 
void putRow (const size_t &axis, const VGlobal &v)
 
void XAxisVector (const VGlobal &vX)
 Hace que el vector básico 1 tenga la dirección y sentido del being passed as parameter. More...
 
- Protected Member Functions inherited from CooSys
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.
 

Additional Inherited Members

- 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 system of dimension X defined in a two-dimensional space.

Constructor & Destructor Documentation

◆ Xd2dCooSys() [1/3]

Xd2dCooSys::Xd2dCooSys ( const size_t &  ne)
protected

Define a coordinate system of dimension ne in a two-dimensional space.

The axis are those of the global system.

◆ Xd2dCooSys() [2/3]

Xd2dCooSys::Xd2dCooSys ( const size_t &  ne,
const VGlobal vX 
)
protected

Define a coordinate system of dimension ne in a two-dimensional space.

See Xd2dCooSys::XAxisVector.

◆ Xd2dCooSys() [3/3]

Xd2dCooSys::Xd2dCooSys ( const size_t &  ne,
const PGlobal o,
const PGlobal p 
)
protected

Define a coordinate system of dimension ne in a two-dimensional space.

See Xd2dCooSys::XAxisVector.

Member Function Documentation

◆ getGlobalCoordinates()

Xd2dCooSys::VGlobal Xd2dCooSys::getGlobalCoordinates ( const FT_matrix v) const

Return the global coordinates of the vector.

Parameters
vLocal coordinates of the vector.

◆ getLocalCoordinates()

FT_matrix Xd2dCooSys::getLocalCoordinates ( const VGlobal v) const

Return the local coordinates of the vector.

Parameters
vGlobal coordinates of the vector.

◆ XAxisVector()

void Xd2dCooSys::XAxisVector ( const VGlobal vX)
protected

Hace que el vector básico 1 tenga la dirección y sentido del being passed as parameter.

If the system has dimension 2 the basic vector is normal to the first one in couterclockwise sense.


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