ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/step/src/st_gestionnaire.h
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (14 years, 10 months ago) by francois
Content type: text/plain
File size: 4858 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuillière et Vincent FRANCOIS
5     // Département de Génie Mécanique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du département
8     // de génie mécanique de l'Université du Québec à
9     // Trois Rivières
10     // Les librairies ne peuvent être utilisées sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // st_gestionnaire.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H24
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef st_gestionnaireH
24     #define st_gestionnaireH
25     //---------------------------------------------------------------------------
26     #ifdef WINDOWS_VERSION
27     #ifdef BUILT_DLL_STEPLIB
28     #define DLLPORTSTEP __declspec(dllexport)
29     #else
30     #define DLLPORTSTEP __declspec(dllimport)
31     #endif
32     #else
33     #define DLLPORTSTEP
34     #endif
35    
36    
37     #include "tpl_map_entite.h"
38     #include "st_ident.h"
39     #include "stvector.h"
40     #include "stedgecurve.h"
41     #include "storiedge.h"
42     #include "stline.h"
43     #include "stfacebound.h"
44     #include "stvertex.h"
45     #include "stplane.h"
46     #include "stcylindrical.h"
47     #include "stspherical.h"
48     #include "sttoroidal.h"
49     #include "stconical.h"
50     #include "staxis2place3d.h"
51     #include "stclosedshell.h"
52     #include "storientedclosedshell.h"
53     #include "stadface.h"
54     #include "stedgeloop.h"
55     #include "stbrep.h"
56     #include "stbrepwithvoids.h"
57     #include "stcircle.h"
58     #include "stellipse.h"
59     #include "stdirection.h"
60     #include "st_point.h"
61     #include "stbspline.h"
62     #include "stbsplines.h"
63    
64     #define VERTEX_POINT 0
65     #define VECTOR 1
66     #define LINE 2
67     #define EDGE_CURVE 3
68     #define ORIENTED_EDGE 4
69     #define EDGE_LOOP 5
70     #define FACE_BOUND 6
71     #define FACE_OUTER_BOUND 7
72     #define ADVANCED_FACE 8
73     #define AXIS2_PLACEMENT_3D 9
74     #define PLANE 10
75     #define CYLINDRICAL_SURFACE 11
76     #define TOROIDAL_SURFACE 12
77     #define CONICAL_SURFACE 13
78     #define SPHERICAL_SURFACE 14
79     #define CLOSED_SHELL 15
80     #define ORIENTED_CLOSED_SHELL 16
81     #define MANIFOLD_SOLID_BREP 17
82     #define BREP_WITH_VOIDS 18
83     #define CIRCLE 19
84     #define ELLIPSE 20
85     #define DIRECTION 21
86     #define CARTESIAN_POINT 22
87     #define B_SPLINE_CURVE_WITH_KNOTS 23
88     #define B_SPLINE_SURFACE_WITH_KNOTS 24
89    
90     //#include ".\..\src\fenetre.h"
91    
92     class DLLPORTSTEP ST_GESTIONNAIRE
93     {
94     public:
95     ST_GESTIONNAIRE();
96     ST_GESTIONNAIRE(char *path);
97     virtual ~ST_GESTIONNAIRE();
98    
99    
100    
101    
102     void change_nom(char *path);
103     char* get_nom(void);
104     int lire(void);
105     void initialiser(void);
106    
107     TPL_MAP_ENTITE<class ST_IDENTIFICATEUR*> lst_entity;
108     TPL_MAP_ENTITE<class ST_VECTOR*> lst_vector;
109     TPL_MAP_ENTITE<class ST_EDGE_CURVE*> lst_edgecurve;
110     TPL_MAP_ENTITE<class ST_ORIENTED_EDGE*> lst_oriedge;
111     TPL_MAP_ENTITE<class ST_LINE*> lst_line;
112     TPL_MAP_ENTITE<class ST_FACE_BOUND*> lst_facebound;
113     TPL_MAP_ENTITE<class ST_VERTEX*> lst_vertex;
114     TPL_MAP_ENTITE<class ST_PLANE*> lst_plane;
115     TPL_MAP_ENTITE<class ST_CYLINDRICAL*> lst_cylindrical;
116     TPL_MAP_ENTITE<class ST_SPHERICAL*> lst_spherical;
117     TPL_MAP_ENTITE<class ST_TOROIDAL*> lst_toroidal;
118     TPL_MAP_ENTITE<class ST_CONICAL*> lst_conical;
119     TPL_MAP_ENTITE<class ST_AXIS2_PLACEMENT_3D*> lst_axis2_placement_3d;
120     TPL_MAP_ENTITE<class ST_CLOSED_SHELL*> lst_closed_shell;
121     TPL_MAP_ENTITE<class ST_ORIENTED_CLOSED_SHELL*> lst_oriented_closed_shell;
122     TPL_MAP_ENTITE<class ST_ADVANCED_FACE*> lst_advanced_face;
123     TPL_MAP_ENTITE<class ST_EDGE_LOOP*> lst_edge_loop;
124     TPL_MAP_ENTITE<class ST_MANIFOLD_BREP*> lst_manifold_brep;
125     TPL_MAP_ENTITE<class ST_BREP_WITH_VOIDS*> lst_brep_with_voids;
126     TPL_MAP_ENTITE<class ST_CIRCLE*> lst_circle;
127     TPL_MAP_ENTITE<class ST_ELLIPSE*> lst_ellipse;
128     TPL_MAP_ENTITE<class ST_DIRECTION*> lst_direction;
129     TPL_MAP_ENTITE<class ST_POINT*> lst_point;
130     TPL_MAP_ENTITE<class ST_B_SPLINE*> lst_bspline;
131     TPL_MAP_ENTITE<class ST_B_SPLINE_SURF*> lst_bsplines;
132    
133     TPL_MAP_ENTITE<class ST_COURBE*> lst_courbe;
134     TPL_MAP_ENTITE<class ST_SURFACE*> lst_surface;
135    
136     int tabentite[25];
137     std::vector<std::string> entitenontraite;
138     std::vector<std::string> entitenom;
139    
140     private:
141     long cid(std::string str);
142     int cbool(std::string str);
143     char *nom;
144     void init(void);
145     };
146    
147     #endif