sevreporter/src/chartImage.cxx
//
// Private interface to create image in GIF format using Perl
//
Private interface to create image in GIF format using Perl
Private interface to create image in GIF format using Perl
int chartImage::generateGIF(qualityItem *qi, queryFolder *qf, char const *filename)
{
  int retval = -1;
  char  **titles = 0;
  float *numbers = 0;
  if ( qi && qf && filename )
    {
      if ( getDataToArrays(qi, qf, &titles, &numbers) >= 0 )
	{
	  if ( graphWithGD(titles, numbers, 1 + qf->numItems(), (char *)filename) >= 0 )
	    {
	      retval = 0;
	    }
	}
    }
  FREE_MEMORY(titles);
  FREE_MEMORY(numbers);
  return retval;
}
int chartImage :: generateGIF ( qualityItem * qi , queryFolder * qf , char const * filename ) { int retval = -1 ; char * * titles = 0 ; float * numbers = 0 ; if ( qi && qf && filename ) { if ( getDataToArrays ( qi , qf , & titles , & numbers ) >= 0 ) { if ( graphWithGD ( titles , numbers , 1 + qf -> numItems ( ) , ( char * ) filename ) >= 0 ) { retval = 0 ; } } } FREE_MEMORY ( titles ) ; FREE_MEMORY ( numbers ) ; return retval ; }
Private interface to create image in GIF format using Perl
Private interface to create image in GIF format using Perl
// seperate the titles out from the data points // use the GD library to graph the data