Exemple #1
0
static void input_coast_radius_from_panel(int val){
	coast_radius = editText->get_float_val();
	set_to_coastline_radius((double) coast_radius);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #2
0
static void input_domain_distance_from_panel(int val){
	distance = editText->get_float_val();
	set_to_dist_domains((double) distance);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #3
0
static void input_psf_vector_thickness_panel(int val){
	thickness = editText->get_float_val();
	set_current_vector_thick((double) thickness);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #4
0
static void input_psf_vector_scale_panel(int val){
	scaling = editText->get_float_val();
	set_current_scale_vect((double) scaling);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #5
0
static void input_vector_increment_from_panel(int val){
	num_inc = editText->get_int_val();
	if(num_inc > 0) set_current_increment_vect(num_inc);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #6
0
static void input_num_colorloop_from_panel(int val){
	nloop = editText->get_int_val();
	if(nloop > 0) set_to_num_of_color_loop(nloop);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #7
0
static void input_node_size_from_panel(int val){
	nodesize = editText->get_float_val();
	set_to_node_diam((double) nodesize);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #8
0
static void input_psf_opacity_from_panel(int val){
	opacity = editText_opacity->get_float_val();
	set_current_PSF_constant_opacity((double) opacity);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #9
0
static void input_num_isoline_from_panel(int val){
	nline = editText->get_int_val();
	if(nline > 0) set_current_n_isoline(nline);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #10
0
static void input_domain_opacity_from_panel(int val){
	opacity = editText_opacity->get_float_val();
	set_to_domain_surface_opacity((double) opacity);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #11
0
static void input_fline_thick_from_panel(int val){
	fline_thick = editText_fline_thick->get_float_val();
	set_to_fline_thickness((double) fline_thick);
	GLUI_Master.close_all();
	draw_mesh_keep_menu();
	return;
}
Exemple #12
0
static void input_fline_max_from_panel(int val){
	fline_color_max = editText_max->get_float_val();
	if(fline_color_max > fline_color_min){
		input_fline_linear_colormap((double) fline_color_min, (double) fline_color_max);
		draw_mesh_keep_menu();
	};
	return;
}
Exemple #13
0
static void input_psf_max_from_panel(int val){
	psf_color_max = editText_max->get_float_val();
	if(psf_color_max > psf_color_min){
		set_current_PSF_linear_colormap((double) psf_color_min, (double) psf_color_max);
		draw_mesh_keep_menu();
	};
	return;
}
Exemple #14
0
static void surf_surf_color_handler(int sel){
	if (sel == SET_OPACITY) {
		set_surf_group_opacity();
	} else {
		set_surf_grp_color_flag(SURFSOLID_TOGGLE, sel);
	};
	draw_mesh_keep_menu();
};
static void domain_color_handler(int sel){
	if (sel == SET_OPACITY) {
		set_domain_opacity_by_glui(winid);
	} else {
		kemoview_set_domain_color_flag(SURFSOLID_TOGGLE, sel);
	};
	return;
	draw_mesh_keep_menu();
};
Exemple #16
0
static void ele_surf_color_handler(int sel){
	if(sel == SET_OPACITY){
		set_ele_group_opacity_by_glui(winid);
	} else {
		set_ele_grp_color_flag(SURFSOLID_TOGGLE, sel);
	};
	return;
	draw_mesh_keep_menu();
};
Exemple #17
0
static void domain_color_handler(int sel){
	if (sel == SET_OPACITY) {
		set_domain_opacity();
	} else {
		set_domain_color_flag(SURFSOLID_TOGGLE, sel);
	};
	draw_mesh_keep_menu();
	return;
;
};
Exemple #18
0
static void save_image_handler(){
	char image_head[LENGTHBUF];
	
	input_file_header(image_head);
	int id_image = input_image_format();
	
	glutSetWindow(winid);
	draw_mesh_keep_menu();
	write_kemoviewer_window_to_file(id_image, image_head);
	return;
};
void set_background_color_console(){
    GLfloat color[4];
    float red, green, blue;
    char buf[1024];

    kemoview_get_background_color(color);
    printf("Enter Background color by (R,G,B) from 0.0 to 1.0: \n");
    printf("Corrent color:  %.7e %.7e %.7e \n", color[0], color[1], color[2]);
    fgets(buf,sizeof(buf),stdin);
    sscanf(buf,"%f %f %f", &red, &green, &blue);
    printf("New background Color (R,G,B): %.7e %.7e %.7e \n", red, green, blue);
    
    color[0] = (GLfloat) red;
    color[1] = (GLfloat) green;
    color[2] = (GLfloat) blue;

    
    draw_mesh_keep_menu();
    kemoview_set_background_color(color);
    glClear(GL_COLOR_BUFFER_BIT); 
    return;
};
Exemple #20
0
static void draw_mesh_w_menu(){
	make_1st_level_menu();
	draw_mesh_keep_menu();
	return;
};
Exemple #21
0
static void close_panel(int val){
	draw_mesh_keep_menu();
	GLUI_Master.close_all();
	return;
}
Exemple #22
0
static void surf_node_color_handler(int sel){
	set_surf_grp_color_flag(SURFNOD_TOGGLE, sel);
	draw_mesh_keep_menu();
};
Exemple #23
0
static void ele_grid_color_handler(int sel){
	set_ele_grp_color_flag(SURFGRID_TOGGLE, sel);
	draw_mesh_keep_menu();
};
Exemple #24
0
static void node_node_color_handler(int sel){
	set_node_grp_color_flag(sel);
	draw_mesh_keep_menu();
};
Exemple #25
0
static void domain_node_color_handler(int sel){
	set_domain_color_flag(SURFNOD_TOGGLE, sel);
	draw_mesh_keep_menu();
};
static void ele_node_color_handler(int sel){
	kemoview_set_ele_grp_color_flag(SURFNOD_TOGGLE, sel);
	draw_mesh_keep_menu();
};
static void surf_grid_color_handler(int sel){
	kemoview_set_surf_grp_color_flag(SURFGRID_TOGGLE, sel);
	draw_mesh_keep_menu();
};