ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/occ_fonction.h
Revision: 139
Committed: Tue Aug 12 17:41:52 2008 UTC (16 years, 9 months ago) by francois
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/occ_fonction1.h
File size: 2313 byte(s)
Log Message:
nouveau programme transfert qui en fait plus et opencascade tout en minuscule

File Contents

# User Rev Content
1 francois 139 //------------------------------------------------------------
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     // OCC_fonction1.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifdef BREP_OCC
24     #ifndef OCC_Fonction1H
25     #define OCC_Fonction1H
26     #ifdef WINDOWS_VERSION
27     #ifdef BUILT_DLL_GEOMETRIE
28     #define DLLPORTGEOMETRIE __declspec(dllexport)
29     #else
30     #define DLLPORTGEOMETRIE __declspec(dllimport)
31     #endif
32     #else
33     #define DLLPORTGEOMETRIE
34     #endif
35    
36     //#include <atl\atlmod.h>
37     #include <BRep_Builder.hxx>
38     #include <BRepTools.hxx>
39     #include <TopoDS_Shape.hxx>
40     #include <TopoDS_Solid.hxx>
41     #include <TopoDS_Face.hxx>
42     #include <TopoDS_Edge.hxx>
43     #include <TopoDS_Vertex.hxx>
44     #include <TopTools_IndexedMapOfShape.hxx>
45     #include <TopTools_LocationSet.hxx>
46     #include "TopoDS_Iterator.hxx"
47     #include "STEPControl_Reader.hxx"
48    
49     class DLLPORTGEOMETRIE OCC_FONCTION1
50     {
51     public:
52     OCC_FONCTION1(void);
53     ~OCC_FONCTION1(void);
54    
55     TopoDS_Shape ashape;
56     BRep_Builder abuilder;
57     STEPControl_Reader reader;
58    
59     void OuvrirFichier(char* file);
60     void OuvrirFichierStep(char* file);
61     void Sauvegarder(char* file);
62     void ajouterGeometrie(const TopoDS_Shape& shape);
63     int GetID(const TopoDS_Shape &shape);
64     const TopoDS_Shape& GetShape(const int id_shape);
65     //******************************************************************************
66    
67    
68     private:
69    
70     TopTools_IndexedMapOfShape myShapes;
71     TopTools_LocationSet myLocations;
72    
73     };
74     #endif
75     #endif