182 new_img -> quality = old_img -> quality;
184 new_img -> lights = old_img -> lights;
185 new_img -> l_ght =
copy_light_sources (old_img -> lights, old_img -> lights, old_img -> l_ght);
186 new_img -> m_terial.predefine = old_img -> m_terial.predefine;
187 new_img -> m_terial.albedo = old_img -> m_terial.albedo;
189 for (i=0; i<6; i++) new_img -> m_terial.param[i] = old_img -> m_terial.param[i];
190 new_img -> f_g.mode = old_img -> f_g.mode;
191 new_img -> f_g.based = old_img -> f_g.based;
192 new_img -> f_g.density = old_img -> f_g.density;
193 for (i=0; i<2; i++) new_img -> f_g.depth[i] = old_img -> f_g.depth[i];
194 new_img -> f_g.color = old_img -> f_g.color;
207 image * new_img = g_malloc0 (
sizeof*new_img);
210 * new_img = * old_img;
215 new_img -> color_map[i] = old_img -> color_map[i];
216 new_img -> show_atom[i] =
duplicate_bool(j, old_img -> show_atom[i]);
217 new_img -> show_label[i] =
duplicate_bool(j, old_img -> show_label[i]);
223 new_img -> bondrad = g_malloc0 (2*j*
sizeof*new_img -> bondrad);
224 new_img -> linerad = g_malloc0 (2*j*
sizeof*new_img -> linerad);
226 for (i=0; i<2*j; i++)
235 if (i < 2 || i > 3) new_img -> show_poly[i] =
duplicate_bool(
coord_gl -> totcoord[i], old_img -> show_poly[i]);
236 k = (i < 2) ?
proj_gl -> nspec : 1;
237 new_img -> spcolor[i] = g_malloc (k*
sizeof*new_img -> spcolor[i]);
243 new_img -> at_data = g_malloc0 (
proj_gl -> natomes*
sizeof*new_img -> at_data);
244 for (i=0; i<
proj_gl -> natomes; i++)
259 new_img -> axis_color = NULL;
260 if (old_img -> axis_color != NULL)
269 if (i<2)new_img -> labels_format[i] = old_img -> labels_format[i];
270 new_img -> labels_font[i] = g_strdup_printf (
"%s", old_img -> labels_font[i]);
271 new_img -> labels_color[i] = NULL;
272 for (j=0; j<3; j++)new_img -> labels_shift[i][j] = old_img -> labels_shift[i][j];
273 if (old_img -> labels_color[i] != NULL)
275 k = (i < 2) ?
proj_gl -> nspec : 1;
276 new_img -> labels_color[i] =
duplicate_color (k, old_img -> labels_color[i]);
278 new_img -> labels_list[i] = NULL;
279 if (old_img -> labels_list[i] != NULL)
283 stmp_a = old_img -> labels_list[i] -> last;
284 stmp_b =new_img -> labels_list[i] -> last;
285 while (stmp_a -> prev != NULL)
288 stmp_b -> prev -> last = stmp_b -> last;
289 stmp_a = stmp_a -> prev;
290 stmp_b = stmp_b -> prev;
305 if (
wingl -> ring_max[i])
308 for (j=0; j<
coord_gl -> totcoord[i+4]; j++)
311 for (l=0; l<
wingl -> num_rings[i][
step][k-1]; l++)
313 if (
wingl -> show_rpoly[i][
step][k-1][l]) m++;
318 new_img -> i_rings[i] =
allocdint (m+1, 2);
319 new_img -> i_rings[i][0][0] = m;
321 for (j=0; j<
coord_gl -> totcoord[i+4]; j++)
324 for (l=0; l<
wingl -> num_rings[i][
step][k-1]; l++)
326 if (
wingl -> show_rpoly[i][
step][k-1][l])
328 new_img -> i_rings[i][m][0] = j;
329 new_img -> i_rings[i][m][1] = l;
347 for (k=0; k<
coord_gl -> totcoord[2+i]; k++)
349 new_img -> fm_vol_col[i][j][k] = old_img -> fm_vol_col[i][j][k];