Base_vect_spher Class Reference
[Tensorial fields]

Spherical orthonormal vectorial bases (triads). More...

#include <base_vect.h>

Inheritance diagram for Base_vect_spher:
Base_vect

List of all members.

Public Member Functions

 Base_vect_spher (double xa0, double ya0, double za0, double rot_phi_i)
 Standard constructor.
 Base_vect_spher (double xa0, double ya0, double za0, double rot_phi_i, const char *name_i)
 Standard constructor with name.
 Base_vect_spher (const Base_vect_spher &)
 Copy constructor.
virtual ~Base_vect_spher ()
 Destructor.
void operator= (const Base_vect_spher &)
 Assignment to another Base_vect_spher.
void set_ori (double xa0, double ya0, double za0)
 Sets a new origin.
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.
virtual bool operator== (const Base_vect &) const
 Comparison operator (egality).
virtual void change_basis (Tenseur &) const
 Change the basis in which the components of a tensor are expressed.
virtual int identify () const
 Returns a number to identify the sub-classe of Base_vect the object belongs to.
virtual void sauve (FILE *) const
 Save in a file.
void set_name (const char *name_i)
 Sets the basis name.
const char * get_name () const
 Returns the basis name.
virtual bool operator== (const Base_vect &) const =0
 Comparison operator (egality).
bool operator!= (const Base_vect &) const
 Comparison operator (difference).

Static Public Member Functions

static Base_vectbvect_from_file (FILE *)
 Construction of a vectorial basis from a file (see sauve(FILE* ) ).

Protected Member Functions

 Base_vect_spher (FILE *)
 Constructor from a file.
virtual ostream & operator>> (ostream &) const
 Operator >>.

Protected Attributes

char name [100]
 Name of the basis.

Private Attributes

double ori_x
 Absolute coordinate X of the origin.
double ori_y
 Absolute coordinate Y of the origin.
double ori_z
 Absolute coordinate Z of the origin.
double rot_phi
 Angle between the x --axis and the absolute frame X --axis.

Friends

Base_vectBase_vect::bvect_from_file (FILE *)
 The construction function from a file.
ostream & operator<< (ostream &, const Base_vect &)
 Display.

Detailed Description

Spherical orthonormal vectorial bases (triads).

()

Definition at line 304 of file base_vect.h.


Constructor & Destructor Documentation

Base_vect_spher::Base_vect_spher ( double  xa0,
double  ya0,
double  za0,
double  rot_phi_i 
)

Standard constructor.

Definition at line 99 of file base_vect_spher.C.

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 112 of file base_vect_spher.C.

Base_vect_spher::Base_vect_spher ( const Base_vect_spher bi  ) 

Copy constructor.

Definition at line 122 of file base_vect_spher.C.

Base_vect_spher::Base_vect_spher ( FILE *  fich  )  [explicit, protected]

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 131 of file base_vect_spher.C.

References fread_be(), ori_x, ori_y, ori_z, and rot_phi.

Base_vect_spher::~Base_vect_spher (  )  [virtual]

Destructor.

Definition at line 146 of file base_vect_spher.C.


Member Function Documentation

Base_vect * Base_vect::bvect_from_file ( FILE *  fich  )  [static, inherited]

Construction of a vectorial basis from a file (see sauve(FILE* ) ).

Definition at line 80 of file base_vect_from_file.C.

References fread_be().

void Base_vect_spher::change_basis ( Tenseur ti  )  const [virtual]
const char * Base_vect::get_name (  )  const [inherited]

Returns the basis name.

Definition at line 136 of file base_vect.C.

References Base_vect::name.

int Base_vect_spher::identify (  )  const [virtual]

Returns a number to identify the sub-classe of Base_vect the object belongs to.

Implements Base_vect.

Definition at line 72 of file base_vect_from_file.C.

bool Base_vect::operator!= ( const Base_vect bi  )  const [inherited]

Comparison operator (difference).

Definition at line 170 of file base_vect.C.

void Base_vect_spher::operator= ( const Base_vect_spher bi  ) 

Assignment to another Base_vect_spher.

Reimplemented from Base_vect.

Definition at line 158 of file base_vect_spher.C.

References Base_vect::name, ori_x, ori_y, ori_z, rot_phi, and Base_vect::set_name().

virtual bool Base_vect::operator== ( const Base_vect  )  const [pure virtual, inherited]

Comparison operator (egality).

bool Base_vect_spher::operator== ( const Base_vect bi  )  const [virtual]

Comparison operator (egality).

Definition at line 191 of file base_vect_spher.C.

References identify(), Base_vect::identify(), ori_x, ori_y, ori_z, and rot_phi.

ostream & Base_vect_spher::operator>> ( ostream &  ost  )  const [protected, virtual]

Operator >>.

Implements Base_vect.

Definition at line 253 of file base_vect_spher.C.

References ori_x, ori_y, ori_z, and rot_phi.

void Base_vect_spher::sauve ( FILE *  fich  )  const [virtual]

Save in a file.

Reimplemented from Base_vect.

Definition at line 242 of file base_vect_spher.C.

References fwrite_be(), ori_x, ori_y, ori_z, and rot_phi.

void Base_vect::set_name ( const char *  name_i  )  [inherited]

Sets the basis name.

Definition at line 130 of file base_vect.C.

References Base_vect::name.

void Base_vect_spher::set_ori ( double  xa0,
double  ya0,
double  za0 
)

Sets a new origin.

Definition at line 171 of file base_vect_spher.C.

References ori_x, ori_y, and ori_z.

void 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 180 of file base_vect_spher.C.

References rot_phi.


Friends And Related Function Documentation

Base_vect* Base_vect::bvect_from_file ( FILE *   )  [friend]

The construction function from a file.

ostream& operator<< ( ostream &  ,
const Base_vect  
) [friend, inherited]

Display.


Member Data Documentation

char Base_vect::name[100] [protected, inherited]

Name of the basis.

Definition at line 106 of file base_vect.h.

double Base_vect_spher::ori_x [private]

Absolute coordinate X of the origin.

Definition at line 309 of file base_vect.h.

double Base_vect_spher::ori_y [private]

Absolute coordinate Y of the origin.

Definition at line 310 of file base_vect.h.

double Base_vect_spher::ori_z [private]

Absolute coordinate Z of the origin.

Definition at line 311 of file base_vect.h.

double Base_vect_spher::rot_phi [private]

Angle between the x --axis and the absolute frame X --axis.

Definition at line 314 of file base_vect.h.


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

Generated on 7 Oct 2014 for LORENE by  doxygen 1.6.1