Last change
on this file since 35 was
20,
checked in by chou, 17 years ago
|
1ere release du Viewer :
- Parseur xml sur Base de données
- Chargement d'un fichier de positions
- Dessin du top-level
- Dessin des ports du top level
- Dessin des sous composants
- Dessin des ports de ces sous composants
les valeurs de positions et de taille sont en %.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[20] | 1 | #ifndef morpheo_tools_viewer_bdd_Component_h |
---|
| 2 | #define morpheo_tools_viewer_bdd_Component_h |
---|
| 3 | |
---|
| 4 | #include <iostream> |
---|
| 5 | #include "Tools/Viewer/Bdd/include/PortMap.h" |
---|
| 6 | #include "Tools/Viewer/Bdd/include/ListePorts.h" |
---|
| 7 | |
---|
| 8 | #include <iterator> |
---|
| 9 | #include <qlist.h> |
---|
| 10 | |
---|
| 11 | using namespace std; |
---|
| 12 | namespace morpheo{ |
---|
| 13 | namespace tools{ |
---|
| 14 | namespace viewer{ |
---|
| 15 | namespace bdd{ |
---|
| 16 | |
---|
| 17 | class Component : public ListePorts |
---|
| 18 | { |
---|
| 19 | private: |
---|
| 20 | string comment; |
---|
| 21 | string name; |
---|
| 22 | string type; |
---|
| 23 | int pos_x; |
---|
| 24 | int pos_y; |
---|
| 25 | int size_x; |
---|
| 26 | int size_y; |
---|
| 27 | QList<morpheo::tools::viewer::bdd::PortMap> *signal; |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | public: |
---|
| 32 | int get_x();//LONGUEUR EN LONG |
---|
| 33 | int get_y();//LONGUEUR EN LARGE |
---|
| 34 | string getComment(); |
---|
| 35 | string getName(); |
---|
| 36 | string getType(); |
---|
| 37 | |
---|
| 38 | QList<morpheo::tools::viewer::bdd::PortMap> *getPortMap(); |
---|
| 39 | |
---|
| 40 | morpheo::tools::viewer::bdd::Coord *get_Position(); |
---|
| 41 | void setComment(string s); |
---|
| 42 | Component(string n,string t, int p_x,int p_y,int s_x,int s_y); |
---|
| 43 | ~Component(); |
---|
| 44 | |
---|
| 45 | void addPortMap(PortMap *pm); |
---|
| 46 | |
---|
| 47 | };//end class Component |
---|
| 48 | |
---|
| 49 | };//end bdd |
---|
| 50 | };//end viewer |
---|
| 51 | };//end tools |
---|
| 52 | };//end morpheo |
---|
| 53 | |
---|
| 54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.