Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] drawLine() does not work

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] drawLine() does not work


Chronological Thread 
  • From: Mahmood NT <>
  • To:
  • Subject: Re: [cgal-discuss] drawLine() does not work
  • Date: Mon, 31 Dec 2007 00:25:18 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=SbjNxMc7sFDaZ3hhbsKybhDg7nwzvAw7QArEh2rKxwx0MqYb5S9slfd6h8CPhaJhDQ/LjeGvOns8PqQA7RBuV0ftS5h+spCc4tYrfF3vqZZDkg5FDCFbfJ+ul053yxWPDxqSTMz1Tf91/BT7hoYzsqYoT84qyBR87l5a34oGhH8=;

>Why do you want to use widget->get_painter() directly? Maybe you should
use
>the native Qt drawing tools. If you want to use native drawings with
>CGAL::Qt_widget IO operators, you may want to use the following
functions:
> int widget->x_pixel ( double x)
>and int widget->y_pixel ( double y).

Thanks, what is the rule of "widget->x_pixel" and "widget->y_pixel". Are they
the same as "moveTo()"?

Is there any manual about qt functions in CGAL? I mean does CGAL use native
QT functions or it has specific functions that are not in QT? You mean that
"widget->get_painter()" is not a native QT function?

Mahmood NT




----- Original Message ----
From: Laurent Rineau
<>
To:

Sent: Sunday, December 30, 2007 9:02:07 PM
Subject: Re: [cgal-discuss] drawLine() does not work


On Sunday 30 December 2007 13:10:13 Mahmood NT wrote:
> I use a simple:
> widget->get_painter().drawLine (1,1,4,3);
>
> but there is no line in the window. What is the problem?

Maybe the points (1,1) and (4,3) are outside of the viewport. Check it
with
widget->get_painter->viewport().

Why do you want to use widget->get_painter() directly? Maybe you should
use
the native Qt drawing tools. If you want to use native drawings with
CGAL::Qt_widget IO operators, you may want to use the following
functions:
int widget->x_pixel ( double x)
and int widget->y_pixel ( double y).

--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss






____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



Archive powered by MHonArc 2.6.16.

Top of Page