MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
lc_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 //####// lc_point.cpp
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:55 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 
23 
24 #include "gestionversion.h"
25 
26 
27 #include "mg_point.h"
28 #include "lc_point.h"
29 #include "constantegeo.h"
30 
31 
32 
33 
34 LC_POINT::LC_POINT(unsigned long num,double coo[3]):MG_POINT(num),x(coo[0]),y(coo[1]),z(coo[2])
35 {
36 }
37 
38 LC_POINT::LC_POINT(double xx,double yy,double zz):MG_POINT(),x(xx),y(yy),z(zz)
39 {
40 }
41 
42 
43 LC_POINT::LC_POINT(double coo[3]):MG_POINT(),x(coo[0]),y(coo[1]),z(coo[2])
44 {
45 }
46 
47 LC_POINT::LC_POINT(LC_POINT& mdd):MG_POINT(mdd),x(mdd.x),y(mdd.y),z(mdd.z)
48 {
49 }
50 
51 
52 
54 {
55 }
56 
58 {
59  param.ajouter(x);
60  param.ajouter(y);
61  param.ajouter(z);
63 }
64 
65 
66 void LC_POINT::evaluer(double *xyz)
67 {
68  xyz[0]=x;
69  xyz[1]=y;
70  xyz[2]=z;
71 }
72 
73 
75 {
76 return TYPE_ELEMENT_GEOMETRIQUE::LC_POINT;
77 }
78 
79 
80 void LC_POINT::enregistrer(std::ostream& o,double version)
81 {
82  o << "%" << get_id() << "=POINT("<< x << "," << y << "," << z << ");" << std::endl;
83 }
84 
85 void LC_POINT::get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> &param)
86 {
87 
88  param.ajouter(0);
89  param.ajouter(1);
90  param.ajouter(0);
91  param.ajouter(1);
92  param.ajouter(0);
93 
94 
95  param.ajouter(x);
96  param.ajouter(y);
97  param.ajouter(z);
98 
99  param.ajouter(1);
100 
101  indx_premier_ptctr=5;
102 
103 }
104 
105 
LC_POINT::x
const double x
Definition: lc_point.h:44
gestionversion.h
LC_POINT::~LC_POINT
virtual ~LC_POINT()
Definition: lc_point.cpp:53
GEOMETRIE::CONST::Co_POINT
@ Co_POINT
Definition: constantegeo.h:32
MG_IDENTIFICATEUR::get_id
unsigned long get_id()
Definition: mg_identificateur.cpp:53
LC_POINT::y
const double y
Definition: lc_point.h:45
LC_POINT::z
const double z
Definition: lc_point.h:46
mg_point.h
lc_point.h
constantegeo.h
TPL_LISTE_ENTITE::ajouter
virtual void ajouter(X x)
Definition: tpl_liste_entite.h:38
LC_POINT::evaluer
virtual void evaluer(double *xyz)
Definition: lc_point.cpp:66
MG_POINT
Definition: mg_point.h:33
LC_POINT::get_param_NURBS
virtual void get_param_NURBS(int &indx_premier_ptctr, TPL_LISTE_ENTITE< double > &param)
Definition: lc_point.cpp:85
LC_POINT
Definition: lc_point.h:30
LC_POINT::get_type_geometrique
virtual int get_type_geometrique(TPL_LISTE_ENTITE< double > &param)
Definition: lc_point.cpp:57
MG_ELEMENT_GEOMETRIQUE::LC_POINT
@ LC_POINT
Definition: mg_element_geometrique.h:34
TPL_LISTE_ENTITE< double >
LC_POINT::enregistrer
virtual void enregistrer(std::ostream &o, double version)
Definition: lc_point.cpp:80
LC_POINT::get_type
virtual int get_type(void)
Definition: lc_point.cpp:74