static gint GeomDrawWireFrame(gdouble scaleBall) { int i; int j; gboolean* Ok = NULL; GList* list = NULL; if(Ncenters>0) Ok = g_malloc(Ncenters*sizeof(gboolean)); for(i = 0;i<Ncenters;i++) Ok[i] = FALSE; for(list=BondsOrb;list!=NULL;list=list->next) { BondType* data=(BondType*)list->data; i = data->n1; j = data->n2; if(!ShowHAtomOrb && (strcmp("H",GeomOrb[i].Symb)==0 || strcmp("H",GeomOrb[j].Symb)==0)) continue; if(data->bondType == GABEDIT_BONDTYPE_HYDROGEN) draw_wireframe(i,j,1); else draw_wireframe(i,j, 2); Ok[i] = TRUE; Ok[j] = TRUE; } for(i = 0;i<Ncenters;i++) { if(!ShowHAtomOrb && strcmp("H",GeomOrb[i].Symb)==0) continue; if(!Ok[i]) draw_ball(i,0.2*scaleBall); } if(Ok) g_free(Ok); glLineWidth(1); return TRUE; }
void draw_preview_wireframe (void) { gint startx, starty, pw, ph; GdkColor color; color.red = 0x0; color.green = 0x0; color.blue = 0x0; gdk_gc_set_rgb_bg_color (gc, &color); color.red = 0xFFFF; color.green = 0xFFFF; color.blue = 0xFFFF; gdk_gc_set_rgb_fg_color (gc, &color); gdk_gc_set_function (gc, GDK_INVERT); pw = PREVIEW_WIDTH * mapvals.zoom; ph = PREVIEW_HEIGHT * mapvals.zoom; startx = (PREVIEW_WIDTH - pw) / 2; starty = (PREVIEW_HEIGHT - ph) / 2; clear_wireframe (); draw_wireframe (startx, starty, pw, ph); }
void cuboid_selection::hide (player *pl) { world_selection::hide (pl); draw_wireframe (pl, this->p1, this->p2, false); }
/* * Draws a minimal wireframe version of the selection for the specified * player (usually with water and brown mushrooms). */ void cuboid_selection::show (player *pl) { world_selection::show (pl); draw_wireframe (pl, this->p1, this->p2, true); }
void draw_RegistanceFrame(void) { draw_panel(); draw_reg_scale(); draw_wireframe(); }
/********************************************************************* * グラフ表示内の文字を書く. ********************************************************************* */ void draw_AnalogFrame(void) { draw_panel(); draw_scale(); draw_wireframe(); }