MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
ct_point_echantillonnage.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 //####// ct_point_echantillonnage.cpp
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:52 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #include <math.h>
23 #include "gestionversion.h"
25 #include "ot_boite_3d.h"
26 
27 unsigned long CT_POINT_ECHANTILLONNAGE::idmax=0;
28 CT_POINT_ECHANTILLONNAGE::CT_POINT_ECHANTILLONNAGE(double x, double y, double z, double dn, BOITE_3D boitetmp):boite(boitetmp),etat(true)
29 {
30  point[0]=x;
31  point[1]=y;
32  point[2]=z;
33  ecart=dn;
34  id=idmax;
35  idmax++;
36 }
37 
39 {
40 
41 }
42 
43 
44 
46 {
47  xyz[0]=point[0];
48  xyz[1]=point[1];
49  xyz[2]=point[2];
50 }
51 
53 {
54  return id;
55 }
56 
58 {
59  return ecart;
60 }
61 
62 
64 {
65 return boite;
66 }
67 
68 
70 {
71  return (1-r);
72 }
73 
74 
76 {
77 ecart=val;
78 }
80 {
81 etat=!etat;
82 }
84 {
85 etat=val;
86 }
88 {
89 return etat;
90 }
91 
gestionversion.h
CT_POINT_ECHANTILLONNAGE::~CT_POINT_ECHANTILLONNAGE
virtual ~CT_POINT_ECHANTILLONNAGE()
Definition: ct_point_echantillonnage.cpp:38
BOITE_3D::y
double y
Definition: ot_boite_3d.h:64
CT_POINT_ECHANTILLONNAGE::change_valeur
void change_valeur(double val)
Definition: ct_point_echantillonnage.cpp:75
ct_point_echantillonnage.h
CT_POINT_ECHANTILLONNAGE::get_id
virtual unsigned long get_id()
Definition: ct_point_echantillonnage.cpp:52
CT_POINT_ECHANTILLONNAGE::get_valeur
double get_valeur(void)
Definition: ct_point_echantillonnage.cpp:57
CT_POINT_ECHANTILLONNAGE::change_etat
void change_etat(void)
Definition: ct_point_echantillonnage.cpp:79
CT_POINT_ECHANTILLONNAGE::evaluer
virtual void evaluer(double *xyz)
Definition: ct_point_echantillonnage.cpp:45
CT_POINT_ECHANTILLONNAGE::boite
class BOITE_3D boite
Definition: ct_point_echantillonnage.h:47
CT_POINT_ECHANTILLONNAGE::get_fonction_influence
double get_fonction_influence(double r)
Definition: ct_point_echantillonnage.cpp:69
CT_POINT_ECHANTILLONNAGE::idmax
static unsigned long idmax
Definition: ct_point_echantillonnage.h:50
BOITE_3D::x
double x
Definition: ot_boite_3d.h:63
CT_POINT_ECHANTILLONNAGE::point
double point[3]
Definition: ct_point_echantillonnage.h:45
CT_POINT_ECHANTILLONNAGE::id
unsigned long id
Definition: ct_point_echantillonnage.h:49
CT_POINT_ECHANTILLONNAGE::get_boite_3D
virtual class BOITE_3D get_boite_3D(void)
Definition: ct_point_echantillonnage.cpp:63
BOITE_3D
Definition: ot_boite_3d.h:27
ot_boite_3d.h
CT_POINT_ECHANTILLONNAGE::CT_POINT_ECHANTILLONNAGE
CT_POINT_ECHANTILLONNAGE(double x, double y, double z, double dn, BOITE_3D boitetmp)
Definition: ct_point_echantillonnage.cpp:28
CT_POINT_ECHANTILLONNAGE::etat
bool etat
Definition: ct_point_echantillonnage.h:48
CT_POINT_ECHANTILLONNAGE::get_etat
bool get_etat(void)
Definition: ct_point_echantillonnage.cpp:87
BOITE_3D::z
double z
Definition: ot_boite_3d.h:65
CT_POINT_ECHANTILLONNAGE::ecart
double ecart
Definition: ct_point_echantillonnage.h:46