gapMea  1.0-rc1-1.5.3.2
GapMea est un outil visuel écrit en c++ à l'aide de la bibliothèque QT qui sert de base entre autre à l'environnement graphique de KDE.Il permet de dessiner des schémas recueillant et structurant les informations nécessaires à un domaine de gestion. Le schéma obtenu est enregistré dans un fichier texte au format xml.
 All Classes Functions Variables
association.h
1 #ifndef ASSOCIATION_H
2 #define ASSOCIATION_H
3 #include "entite.h"
9 class Association : public Entite
10 {
11 private:
15  double m_radius_x;
19  double m_radius_y;
20 public:
33  Association(MainWindow* mum,QString nom,qreal x,qreal y, QGraphicsItem* parent, QCustomGraphicsScene * laScene, QStringList listeChamps, bool isAssoc);
41  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
42 
44  double getRadiusX() const { return m_radius_x; }
45 
47  double getRadiusY() const { return m_radius_y; }
48 
50  void setRadiusX(const double radius_x) { m_radius_x = radius_x; }
51 
53  void setRadiusY(const double radius_y) { m_radius_y = radius_y; }
54 
56  void setRoundedRect(const QRectF rect, const double radius_x, const double radius_y);
61  QVector <Entite*> vectEntitesAssociees();
62 };
63 #endif // ASSOCIATION_H
The QCustomGraphicsScene class This class is designed to deal with mouse events.
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
paint association
Definition: association.cpp:21
void setRoundedRect(const QRectF rect, const double radius_x, const double radius_y)
Set the rounded rect.
Definition: association.cpp:92
QVector< Entite * > vectEntitesAssociees()
vectEntitesAssociees
Definition: association.cpp:99
void setRadiusY(const double radius_y)
Set the rounded rect corner y radius.
Definition: association.h:53
double getRadiusX() const
Get the rounded rect corner x radius.
Definition: association.h:44
The Association class Association inherit Entite Association is a relation between at least two entit...
Definition: association.h:9
double getRadiusY() const
Get the rounded rect corner y radius.
Definition: association.h:47
Association(MainWindow *mum, QString nom, qreal x, qreal y, QGraphicsItem *parent, QCustomGraphicsScene *laScene, QStringList listeChamps, bool isAssoc)
Association.
Definition: association.cpp:5
void setRadiusX(const double radius_x)
Set the rounded rect corner x radius.
Definition: association.h:50
The Entite class Entity is an object we have to deal with.
Definition: entite.h:20
The MainWindow class main code of application.
Definition: mainwindow.h:20