Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

char const *const GMapArea::check_object ( void   )  [inherited]

Checks if the object is OK. Especially useful with {GMapPoly} where edges may intersect. If there is a problem it returns a string describing it.

Definition at line 208 of file GMapAreas.cpp.

References GMapArea::border_type, GMapArea::border_width, GMapArea::get_xmax(), GMapArea::get_xmin(), GMapArea::get_ymax(), and GMapArea::get_ymin().

Referenced by GMapArea::print().

{
   char const *retval;
   if (get_xmax()==get_xmin())
   {
     retval=zero_width;
   }
   else if (get_ymax()==get_ymin())
   {
     retval=zero_height;
   }
   else if ((border_type==XOR_BORDER ||
       border_type==SOLID_BORDER) && border_width!=1)
   {
     retval=width_1;
   }
   else if ((border_type==SHADOW_IN_BORDER ||
       border_type==SHADOW_OUT_BORDER ||
       border_type==SHADOW_EIN_BORDER ||
       border_type==SHADOW_EOUT_BORDER)&&
       (border_width<3 || border_width>32))
   {
     retval=width_3_32;
   }else
   {
     retval=gma_check_object();
   }
   return retval;
}


Generated by  Doxygen 1.6.0   Back to index