Skip to content

the C function drawing a rectangle: heatmap() -> image() -> do_image() -> GRect() -> GERect() -> rect() -> do_rect() -> GRect() ??

4 messages · Zhaoyuan Fang, Peter Dalgaard

#
Hello anyone used to do similar things: search for the final C function that corresponding to the drawing of a rectangle? 

As listed in the subject, I started from heatmap() in R and after several steps reached the GRect() in C. However, then it refers to rect() which further seems to refer to do_rect(), and then, surpringly, do_rect refers to GRect()!!! A dependency circle! How can it work if no functions soly taking the job for drawing a rectangle?  

I know there must be somewhere wrong in my above function "chain", and can you help me to find it out? Many thanks!
 				
--------------
Best wishes,
John

Shanghai Institutes of Biological Sciences,
Chinese Academy of Sciences, 
320 Yue Yang Road, Shanghai 200031
Tel?86-21-54921107
Fax?86-21-54921101

-----------------------------------------------------------------------
The information transmitted in this electronic communication is intended
only for the person or entity to whom it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of or taking of any action in reliance upon this
information by persons or entities other than the intended recipient is
prohibited.
2008-07-26
#
Zhaoyuan Fang wrote:
I see GRect() calling GERect() calling dd->dev->rect(), i.e. a function 
in the current device structure. This will typically have been set to 
something like X11_Rect() or Cairo_Rect() or ....
#
But rect() still seems to call -> do_rect() -> GRect(), and thus turns back?? How do you consider this strange thing? Thanks!

------------------				 
Best wishes,
Zhaoyuan

-------------------------------------------------------------
????Peter Dalgaard
?????2008-07-26 15:56:39
????fangzy2007 at gmail.com
???R-devel Mailing List
???Re: [Rd] the C function drawing a rectangle: heatmap() -> image()->	do_image() -> GRect() -> GERect() -> rect()
Zhaoyuan Fang wrote:
I see GRect() calling GERect() calling dd->dev->rect(), i.e. a function 
in the current device structure. This will typically have been set to 
something like X11_Rect() or Cairo_Rect() or ....
#
Zhaoyuan Fang wrote:
GRect/GERect do NOT call rect()!!!!! Please read what I wrote....