1 |
francois |
283 |
#ifndef CAD4FE_MCEdgeh |
2 |
|
|
#define CAD4FE_MCEdgeh |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
//--------------------------------------------------------------------------- |
6 |
|
|
// include MAGIC Headers |
7 |
|
|
#include "mg_geometrie.h" |
8 |
|
|
#include "mg_arete.h" |
9 |
|
|
|
10 |
|
|
//--------------------------------------------------------------------------- |
11 |
|
|
// include STL headers |
12 |
|
|
//--------------------------------------------------------------------------- |
13 |
|
|
#include <map> |
14 |
|
|
#include <ostream> |
15 |
|
|
#include <string> |
16 |
|
|
#include <vector> |
17 |
|
|
|
18 |
|
|
using namespace std; |
19 |
|
|
|
20 |
|
|
#ifdef WINDOWS_VERSION |
21 |
|
|
#ifdef BUILT_DLL_GEOMETRIE |
22 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllexport) |
23 |
|
|
#else |
24 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllimport) |
25 |
|
|
#endif |
26 |
|
|
#else |
27 |
|
|
#define DLLPORTGEOMETRIE |
28 |
|
|
#endif |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
namespace CAD4FE { |
32 |
|
|
|
33 |
|
|
class MCVertex; |
34 |
|
|
class MCFace; |
35 |
|
|
class PolyCurve; |
36 |
|
|
|
37 |
|
|
/** |
38 |
|
|
* This class describes the MC Edge entity |
39 |
|
|
*/ |
40 |
|
|
class DLLPORTGEOMETRIE MCEdge : public MG_ARETE { |
41 |
|
|
public: |
42 |
|
|
// TYPES DECLARATIONS |
43 |
|
|
|
44 |
|
|
/** Constructor */ |
45 |
|
|
MCEdge(MG_ARETE * __refEdge); |
46 |
|
|
MCEdge(std::string __idOriginal, PolyCurve * __polycurve); |
47 |
|
|
MCEdge(std::string , MCEdge &, MCEdge &); |
48 |
|
|
~MCEdge(); |
49 |
|
|
|
50 |
|
|
// GEOMETRIC PROPERTIES |
51 |
|
|
double GetLength(); |
52 |
|
|
|
53 |
|
|
// Return the polycurve of this mc edge |
54 |
|
|
PolyCurve * GetPolyCurve ( ); |
55 |
|
|
|
56 |
|
|
void _CopyMeshLink( MCEdge & ); |
57 |
|
|
|
58 |
|
|
virtual void enregistrer(std::ostream& o); |
59 |
|
|
|
60 |
|
|
/** modification time : represent the last step number |
61 |
|
|
* of the MCAA process which created or modified this entity */ |
62 |
|
|
int time; |
63 |
|
|
}; |
64 |
|
|
|
65 |
|
|
} |
66 |
|
|
|
67 |
|
|
#endif// CAD4FE_MCEDGEh |