Changeset 2652 in Sophya for trunk/SophyaPI/PI/piimage.cc
- Timestamp:
- Feb 18, 2005, 3:16:38 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piimage.cc
r2615 r2652 1557 1557 return(0.); 1558 1558 } 1559 //++ 1560 // Class PIImageNavigator 1561 // Lib PI 1562 // include piimage.h 1563 // 1564 // Classe regroupant un PIImage, un widget Zoom, un widget 1565 // de vue globale et un widget afficheur de colormap dans 1566 // un conteneur (PIContainer). 1567 //++ 1568 // Links Parents 1569 // PIContainer 1570 //-- 1571 //++ 1572 // Links Voir aussi 1573 // PIImage 1574 //-- 1575 1576 //++ 1577 // Titre Constructeurs 1578 //-- 1579 //++ 1580 // PIImageNavigator(PIContainerGen *par, const char *nom, int sx=0, int sy=0, int px=0, int py=0) 1581 // Constructeur 1582 // 1583 //-- 1584 /* --Methode-- */ 1585 PIImageNavigator::PIImageNavigator(PIContainer *par, const char *nom, 1586 int sx, int sy, int px, int py) 1587 : PIContainer(par, nom, sx, sy, px, py) 1588 { 1589 int csx, csy; 1590 int cpx, cpy,bss; 1591 string name = nom; 1592 name += "::"; 1593 string nomw = name; 1594 nomw += "Navigator"; 1595 bss = 5; // 5 pixels 1596 csx = 0.2*sx; csy = 0.2*sy; 1597 cpx = bss; cpy = bss; 1598 gimv = new PIPixmap(this, nomw.c_str(), csx, csy, cpx, cpy); 1599 gimv->SetBinding(PIBK_elastic,PIBK_elastic,PIBK_elastic, PIBK_elastic); 1600 nomw = name; 1601 nomw += "Zoom"; 1602 cpx += (bss+csx); 1603 zoom = new PIPixmap(this, nomw.c_str(), csx, csy, cpx, cpy); 1604 zoom->SetBinding(PIBK_elastic,PIBK_elastic,PIBK_elastic, PIBK_elastic); 1605 nomw = name; 1606 nomw += "ColorMap"; 1607 cpx = bss; cpy += (bss+csy); 1608 csx = sx-2*bss; csy = 0.2*sy*0.2; 1609 cmapv = new PICMapView(this, nomw.c_str(), csx, csy, cpx, cpy); 1610 cmapv->SetBinding(PIBK_elastic,PIBK_elastic,PIBK_elastic, PIBK_elastic); 1611 nomw = name; 1612 nomw += "Image"; 1613 cpx = bss; cpy += (bss+csy); 1614 csx = sx-2*bss; csy = sy-bss-cpy; 1615 piimg = new PIImage(this, nomw.c_str(), csx, csy, cpx, cpy); 1616 piimg->SetBinding(PIBK_elastic,PIBK_elastic,PIBK_elastic, PIBK_elastic); 1617 1618 piimg->SetZoomWin(zoom, false); 1619 piimg->SetGloVWin(gimv, false); 1620 piimg->SetCMapWin(cmapv, false); 1621 1622 } 1623 1624 /* --Methode-- */ 1625 PIImageNavigator::~PIImageNavigator() 1626 { 1627 } 1628 1629 1630 //++ 1631 // Titre Méthodes 1632 //-- 1633 1634 //++ 1635 // inline PIImage* ImageWdg() 1636 // Acces a l'objet PIImage associe. 1637 //--
Note:
See TracChangeset
for help on using the changeset viewer.