30 #ifndef __BASE_VECT_H_ 31 #define __BASE_VECT_H_ 161 virtual void sauve(FILE* )
const ;
167 virtual ostream&
operator>>(ostream &)
const = 0 ;
189 ostream& operator<<(ostream& ,
const Base_vect& ) ;
291 virtual void sauve(FILE* )
const ;
294 virtual ostream&
operator>>(ostream &)
const ;
331 double rot_phi_i,
const char* name_i) ;
357 void set_ori(
double xa0,
double ya0,
double za0) ;
383 virtual void sauve(FILE* )
const ;
386 virtual ostream&
operator>>(ostream &)
const ;
double rot_phi
Angle between the x –axis and the absolute frame X –axis.
double ori_y
Absolute coordinate Y of the origin.
void set_ori(double xa0, double ya0, double za0)
Sets a new origin.
void operator=(const Base_vect_spher &)
Assignment to another Base_vect_spher.
int get_align() const
Returns the indicator of alignment with respect to the absolute frame.
virtual ~Base_vect_cart()
Destructor.
Base_vect_spher(double xa0, double ya0, double za0, double rot_phi_i)
Standard constructor.
virtual ~Base_vect()
Destructor.
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...
double rot_phi
Angle between the x –axis and the absolute frame X –axis.
bool operator!=(const Base_vect &) const
Comparison operator (difference)
int align
Indicator of alignment with respect to the absolute frame: \ align = 1 : basis aligned with the absol...
virtual void sauve(FILE *) const
Save in a file.
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...
Vectorial bases (triads) with respect to which the tensorial components are defined.
virtual void change_basis(Tenseur &) const =0
Change the basis in which the components of a tensor are expressed.
static Base_vect * bvect_from_file(FILE *)
Construction of a vectorial basis from a file (see sauve(FILE* ) ).
const char * get_name() const
Returns the basis name.
void operator=(const Base_vect &)
Assignement operator (not implemented).
virtual void change_basis(Tenseur &) const
Change the basis in which the components of a tensor are expressed.
friend ostream & operator<<(ostream &, const Base_vect &)
Display.
virtual bool operator==(const Base_vect &) const
Comparison operator (egality)
virtual ostream & operator>>(ostream &) const =0
Operator >>
virtual void sauve(FILE *) const
Save in a file.
virtual ostream & operator>>(ostream &) const
Operator >>
virtual int identify() const =0
Returns a number to identify the sub-classe of Base_vect the object belongs to.
Base_vect()
Standard constructor.
virtual void sauve(FILE *) const
Save in a file.
virtual bool operator==(const Base_vect &) const
Comparison operator (egality)
char name[100]
Name of the basis.
virtual bool operator==(const Base_vect &) const =0
Comparison operator (egality)
virtual int identify() const
Returns a number to identify the sub-classe of Base_vect the object belongs to.
Cartesian vectorial bases (triads).
Spherical orthonormal vectorial bases (triads).
Base_vect_cart(double rot_phi_i)
Standard constructor.
virtual ~Base_vect_spher()
Destructor.
virtual ostream & operator>>(ostream &) const
Operator >>
double ori_z
Absolute coordinate Z of the origin.
double ori_x
Absolute coordinate X of the origin.
virtual void change_basis(Tenseur &) const
Change the basis in which the components of a tensor are expressed.
void set_name(const char *name_i)
Sets the basis name.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
virtual int identify() const
Returns a number to identify the sub-classe of Base_vect the object belongs to.
void set_align()
Computes align from the value of rot_phi.
void operator=(const Base_vect_cart &)
Assignment to another Base_vect_cart.