LORENE
|
Spherical orthonormal vectorial bases (triads). More...
#include <base_vect.h>
Public Member Functions | |
Base_vect_spher (double xa0, double ya0, double za0, double rot_phi_i) | |
Standard constructor. More... | |
Base_vect_spher (double xa0, double ya0, double za0, double rot_phi_i, const char *name_i) | |
Standard constructor with name. More... | |
Base_vect_spher (const Base_vect_spher &) | |
Copy constructor. More... | |
virtual | ~Base_vect_spher () |
Destructor. More... | |
void | operator= (const Base_vect_spher &) |
Assignment to another Base_vect_spher . More... | |
void | set_ori (double xa0, double ya0, double za0) |
Sets a new origin. More... | |
void | set_rot_phi (double rot_phi_i) |
Sets a new value to the angle rot_phi between the x –axis and the absolute frame X –axis. More... | |
virtual bool | operator== (const Base_vect &) const |
Comparison operator (egality) More... | |
virtual void | change_basis (Tenseur &) const |
Change the basis in which the components of a tensor are expressed. More... | |
virtual int | identify () const |
Returns a number to identify the sub-classe of Base_vect the object belongs to. More... | |
virtual void | sauve (FILE *) const |
Save in a file. More... | |
void | set_name (const char *name_i) |
Sets the basis name. More... | |
const char * | get_name () const |
Returns the basis name. More... | |
bool | operator!= (const Base_vect &) const |
Comparison operator (difference) More... | |
Static Public Member Functions | |
static Base_vect * | bvect_from_file (FILE *) |
Construction of a vectorial basis from a file (see sauve(FILE* ) ). More... | |
Protected Member Functions | |
Base_vect_spher (FILE *) | |
Constructor from a file. More... | |
virtual ostream & | operator>> (ostream &) const |
Operator >> More... | |
Protected Attributes | |
char | name [100] |
Name of the basis. More... | |
Private Attributes | |
double | ori_x |
Absolute coordinate X of the origin. More... | |
double | ori_y |
Absolute coordinate Y of the origin. More... | |
double | ori_z |
Absolute coordinate Z of the origin. More... | |
double | rot_phi |
Angle between the x –axis and the absolute frame X –axis. More... | |
Friends | |
Base_vect * | Base_vect::bvect_from_file (FILE *) |
The construction function from a file. More... | |
Lorene::Base_vect_spher::Base_vect_spher | ( | double | xa0, |
double | ya0, | ||
double | za0, | ||
double | rot_phi_i | ||
) |
Standard constructor.
Definition at line 106 of file base_vect_spher.C.
Lorene::Base_vect_spher::Base_vect_spher | ( | double | xa0, |
double | ya0, | ||
double | za0, | ||
double | rot_phi_i, | ||
const char * | name_i | ||
) |
Standard constructor with name.
Definition at line 119 of file base_vect_spher.C.
Lorene::Base_vect_spher::Base_vect_spher | ( | const Base_vect_spher & | bi | ) |
Copy constructor.
Definition at line 129 of file base_vect_spher.C.
|
explicitprotected |
Constructor from a file.
This constructor is protected because any Base_vect_spher
construction from a file must be done via the function Base_vect::bvect_from_file
.
Definition at line 138 of file base_vect_spher.C.
References Lorene::fread_be(), ori_x, ori_y, ori_z, and rot_phi.
|
virtual |
Destructor.
Definition at line 153 of file base_vect_spher.C.
|
staticinherited |
Construction of a vectorial basis from a file (see sauve(FILE* )
).
Definition at line 87 of file base_vect_from_file.C.
References Lorene::fread_be().
|
virtual |
Change the basis in which the components of a tensor are expressed.
Implements Lorene::Base_vect.
Definition at line 279 of file base_vect_spher.C.
References Lorene::Tenseur::get_etat().
|
inherited |
Returns the basis name.
Definition at line 143 of file base_vect.C.
References Lorene::Base_vect::name.
|
virtual |
Returns a number to identify the sub-classe of Base_vect
the object belongs to.
Implements Lorene::Base_vect.
Definition at line 79 of file base_vect_from_file.C.
|
inherited |
Comparison operator (difference)
Definition at line 177 of file base_vect.C.
void Lorene::Base_vect_spher::operator= | ( | const Base_vect_spher & | bi | ) |
Assignment to another Base_vect_spher
.
Definition at line 165 of file base_vect_spher.C.
References Lorene::Base_vect::name, ori_x, ori_y, ori_z, rot_phi, and Lorene::Base_vect::set_name().
|
virtual |
Comparison operator (egality)
Implements Lorene::Base_vect.
Definition at line 198 of file base_vect_spher.C.
References Lorene::Base_vect::identify(), identify(), ori_x, ori_y, ori_z, and rot_phi.
|
protectedvirtual |
|
virtual |
Save in a file.
Reimplemented from Lorene::Base_vect.
Definition at line 249 of file base_vect_spher.C.
References Lorene::fwrite_be(), ori_x, ori_y, ori_z, rot_phi, and Lorene::Base_vect::sauve().
|
inherited |
Sets the basis name.
Definition at line 137 of file base_vect.C.
References Lorene::Base_vect::name.
void Lorene::Base_vect_spher::set_ori | ( | double | xa0, |
double | ya0, | ||
double | za0 | ||
) |
Sets a new origin.
Definition at line 178 of file base_vect_spher.C.
void Lorene::Base_vect_spher::set_rot_phi | ( | double | rot_phi_i | ) |
Sets a new value to the angle rot_phi
between the x –axis and the absolute frame X –axis.
Definition at line 187 of file base_vect_spher.C.
References rot_phi.
|
friend |
The construction function from a file.
|
protectedinherited |
Name of the basis.
Definition at line 110 of file base_vect.h.
|
private |
Absolute coordinate X of the origin.
Definition at line 313 of file base_vect.h.
|
private |
Absolute coordinate Y of the origin.
Definition at line 314 of file base_vect.h.
|
private |
Absolute coordinate Z of the origin.
Definition at line 315 of file base_vect.h.
|
private |
Angle between the x –axis and the absolute frame X –axis.
Definition at line 318 of file base_vect.h.