drawCompoundEntity.c File Reference

#include "drawCompoundEntity.h"
#include "GetProperty.h"
#include "DrawObjects.h"

Include dependency graph for drawCompoundEntity.c:

Go to the source code of this file.

Functions

int drawCompoundEntity (sciPointObj *pObj)


Function Documentation

int drawCompoundEntity ( sciPointObj pObj  ) 

Routine which draw a compound object

Parameters:
pObj the pointer on the compound object

Definition at line 13 of file drawCompoundEntity.c.

References NULL, tagSons::pointobj, tagSons::pprev, pSUBWIN_FEATURE, sciDrawObj(), sciGetLastSons(), sciGetParentSubwin(), sciGetVisibility(), and sciIsMergeable().

Referenced by sciDrawObj().

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 }

Here is the call graph for this function:

Here is the caller graph for this function:


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