26 #include "utility/geom/ProtoGeom.h"    51     Ref(
void): org(), trf() {}
    52     Ref(
const PGlobal &o, 
const SC &sc=SC())
    54     Ref(
const PGlobal &o,
const VGlobal &vX)
    56     Ref(
const PGlobal &o,
const DGlobal &dirX)
    57       : 
org(o), 
trf(dirX.GetVector()) {}
    58     Ref(
const PGlobal &o,
const PGlobal &p)
    63     const PGlobal &Org(
void)
 const    65     void setOrg(
const PGlobal &p)
    67     void move(
const VGlobal &v)
    71     const SC &
Trf(
void)
 const    73     void setTrf(
const SC &t)
    75     VGlobal getAxisVDir(
const size_t &i)
 const    76       { 
return trf.getAxisVDir(i); }
    81     friend std::ostream &operator<<(std::ostream &os,const Ref<SC> &r)
    83         os << 
"origen= " << r.org << 
" transformación= " << r.trf;
    88     boost::python::dict 
getPyDict(
void) 
const;
    89     void setPyDict(
const boost::python::dict &);
   107   { 
return trf.getGlobalCoordinates(v); }
   123   { 
return trf.getLocalCoordinates(v); }
   156     const boost::python::dict orgDict= boost::python::extract<boost::python::dict>(d[
"org"]);
   157     org.setPyDict(orgDict);
   158     const boost::python::dict trfDict= boost::python::extract<boost::python::dict>(d[
"trf"]);
   159     trf.setPyDict(trfDict);
 SC::DGlobal DGlobal
Dimension of the global direction. 
Definition: Ref.h:41
Base class for coordinate transformation. 
Definition: Trf.h:36
SC trf
local –> global coordinate system axis transformation. 
Definition: Ref.h:48
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values. 
Definition: Ref.h:143
PLocal getLocalPosition(const PGlobal &p) const
Return the position of the point p (expressed in global coordinates) expresssed in local coordinates...
Definition: Ref.h:112
VGlobal getGlobalCoordinates(const VLocal &v) const
Return the local coordinates of the vector. 
Definition: Ref.h:106
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values. 
Definition: ProtoGeom.cc:40
SC::VGlobal VGlobal
Dimension of the global vector. 
Definition: Ref.h:40
SC::PLocal PLocal
Dimension of the local point. 
Definition: Ref.h:44
Base class for geometry objects. 
Definition: ProtoGeom.h:33
PGlobal getGlobalPosition(const PLocal &p) const
Return the global coordinates of the position vector of the point. 
Definition: Ref.h:96
virtual bool operator==(const EntityWithOwner &) const
Comparison operator. 
Definition: EntityWithOwner.cc:86
VLocal getLocalCoordinates(const VGlobal &v) const
Return the local coordinates of the vector. 
Definition: Ref.h:122
Base class for reference systems. 
Definition: Ref.h:37
PGlobal org
Origin of the coordinate system. 
Definition: Ref.h:47
SC::VLocal VLocal
Dimension of the local vector. 
Definition: Ref.h:43
SC::PGlobal PGlobal
Dimension of the global point. 
Definition: Ref.h:42
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary. 
Definition: Ref.h:153
virtual bool operator==(const Ref &) const
Comparison operator. 
Definition: Ref.h:127
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary. 
Definition: ProtoGeom.cc:48