mirror of https://github.com/CGAL/cgal
try to fix correct drawing of the p-centers
This commit is contained in:
parent
3ce3995a8d
commit
7271ce1e39
|
|
@ -229,6 +229,7 @@ MainWindow::update()
|
|||
CGAL::Qt::Converter<K> convert;
|
||||
|
||||
cgi->setRect(convert(c.bbox()));
|
||||
cgi->show();
|
||||
}
|
||||
|
||||
if (me.is_degenerate()){
|
||||
|
|
@ -248,6 +249,7 @@ MainWindow::update()
|
|||
double x = e.center().x();
|
||||
double y = e.center().y();
|
||||
egi->setTransform(QTransform().translate(x, y).rotate(angle).translate(-x, -y));
|
||||
egi->show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -274,8 +276,8 @@ MainWindow::update_from_points()
|
|||
CGAL::Qt::Converter<K> convert;
|
||||
for(i=0; i < center.size(); i++){
|
||||
p_center[i]->setRect(convert(Iso_rectangle_2(center[i]-rvec, center[i]+rvec)));
|
||||
p_center[i]->hide();
|
||||
p_center[i]->show();
|
||||
p_center[i]->update();
|
||||
}
|
||||
for(; i < P;i++){
|
||||
p_center[i]->hide();
|
||||
|
|
@ -312,8 +314,8 @@ MainWindow::processInput(CGAL::Object o)
|
|||
CGAL::Qt::Converter<K> convert;
|
||||
for(i=0; i < center.size(); i++){
|
||||
p_center[i]->setRect(convert(Iso_rectangle_2(center[i]-rvec, center[i]+rvec)));
|
||||
p_center[i]->hide();
|
||||
p_center[i]->show();
|
||||
p_center[i]->update();
|
||||
}
|
||||
for(; i < P;i++){
|
||||
p_center[i]->hide();
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ set( QT_USE_QTOPENGL TRUE )
|
|||
find_package(Qt4)
|
||||
include_directories (BEFORE ../../include)
|
||||
include_directories (BEFORE ./include)
|
||||
include_directories (BEFORE ../../../Matrix_search/include)
|
||||
|
||||
|
||||
if ( CGAL_FOUND AND CGAL_Qt4_FOUND AND QT4_FOUND )
|
||||
|
|
|
|||
Loading…
Reference in New Issue