drawCompoundEntity.c

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------*/
00002 /* file: drawCompoundEntity.c                                             */
00003 /* Copyright INRIA 2006                                                   */
00004 /* Authors : Jean-Baptiste Silvy                                          */
00005 /* desc : Contains functions needed to draw a compound handle             */
00006 /*------------------------------------------------------------------------*/
00007 
00008 #include "drawCompoundEntity.h"
00009 #include "GetProperty.h"
00010 #include "DrawObjects.h"
00011 
00012 /*-----------------------------------------------------------------------------------*/
00013 int drawCompoundEntity( sciPointObj * pObj )
00014 {
00015   sciSons * curSon = NULL ;
00016   BOOL isMerging = pSUBWIN_FEATURE(sciGetParentSubwin(pObj))->facetmerge ;
00017   
00018   if ( !sciGetVisibility(pObj) ) { return 0 ; }
00019 
00020   /* scan the hierarchy and call sciDrawObj */
00021   curSon = sciGetLastSons( pObj ) ;
00022   while ( curSon != NULL )
00023   {
00024     /* draw only objects which are not already included in a merge objects */
00025     if ( !isMerging || !sciIsMergeable(curSon->pointobj) )
00026     {
00027       sciDrawObj( curSon->pointobj ) ;
00028     }
00029     curSon = curSon->pprev ;
00030   }
00031 
00032   return 0 ;
00033 }
00034 /*-----------------------------------------------------------------------------------*/

Generated on Sun Mar 4 15:03:51 2007 for Scilab [trunk] by  doxygen 1.5.1