ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/cad4fe_mcvertex.h
Revision: 283
Committed: Tue Sep 13 21:11:20 2011 UTC (13 years, 8 months ago) by francois
Content type: text/plain
Original Path: magic/lib/geometrie/src/CAD4FE_MCVertex.h
File size: 1471 byte(s)
Log Message:
structure de l'écriture

File Contents

# User Rev Content
1 foucault 27 //---------------------------------------------------------------------------
2     #ifndef CAD4FE_MCVertexh
3     #define CAD4FE_MCVertexh
4     //---------------------------------------------------------------------------
5    
6 francois 283 #include <vector>
7 foucault 27 //---------------------------------------------------------------------------
8     // include MAGIC Headers
9     #include "mg_geometrie.h"
10    
11    
12     #ifdef WINDOWS_VERSION
13 francois 283 #ifdef BUILT_DLL_GEOMETRIE
14     #define DLLPORTGEOMETRIE __declspec(dllexport)
15 foucault 27 #else
16 francois 283 #define DLLPORTGEOMETRIE __declspec(dllimport)
17 foucault 27 #endif
18 francois 283 #else
19     #define DLLPORTGEOMETRIE
20     #endif
21 foucault 27
22     namespace CAD4FE {
23    
24 francois 283 class MCEdge;
25 foucault 27
26 francois 283 class DLLPORTGEOMETRIE MCVertex : public MG_SOMMET
27     {
28     public:
29     MCVertex(MG_SOMMET * __vertex);
30 foucault 27
31 francois 283 // return the reference vertex of this vertex
32     MG_SOMMET * GetRefVertex();
33 foucault 27
34 francois 283 virtual void enregistrer(std::ostream& o);
35 foucault 27
36 francois 283 /** 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 francois 283 // 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 francois 283 private:
48     // Vertex that this MC vertex belongs to
49     MG_SOMMET * _ref_vertex;
50 foucault 27
51 francois 283 /// 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