ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/CAD4FE_MCVertex.h
Revision: 27
Committed: Thu Jul 5 15:26:40 2007 UTC (17 years, 10 months ago) by foucault
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/CAD4FE_MCVertex.h
File size: 1547 byte(s)
Log Message:

File Contents

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