ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/CAD4FE_MCVertex.h
Revision: 569
Committed: Thu Oct 16 14:36:31 2014 UTC (10 years, 6 months ago) by foucault
Content type: text/plain
File size: 1547 byte(s)
Log Message:
Mise à jour pour CAD4FE (Gilles) : operation 1 (tentative)

File Contents

# User Rev Content
1 foucault 27 //---------------------------------------------------------------------------
2     #ifndef CAD4FE_MCVertexh
3     #define CAD4FE_MCVertexh
4     //---------------------------------------------------------------------------
5    
6 foucault 569 #include <vector>
7 foucault 27 //---------------------------------------------------------------------------
8     // include MAGIC Headers
9     #include "mg_geometrie.h"
10    
11    
12     #ifdef WINDOWS_VERSION
13 foucault 569 #ifdef BUILT_DLL_GEOMETRIE
14     #define DLLPORTGEOMETRIE __declspec(dllexport)
15     #else
16     #define DLLPORTGEOMETRIE __declspec(dllimport)
17     #endif
18 foucault 27 #else
19 foucault 569 #define DLLPORTGEOMETRIE
20 foucault 27 #endif
21    
22     namespace CAD4FE {
23    
24 foucault 569 class MCEdge;
25 foucault 27
26 foucault 569 class DLLPORTGEOMETRIE MCVertex : public MG_SOMMET
27     {
28     public:
29     MCVertex(MG_SOMMET * __vertex);
30 foucault 27
31 foucault 569 // return the reference vertex of this vertex
32     MG_SOMMET * GetRefVertex();
33 foucault 27
34 foucault 569 virtual void enregistrer(std::ostream& o);
35 foucault 27
36 foucault 569 /** modification time : represent the last step number
37     * of the MCAA process which created or modified this entity */
38     int time;
39 foucault 27
40 foucault 569 // set of vertices that have been merged into the mcvertex
41     void MergeRefVertex(MG_SOMMET * ) ;
42     std::map <unsigned long, MG_SOMMET*> & GetMergedRefVertices();
43     bool Contains(MG_SOMMET * ) const;
44     void RemoveRefVertex(MG_SOMMET * ) ;
45     void Merge(MCVertex * __mcVertex);
46 foucault 27
47 foucault 569 private:
48     // Vertex that this MC vertex belongs to
49     MG_SOMMET * _ref_vertex;
50 foucault 27
51 foucault 569 /// set of vertices that have been merged into the mcvertex
52     std::map <unsigned long, MG_SOMMET*> _lst_vertices;
53 foucault 27 };
54    
55     }
56    
57     #endif