- Timestamp:
- Dec 17, 2002, 6:58:59 PM (23 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pifilechogen.cc
r329 r2300 22 22 // contenant le nom complet du fichier. Si aucun fichier n'a été 23 23 // sélectionné, le message de l'objet est completé avec "PIMsg_Cancel" et 24 // le "dat äcontient le pointeur "NULL".24 // le "data" contient le pointeur "NULL". 25 25 //-- 26 26 //++ -
trunk/SophyaPI/PI/pifontgen.cc
r2139 r2300 46 46 // Constructeur de copie 47 47 // PIFont & operator = (PIFont const & fnt) 48 // Opérateur égal .48 // Opérateur égal (affectation). 49 49 // bool operator == (PIFont const & fnt) 50 50 // Opérateur test d'égalité. -
trunk/SophyaPI/PI/pigraphgen.cc
r2262 r2300 26 26 //++ 27 27 // Links Voir aussi 28 // PIFont 29 // PIColorMap 30 //-- 31 //++ 32 // Links et 28 33 // PIGrCoord 29 34 // PILineAtt 30 // PIFont 31 // PIColorMap 35 //-- 36 //++ 37 // Links Classes derivees 38 // PIGraphicUC 39 // PIGraphic3D 40 // PIGraphicPS 32 41 //-- 33 42 … … 132 141 // le tracé de texte. 133 142 // La chaine est trace avec une justification a gauche, ou droite, 134 // ou centree (hor zontal) - bas, haut, milieu (vertical), en fonction de143 // ou centree (horizontal) - bas, haut, milieu (vertical), en fonction de 135 144 // de la valeur du flag "pos" 136 145 //| PI_HorizontalLeft PI_HorizontalCenter PI_HorizontalRight 137 146 //| PI_VerticalBottom PI_VerticalCenter PI_VerticalTop 147 // void DrawCompString(PIGrCoord x, PIGrCoord y, const char* s, const char* s_up, \ 148 // const char* s_dn, PIFont const & fntss, unsigned long pos = 0) 149 // Tracé d'une chaîne de caractères "s" avec une partie de texte en exposant "s_up" 150 // et une partie en indice "s_dn". Une fonte différente ("fntss") peut être 151 // spécifiée pour la partie de texte en exposant et en indice. La taille 152 // de la fonte exposant-indice est calculée automatiquement en fonction de 153 // la taille de fonte courante. le positionnement s'effectue en fonction 154 // du flag "pos" : 155 //| PI_HorizontalLeft PI_HorizontalCenter PI_HorizontalRight 156 //| PI_VerticalBottom PI_VerticalCenter PI_VerticalTop 157 // void DrawCompString(PIGrCoord x, PIGrCoord y, const char* s, \ 158 // const char* s_up, const char* s_dn, unsigned long pos = 0) 159 // Tracé d'une chaîne de caractères "s" avec une partie de texte en exposant "s_up" 160 // et une partie en indice "s_dn". Fonte exposant-indice identique à la fonte 161 // courante. 138 162 //-- 139 163 … … 279 303 // Tracé d'un arc de cercle plein spécifié par trois points "(x1,y1)", "(x2,y2)" et "(x3,y3)" 280 304 //-- 281 282 //++ 283 // Titre Tracés de signes 284 //-- 285 //++ 286 // void DrawMarker(PIGrCoord x0, PIGrCoord y0) 287 // Tracé d'un signe au point "(x0,y0)". Le choix du signe tracé s'effectue 288 // à travers la méthode "SelMarker()" 289 // void DrawMarkers(PIGrCoord *x, PIGrCoord *y, int n) 290 // Tracé de "n" signes aux points "(x[i],y[i])" 291 //-- 305 //++ 306 // ComputeArcFrom3Pt(double x1, double y1, double x2, double y2, \ 307 // double x3, double y3, double& x0, double& y0, 308 // double& dx, double& dy, double& degdeb, double& deltadeg) 309 // Calcul des coordonnees du centre, du rayon, ainsi que l'extension 310 // angulaire d'un arc de cercle specifie par trois points. 311 // *methode statique* 312 //-- 313 292 314 293 315 /* --Methode-- */ … … 319 341 } 320 342 321 //++322 // ComputeArcFrom3Pt(double x1, double y1, double x2, double y2, \323 // double x3, double y3, double& x0, double& y0,324 // double& dx, double& dy, double& degdeb, double& deltadeg)325 // Calcul des coordonnees du centre, du rayon, ainsi que l'extension326 // angulaire d'un arc de cercle specifie par trois points.327 // *methode statique*328 //--329 343 /* --Methode-- */ 330 344 int PIGraphicGen::ComputeArcFrom3Pt(double x1, double y1, double x2, double y2, … … 455 469 return(0); 456 470 } 471 472 //++ 473 // Titre Tracés de signes et de flèches 474 //-- 475 //++ 476 // void DrawMarker(PIGrCoord x0, PIGrCoord y0) 477 // Tracé d'un signe au point "(x0,y0)". Le choix du signe tracé s'effectue 478 // à travers la méthode "SelMarker()" 479 // void DrawMarkers(PIGrCoord *x, PIGrCoord *y, int n) 480 // Tracé de "n" signes aux points "(x[i],y[i])" 481 // void DrawArrowMarker(PIGrCoord x1, PIGrCoord y1, PIGrCoord x2, PIGrCoord y2, \ 482 // bool fgline=true) 483 // Tracé d'un signe de type flèche orienté selon la droite "x1,y1" -> "x2,y2". 484 // Si "fgline==true", la ligne "(x1,y1) (x2,y2)" est aussi tracée. 485 //-- 457 486 458 487 /* --Methode-- */ … … 597 626 //| PI_TriangleMarker , PI_FTriangleMarker 598 627 //| PI_StarMarker , PI_FStarMarker 599 // (Les "StarMaker" ne sont pas encore implémentés 11/98) 628 // void SelArrowMarker(int arrsz=5, PIArrowMarker arrmrk=PI_BasicArrowMarker) 629 // Choix de la taille et du type de flèches. 630 //| PI_NotDefArrowMarker , PI_BasicArrowMarker 631 //| PI_TriangleArrowMarker , PI_FTriangleArrowMarker 632 //| PI_ArrowShapedArrowMarker , PI_FArrowShapedArrowMarker 600 633 //-- 601 634 … … 663 696 // Renvoie la largeur occupé par un texte s'il était affiché dans le 664 697 // système de coordonnées courant (Fenêtre ou UC). 698 // bool CalcStringPositionShift(char const* s, unsigned long pos, \ 699 // int& dx, int& dy) 700 // Renvoie le shift de position compte tenu du flag de positionnement "pos" 665 701 //-- 666 702 -
trunk/SophyaPI/PI/pilineatt.cc
r2139 r2300 103 103 } 104 104 } 105 106 //++ 107 // Titre Opérateurs 108 //-- 109 110 //++ 111 // PILineAtt& operator = (PILineAtt const& b) 112 // Opérateur d'affectation à partir d'un PILineAtt. 113 // PILineAtt& operator = (PILineTypes ltyp) 114 // Opérateur d'affectation à partir d'un PILineTypes. 115 // bool operator == (PILineAtt const& b) const 116 // Opérateur test d'égalité avec un PILineAtt 117 // bool operator == (PILineTypes ltyp) 118 // Opérateur test d'égalité avec un PILineTypes 119 // bool operator != (PILineAtt const& b) const 120 // Opérateur test d'inégalité avec un PILineAtt 121 // bool operator != (PILineTypes ltyp) 122 // Opérateur test d'inégalité avec un PILineTypes 123 //-- 124 125 //++ 126 // Titre Méthodes 127 //-- 128 129 //++ 130 // int GetLineWidth() const 131 // Retourne l'épaisseur de ligne (en pixels). 132 // int GetLineWidthx8() const 133 // Retourne l'épaisseur de ligne (en 1/8 pixels ou points). 134 // double GetLineWidthD() const 135 // Retourne l'épaisseur de ligne (valeur flottante en pixels/points). 136 // PILineDash GetLineDash() 137 // Retourne le type de ligne pointillé 138 // PILineJoin GetLineJoin() 139 // Retourne le type de jointure de lignes 140 // PILineCap GetLineCap() 141 // Retourne le type de terminaison de lignes 142 // void SetLineWidth(int lw) 143 // Définit l'épaisseur de ligne (en pixels/points). 144 // void SetLineWidth(double lw) 145 // Définit l'épaisseur de ligne (valeur flottante en pixels/points). 146 // void SetLineDash(PILineDash ld) 147 // Définit le type de ligne pointillé - enum PILineDash : 148 //| PI_LineSolid, PI_LineDashed 149 //| PI_LineDotted, PI_LineDashDotted 150 // 151 // void SetLineJoin(PILineJoin lj) 152 // Définit le type jointure de lignes - enum PILineJoin : 153 //| PI_JoinMiter, PI_JoinRound, PI_JoinBevel 154 // void SetLineCap(PILineCap lc) 155 // Définit le type terminaison de lignes - enum PILineCap : 156 //| PI_CapButt, PI_CapRound, PI_CapProjecting 157 //-- -
trunk/SophyaPI/PI/pitherm.cc
r1034 r2300 11 11 // 12 12 // Classe permettant la visualisation d'une valeur sous forme 13 // d'une barre de progression 13 // d'une barre de progression ou d'un thermomètre, avec trois 14 // couleurs différentes, suivant deux valeurs de seuil. 14 15 //-- 15 16 //++ … … 22 23 //-- 23 24 //++ 24 // PIThermometer(PIContainerGen *par, char *nom, int sx=256, int sy=10, int px=0, int py=0) ;25 // PIThermometer(PIContainerGen *par, char *nom, int sx=256, int sy=10, int px=0, int py=0) 25 26 // Constructeur - Le choix d'affichage (vertical ou horizontal) dépend 26 27 // du rapport des tailles "sx", "sy" … … 46 47 } 47 48 49 //++ 50 // Titre Méthodes 51 //-- 52 //++ 53 // long kind() 54 // Retourne PIThermometer::ClassId . 55 //-- 56 57 //++ 58 // void SetMinMax(double min=0., double max=1.) 59 // Définit les valeurs minimum et maximum du thermomètre. 60 // void GetMinMax(double& min, double& max) 61 // Retourne les valeurs minimum et maximum du thermomètre. 62 // void SetValue(double val) 63 // Définit la valeur actuelle du thermomètre. 64 // void GetValue() 65 // Retourne la valeur actuelle du thermomètre. 66 //-- 67 48 68 /* --Methode-- */ 49 69 void … … 55 75 56 76 /* --Methode-- */ 57 void 77 void 58 78 PIThermometer::GetMinMax(double& min, double& max) 59 79 { … … 64 84 void 65 85 PIThermometer::SetValue(double val) 86 // Définit la valeur actuelle du thermomètre. 66 87 { 67 88 val_ = val; … … 76 97 } 77 98 99 //++ 100 // void SetThreshold(double t1=0.75, double t2=0.9) 101 // Définit les deux seuils pour les changements de couleurs. 102 // void GetThreshold(double& t1, double& t2) 103 // Retourne les deux seuils pour les changements de couleurs. 104 // void SetColors(PIColors c1=PI_Green, PIColors c2=PI_Yellow, PIColors c3=PI_Red) 105 // Définit les trois couleurs utilisées pour l'affichage. 106 //| Val : .... < Seuil1 < .... < Seuil2 < .... 107 //| c1 c2 c3 108 //| 109 //-- 110 78 111 /* --Methode-- */ 79 112 void … … 83 116 } 84 117 118 /* --Methode-- */ 85 119 void 86 120 PIThermometer::GetThreshold(double& t1, double& t2) … … 89 123 } 90 124 125 126 /* --Methode-- */ 91 127 void 92 128 PIThermometer::SetColors(PIColors c1, PIColors c2, PIColors c3) … … 94 130 lowc_ = c1; medc_ = c2; highc_ = c3; 95 131 } 96 97 //++98 // Titre Méthodes99 //--100 //++101 // long kind()102 // Retourne PIThermometer::ClassId .103 //--104 132 105 106 /* --Methode-- */ 133 /* --Methode-- */ 134 //++ 135 // void Draw(PIGraphicGen* g, int x0, int y0, int dx, int dy) 136 // Méthode effectuant l'affichage. 137 //-- 107 138 void PIThermometer::Draw(PIGraphicGen* g, int /*x0*/, int /*y0*/, int /*dx*/, int /*dy*/) 108 139 {
Note:
See TracChangeset
for help on using the changeset viewer.