This repository has been archived by the owner on Aug 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSegment.h
84 lines (62 loc) · 2.38 KB
/
Segment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*************************************************************************
Segment - description
-------------------
début : ${date}
copyright : (C) ${year} par ${user}
*************************************************************************/
//---------- Interface de la classe <Segment> (fichier ${file_name}) ------
#if ! defined ( SEGMENT_H )
#define SEGMENT_H
//--------------------------------------------------- Interfaces utilisées
#include "Point.h"
#include "SingleShape.h"
//------------------------------------------------------------- Constantes
//------------------------------------------------------------------ Types
//------------------------------------------------------------------------
// Rôle de la classe <Segment>
//
//
//------------------------------------------------------------------------
class Segment : public SingleShape
{
//----------------------------------------------------------------- PUBLIC
public:
//----------------------------------------------------- Méthodes publiques
// type Méthode ( liste de paramètres );
virtual Shape* deepCopy();
virtual bool Contains(const Point & p);
// Mode d'emploi :
//
// Contrat :
//
//-------------------------------------------- Constructeurs - destructeur
Segment ( const Segment & unSegment );
// Mode d'emploi (constructeur de copie) :
//
// Contrat :
//
Segment (std::string aName, int* aPoints );
// Mode d'emploi :
//
// Contrat :
//
virtual ~Segment ( );
// Mode d'emploi :
//
// Contrat :
//
//------------------------------------------------------------------ PRIVE
protected:
//----------------------------------------------------- Méthodes protégées
private:
//------------------------------------------------------- Méthodes privées
protected:
//----------------------------------------------------- Attributs protégés
private:
//------------------------------------------------------- Attributs privés
//---------------------------------------------------------- Classes amies
//-------------------------------------------------------- Classes privées
//----------------------------------------------------------- Types privés
};
//----------------------------------------- Types dépendants de <Segment>
#endif // SEGMENT_H