MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
mg_cg_forme_volume_sphere.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// mg_cg_forme_volume_sphere.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:55 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #ifndef _MG_CG_FORME_VOLUME_SPHERE_
23 #define _MG_CG_FORME_VOLUME_SPHERE_
24 
25 
26 
27 #include <map>
28 
29 #include "mg_cg_forme_volume.h"
30 
31 class MG_GEOMETRIE;
32 class MG_CG_MODELE;
33 class MG_CG_FORME;
34 class MG_VOLUME;
35 
37 {
38 public:
39 
40  MG_CG_FORME_VOLUME_SPHERE(MG_CG_MODELE* mgcg_modele,double centre_x,double centre_y,double centre_z,double rayon);
41  MG_CG_FORME_VOLUME_SPHERE(MG_CG_MODELE* mgcg_modele,int etat,unsigned long num,MG_VOLUME* mg_volume,double centre_x,double centre_y,double centre_z,double rayon);
44 
45  virtual int get_type_forme_volume(void);
46  virtual void change_centre_x(double x);
47  virtual double get_centre_x(void);
48  virtual void change_centre_y(double y);
49  virtual double get_centre_y(void);
50  virtual void change_centre_z(double z);
51  virtual double get_centre_z(void);
52  virtual void change_rayon(double rayon);
53  virtual double get_rayon(void);
54 
55  virtual void enregistrer(std::ostream& o,double version);
56  virtual int construire(void)=0;
57  virtual int construire(bool fusionner_entite_similaire,
58  double precision,
59  bool importer_triangulation,
60  double epsilon_triangulation)=0;
61 protected:
62  double m_centre[3];
63  double m_rayon;
64 };
65 
66 
67 #endif
MG_CG_FORME_VOLUME_SPHERE::enregistrer
virtual void enregistrer(std::ostream &o, double version)
Definition: mg_cg_forme_volume_sphere.cpp:114
MG_CG_FORME_VOLUME_SPHERE::get_rayon
virtual double get_rayon(void)
Definition: mg_cg_forme_volume_sphere.cpp:109
MG_CG_FORME_VOLUME_SPHERE::get_centre_y
virtual double get_centre_y(void)
Definition: mg_cg_forme_volume_sphere.cpp:87
MG_CG_FORME_VOLUME_SPHERE::m_rayon
double m_rayon
Definition: mg_cg_forme_volume_sphere.h:63
MG_CG_FORME_VOLUME_SPHERE::MG_CG_FORME_VOLUME_SPHERE
MG_CG_FORME_VOLUME_SPHERE(MG_CG_MODELE *mgcg_modele, double centre_x, double centre_y, double centre_z, double rayon)
Definition: mg_cg_forme_volume_sphere.cpp:27
mg_cg_forme_volume.h
MG_CG_FORME_VOLUME_SPHERE::change_centre_x
virtual void change_centre_x(double x)
Definition: mg_cg_forme_volume_sphere.cpp:70
MG_VOLUME
Definition: mg_volume.h:33
MG_CG_FORME_VOLUME_SPHERE::change_centre_y
virtual void change_centre_y(double y)
Definition: mg_cg_forme_volume_sphere.cpp:81
MG_CG_FORME_VOLUME_SPHERE::get_centre_z
virtual double get_centre_z(void)
Definition: mg_cg_forme_volume_sphere.cpp:98
MG_CG_FORME
Definition: mg_cg_forme.h:41
MG_CG_FORME_VOLUME_SPHERE::construire
virtual int construire(void)=0
MG_CG_FORME_VOLUME_SPHERE
Definition: mg_cg_forme_volume_sphere.h:36
MG_CG_MODELE
Definition: mg_cg_modele.h:41
MG_CG_FORME_VOLUME_SPHERE::change_centre_z
virtual void change_centre_z(double z)
Definition: mg_cg_forme_volume_sphere.cpp:92
MG_CG_FORME_VOLUME_SPHERE::get_type_forme_volume
virtual int get_type_forme_volume(void)
Definition: mg_cg_forme_volume_sphere.cpp:65
MG_GEOMETRIE
Definition: mg_geometrie.h:84
MG_CG_FORME_VOLUME_SPHERE::m_centre
double m_centre[3]
Definition: mg_cg_forme_volume_sphere.h:62
MG_CG_FORME_VOLUME_SPHERE::~MG_CG_FORME_VOLUME_SPHERE
virtual ~MG_CG_FORME_VOLUME_SPHERE()
Definition: mg_cg_forme_volume_sphere.cpp:60
MG_CG_FORME_VOLUME_SPHERE::get_centre_x
virtual double get_centre_x(void)
Definition: mg_cg_forme_volume_sphere.cpp:76
MG_CG_FORME_VOLUME
Definition: mg_cg_forme_volume.h:36
MG_CG_FORME_VOLUME_SPHERE::change_rayon
virtual void change_rayon(double rayon)
Definition: mg_cg_forme_volume_sphere.cpp:103