drawAxesEntity.c File Reference

#include "drawAxesEntity.h"
#include "GetProperty.h"
#include "periScreen.h"
#include "clipping.h"
#include "Xcall1.h"
#include "Axes.h"

Include dependency graph for drawAxesEntity.c:

Go to the source code of this file.

Functions

int drawAxesEntity (sciPointObj *pObj)


Function Documentation

int drawAxesEntity ( sciPointObj pObj  ) 

Routine which draw an axes object.

Parameters:
pObj the pointer on the axes object

Definition at line 16 of file drawAxesEntity.c.

References C2F, sciAxes::dir, dr(), sciAxes::fontsize, sciAxes::format, L, sciAxes::logscale, MaybeSetWinhdc(), sciAxes::nx, sciAxes::ny, pAXES_FEATURE, PD0, PI0, ReleaseWinHdc(), Sci_Axis(), sciClip(), sciGetForeground(), sciGetLineWidth(), sciGetVisibility(), sciUnClip(), sciAxes::seg, sciAxes::str, sciAxes::subint, sciAxes::textcolor, sciAxes::tics, sciAxes::ticscolor, v, sciAxes::vx, and sciAxes::vy.

Referenced by sciDrawObj().

00017 {
00018   sciAxes * ppAxes = pAXES_FEATURE(pObj) ;
00019   int foreground = sciGetForeground( pObj ) ;
00020   int lineWidth  = sciGetLineWidth(pObj) ;
00021   int v = 0 ;
00022   double dv = 0.0 ;
00023   int fontStyle = 0 ;
00024 
00025   if ( !sciGetVisibility(pObj) ) { return 0 ; }
00026 
00027   /* load the object foreground and dashes color */
00028 #ifdef _MSC_VER 
00029   flag_DO = MaybeSetWinhdc ();
00030 #endif
00031   C2F (dr) ("xset", "dashes", &foreground, &foreground, &v, &v, &v, &v, &dv,
00032     &dv, &dv, &dv, 5L, 4096);
00033   C2F (dr) ("xset", "foreground", &foreground, &foreground, &v, &v, &v, &v,
00034     &dv, &dv, &dv, &dv, 5L, 4096);
00035   C2F (dr) ("xset", "thickness", &lineWidth, PI0, PI0, PI0, PI0, PI0, PD0,
00036     PD0, PD0, PD0, 0L, 0L);
00037   sciClip(pObj);
00038 
00039   /* Prototype Sci_Axis HAS CHANGED:  ************* F.Leray 19.05.04
00040   void Sci_Axis(pos,xy_type,x,nx,y,ny,str,subtics,format,fontsize,textcolor,fontstyle,ticscolor,logflag,seg_flag, axisbuild_flag)
00041   For the moment, for a simple axes ( coming from a scilab command as 'drawaxis'), we set the fontstyle to 0.
00042   */
00043 
00044 
00045   Sci_Axis(ppAxes->dir,ppAxes->tics,ppAxes->vx,
00046     &ppAxes->nx,ppAxes->vy,&ppAxes->ny,
00047     ppAxes->str,ppAxes->subint,ppAxes->format,
00048     ppAxes->fontsize,ppAxes->textcolor,fontStyle, /* F.Leray 08.04.04 : Adding here fontstyle_zero*/
00049     ppAxes->ticscolor,ppAxes->logscale,ppAxes->seg, 1 ); 
00050 #ifdef _MSC_VER 
00051   if ( flag_DO == 1) { ReleaseWinHdc() ; }
00052 #endif
00053   sciUnClip(pObj);   
00054 
00055   return 0 ;
00056 }

Here is the call graph for this function:

Here is the caller graph for this function:


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