MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
mg_point.cpp
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_point.cpp
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:54 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 
23 
24 #include "gestionversion.h"
25 #include "mg_point.h"
26 #include "vct_point.h"
27 #include "ot_boite_3d.h"
28 
29 
30 
31 MG_POINT::MG_POINT(unsigned long num):MG_ELEMENT_GEOMETRIQUE(num),vect(NULL)
32 {
33 }
34 
35 
37 {
38 }
39 
40 
41 
43 {
44 }
45 
46 
48 {
49  if (vect!=NULL) delete vect;
50 }
51 
53 {
54  return TYPE_ELEMENT_GEOMETRIQUE::POINT;
55 }
56 
57 
59 {
60  double xyz[3];
61  evaluer(xyz);
62 
63  BOITE_3D boite(xyz[0],xyz[1],xyz[2],xyz[0],xyz[1],xyz[2]);
64  return boite;
65 
66 }
67 
69 {
70  if (vect==NULL) vect=new VCT_POINT(this);
71  return *vect;
72 }
gestionversion.h
MG_POINT::get_boite_3D
virtual class BOITE_3D get_boite_3D(void)
Definition: mg_point.cpp:58
MG_POINT::~MG_POINT
virtual ~MG_POINT()
Definition: mg_point.cpp:47
VCT_POINT
Definition: vct_point.h:36
vct_point.h
MG_POINT::vect
class VCT_POINT * vect
Definition: mg_point.h:51
MG_ELEMENT_GEOMETRIQUE
Definition: mg_element_geometrique.h:30
mg_point.h
MG_POINT::MG_POINT
MG_POINT()
Definition: mg_point.cpp:36
MG_POINT
Definition: mg_point.h:33
BOITE_3D
Definition: ot_boite_3d.h:27
ot_boite_3d.h
MG_POINT::get_vectorisation
virtual VCT & get_vectorisation(void)
Definition: mg_point.cpp:68
MG_POINT::get_type
virtual int get_type(void)
Definition: mg_point.cpp:52
VCT
Definition: vct.h:33
MG_POINT::evaluer
virtual void evaluer(double *xyz)=0