mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-30 23:59:59 +01:00
Implementation d'un nouvel algorithme de modification des conducteurs
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@125 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
34
conducerprofile.h
Normal file
34
conducerprofile.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef CONDUCER_PROFILE_H
|
||||
#define CONDUCER_PROFILE_H
|
||||
#include <QList>
|
||||
#include "qet.h"
|
||||
class Conducer;
|
||||
class ConducerSegmentProfile;
|
||||
/**
|
||||
Cette classe contient le profil (= les caracteristiques essentielles) d'un
|
||||
conducteur.
|
||||
*/
|
||||
class ConducerProfile {
|
||||
public:
|
||||
// constructeurs, destructeur
|
||||
ConducerProfile();
|
||||
ConducerProfile(Conducer *conducer);
|
||||
virtual ~ConducerProfile();
|
||||
|
||||
// attributs
|
||||
public:
|
||||
QList<ConducerSegmentProfile *> segments;
|
||||
QET::Orientation beginOrientation;
|
||||
QET::Orientation endOrientation;
|
||||
|
||||
// methodes
|
||||
public:
|
||||
bool isNull() const;
|
||||
qreal width() const;
|
||||
qreal height() const;
|
||||
uint nbSegments(QET::ConducerSegmentType) const;
|
||||
QList<ConducerSegmentProfile *> horizontalSegments();
|
||||
QList<ConducerSegmentProfile *> verticalSegments();
|
||||
};
|
||||
QDebug &operator<<(QDebug d, ConducerProfile &);
|
||||
#endif
|
||||
Reference in New Issue
Block a user