Changeset 2300 in Sophya for trunk


Ignore:
Timestamp:
Dec 17, 2002, 6:58:59 PM (23 years ago)
Author:
ansari
Message:

MAJ documentation PI (correspondant a V3.90 V_Dec2002), Reza 17/12/02

Location:
trunk/SophyaPI/PI
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pifilechogen.cc

    r329 r2300  
    2222//      contenant le nom complet du fichier. Si aucun fichier n'a été
    2323//      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".
    2525//--
    2626//++
  • trunk/SophyaPI/PI/pifontgen.cc

    r2139 r2300  
    4646//      Constructeur de copie
    4747// PIFont & operator = (PIFont const & fnt)
    48 //      Opérateur égal.
     48//      Opérateur égal (affectation).
    4949// bool operator == (PIFont const & fnt)
    5050//      Opérateur test d'égalité.
  • trunk/SophyaPI/PI/pigraphgen.cc

    r2262 r2300  
    2626//++
    2727// Links        Voir aussi
     28// PIFont
     29// PIColorMap
     30//--
     31//++
     32// Links        et
    2833// PIGrCoord
    2934// PILineAtt
    30 // PIFont
    31 // PIColorMap
     35//--
     36//++
     37// Links        Classes derivees
     38// PIGraphicUC
     39// PIGraphic3D
     40// PIGraphicPS
    3241//--
    3342
     
    132141//      le tracé de texte.
    133142//      La chaine est trace avec une justification a gauche, ou droite,
    134 //      ou centree (horzontal) - bas, haut, milieu (vertical), en fonction de
     143//      ou centree (horizontal) - bas, haut, milieu (vertical), en fonction de
    135144//      de la valeur du flag "pos"
    136145//|     PI_HorizontalLeft PI_HorizontalCenter PI_HorizontalRight
    137146//|     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.
    138162//--
    139163
     
    279303//      Tracé d'un arc de cercle plein spécifié par trois points "(x1,y1)", "(x2,y2)" et "(x3,y3)"
    280304//--
    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
    292314
    293315/* --Methode-- */
     
    319341}
    320342
    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'extension
    326 //      angulaire d'un arc de cercle specifie par trois points.
    327 //      *methode statique*
    328 //--
    329343/* --Methode-- */
    330344int PIGraphicGen::ComputeArcFrom3Pt(double x1, double y1, double x2, double y2,
     
    455469  return(0);
    456470}
     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//--
    457486
    458487/* --Methode-- */
     
    597626//|     PI_TriangleMarker , PI_FTriangleMarker
    598627//|     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
    600633//--
    601634
     
    663696//      Renvoie la largeur occupé par un texte s'il était affiché dans le
    664697//      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"
    665701//--
    666702
  • trunk/SophyaPI/PI/pilineatt.cc

    r2139 r2300  
    103103  }
    104104}
     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  
    1111//
    1212//      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.
    1415//--
    1516//++
     
    2223//--
    2324//++
    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)
    2526//      Constructeur - Le choix d'affichage (vertical ou horizontal) dépend
    2627//      du rapport des tailles "sx", "sy"
     
    4647}
    4748
     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
    4868/* --Methode-- */
    4969void
     
    5575
    5676/* --Methode-- */
    57 void
     77void 
    5878PIThermometer::GetMinMax(double& min, double& max)
    5979{
     
    6484void
    6585PIThermometer::SetValue(double val)
     86//      Définit la valeur actuelle du thermomètre.
    6687{
    6788  val_ = val;   
     
    7697}
    7798
     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
    78111/* --Methode-- */
    79112void
     
    83116}
    84117
     118/* --Methode-- */
    85119void
    86120PIThermometer::GetThreshold(double& t1, double& t2)
     
    89123}
    90124
     125
     126/* --Methode-- */
    91127void
    92128PIThermometer::SetColors(PIColors c1, PIColors c2, PIColors c3)
     
    94130  lowc_ = c1;  medc_ = c2;  highc_ = c3;
    95131}
    96 
    97 //++
    98 // Titre        Méthodes
    99 //--
    100 //++
    101 // long  kind()
    102 //      Retourne PIThermometer::ClassId .
    103 //--
    104132 
    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//--
    107138void PIThermometer::Draw(PIGraphicGen* g, int /*x0*/, int /*y0*/, int /*dx*/, int /*dy*/)
    108139{
Note: See TracChangeset for help on using the changeset viewer.