MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
mg_visu_courbe.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_visu_courbe.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
#include <math.h>
26
#include "
mg_visu_courbe.h
"
27
#include "
ot_boite_3d.h
"
28
29
30
31
32
MG_VISU_COURBE::MG_VISU_COURBE
(
unsigned
long
num,
double
*xyz1,
double
*xyz2):
MG_ELEMENT_VISUEL
(num)
33
{
34
x1
=xyz1[0];
35
y1
=xyz1[1];
36
z1
=xyz1[2];
37
x2
=xyz2[0];
38
y2
=xyz2[1];
39
z2
=xyz2[2];
40
}
41
42
MG_VISU_COURBE::MG_VISU_COURBE
(
double
*xyz1,
double
*xyz2):
MG_ELEMENT_VISUEL
()
43
{
44
x1
=xyz1[0];
45
y1
=xyz1[1];
46
z1
=xyz1[2];
47
x2
=xyz2[0];
48
y2
=xyz2[1];
49
z2
=xyz2[2];
50
}
51
52
MG_VISU_COURBE::MG_VISU_COURBE
(
MG_VISU_COURBE
& mdd):
MG_ELEMENT_VISUEL
(mdd)
53
{
54
x1
=mdd.
x1
;
55
y1
=mdd.
y1
;
56
z1
=mdd.
z1
;
57
x2
=mdd.
x2
;
58
y2
=mdd.
y2
;
59
z2
=mdd.
z2
;
60
}
61
62
MG_VISU_COURBE::~MG_VISU_COURBE
()
63
{
64
}
65
66
67
void
MG_VISU_COURBE::get_coord
(
double
*xyz1,
double
*xyz2)
68
{
69
xyz1[0]=
x1
;
70
xyz1[1]=
y1
;
71
xyz1[2]=
z1
;
72
xyz2[0]=
x2
;
73
xyz2[1]=
y2
;
74
xyz2[2]=
z2
;
75
}
76
77
BOITE_3D
MG_VISU_COURBE::get_boite_3D
(
void
)
78
{
79
double
xmin,ymin,zmin;
80
double
xmax,ymax,zmax;
81
if
(
x1
<
x2
)
82
{
83
xmin=
x1
;
84
xmax=
x2
;
85
}
86
else
87
{
88
xmin=
x2
;
89
xmax=
x1
;
90
}
91
if
(
y1
<
y2
)
92
{
93
ymin=
y1
;
94
ymax=
y2
;
95
}
96
else
97
{
98
ymin=
y2
;
99
ymax=
y1
;
100
}
101
if
(
z1
<
z2
)
102
{
103
zmin=
z1
;
104
zmax=
z2
;
105
}
106
else
107
{
108
zmin=
z2
;
109
zmax=
z1
;
110
}
111
BOITE_3D
boite(xmin,ymin,zmin,xmax,ymax,zmax);
112
return
boite;
113
}
114
115
116
void
MG_VISU_COURBE::enregistrer
(std::ostream& o,
double
version)
117
{
118
}
119
120
MG_VISU_COURBE::get_boite_3D
class BOITE_3D get_boite_3D(void)
Definition:
mg_visu_courbe.cpp:77
gestionversion.h
MG_VISU_COURBE::z1
double z1
Definition:
mg_visu_courbe.h:42
MG_VISU_COURBE::enregistrer
virtual void enregistrer(std::ostream &o, double version)
Definition:
mg_visu_courbe.cpp:116
MG_VISU_COURBE::y2
double y2
Definition:
mg_visu_courbe.h:43
MG_VISU_COURBE::y1
double y1
Definition:
mg_visu_courbe.h:42
MG_VISU_COURBE::z2
double z2
Definition:
mg_visu_courbe.h:43
MG_VISU_COURBE::x1
double x1
Definition:
mg_visu_courbe.h:42
MG_VISU_COURBE
Definition:
mg_visu_courbe.h:29
MG_VISU_COURBE::~MG_VISU_COURBE
virtual ~MG_VISU_COURBE()
Definition:
mg_visu_courbe.cpp:62
BOITE_3D
Definition:
ot_boite_3d.h:27
ot_boite_3d.h
MG_VISU_COURBE::get_coord
void get_coord(double *xyz1, double *xyz2)
Definition:
mg_visu_courbe.cpp:67
MG_ELEMENT_VISUEL
Definition:
mg_element_visuel.h:30
MG_VISU_COURBE::MG_VISU_COURBE
MG_VISU_COURBE(unsigned long num, double *xyz1, double *xyz2)
Definition:
mg_visu_courbe.cpp:32
MG_VISU_COURBE::x2
double x2
Definition:
mg_visu_courbe.h:43
mg_visu_courbe.h
home
francois
tmp
lib
mtu
src
mg_visu_courbe.cpp
Généré le Jeudi 12 Juin 2025 23:00:09 pour MAGiC par
1.8.17