Example #1
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_default_cmap )
{
	CHECK_DPYP("do_default_cmap")
#ifdef HAVE_X11
	default_cmap(current_dpyp);
#endif
}
Example #2
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_const_alpha )
{
	int value;

	value=(int)HOW_MANY("value");
	CHECK_DPYP("do_const_alpha")
	const_alpha(value);
}
Example #3
0
static COMMAND_FUNC( do_set_vzero )
{
	crt_vzero=(float)how_much("voltage offset for linearization");
	CHECK_DPYP("do_set_vzero")
#ifdef HAVE_X11
	lin_setup(DPA_LINTBL_OBJ(current_dpyp),crt_gamma,crt_vzero);
#endif /* HAVE_X11 */
}
Example #4
0
static COMMAND_FUNC( do_set_gamma )
{
	crt_gamma=how_much("exponent for linearization");
	CHECK_DPYP("do_set_gamma")
#ifdef HAVE_X11
	lin_setup(DPA_LINTBL_OBJ(current_dpyp),crt_gamma,crt_vzero);
#endif /* HAVE_X11 */
}
Example #5
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_setalpha )
{
	int index,val;

	index=(int)HOW_MANY("index");
	val=(int)HOW_MANY("alpha value");
	CHECK_DPYP("do_setalpha")
	set_alpha(index,val);
}
Example #6
0
static COMMAND_FUNC( do_default_lin )
{
	crt_gamma= DEF_GAM;
	crt_vzero= DEF_VZ;
	CHECK_DPYP("do_default_lin")
#ifdef HAVE_X11
	lin_setup(DPA_LINTBL_OBJ(current_dpyp),crt_gamma,crt_vzero);
#endif /* HAVE_X11 */
}
Example #7
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_grayscale )
{
	int base,n;

	base=(int)HOW_MANY("base index");
	n=(int)HOW_MANY("number of colors");

	CHECK_DPYP("do_grayscale")
	make_grayscale(base,n);
}
Example #8
0
static COMMAND_FUNC( do_set_n_linear )
{
	int n;

	n=(int)how_many("number of linearization table entries");
	set_n_linear(n);
	CHECK_DPYP("do_set_n_linear")
#ifdef HAVE_X11
	lin_setup(DPA_LINTBL_OBJ(current_dpyp),crt_gamma,crt_vzero);
#endif /* HAVE_X11 */
}
Example #9
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_poke )
{
	int c,r,g,b;

	c=(int)HOW_MANY("color index");
	r=(int)HOW_MANY("red value");
	g=(int)HOW_MANY("green value");
	b=(int)HOW_MANY("blue value");

	CHECK_DPYP("do_poke")
	poke_lut(c,r,g,b);
}
Example #10
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_make_rgb )
{
	int r,g,b,base;

	base=(int)HOW_MANY("base color index");
	r=(int)HOW_MANY("number of red levels");
	g=(int)HOW_MANY("number of green levels");
	b=(int)HOW_MANY("number of blue levels");

	CHECK_DPYP("do_make_rgb")
	make_rgb(base,r,g,b);
}
Example #11
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_setcolor )
{
	int c,r,g,b;

	c=(int)HOW_MANY("lut index");
	r=(int)HOW_MANY("red value");
	g=(int)HOW_MANY("green value");
	b=(int)HOW_MANY("blue value");

	CHECK_DPYP("do_setcolor")
	setcolor(c,r,g,b);
}
Example #12
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_index_alpha )
{
	int index,hv,lv;

	/* set alpha entries */

	index = (int)HOW_MANY("index to display");
	lv = (int)HOW_MANY("alpha value for zero bit");
	hv = (int)HOW_MANY("alpha value for one bit");
	CHECK_DPYP("do_index_alpha")
	index_alpha(index,lv,hv);
}
Example #13
0
static COMMAND_FUNC( do_sel_lintbl )
{
	Data_Obj *lt_dp;

	lt_dp = pick_obj("name of linearization table");
	if( lt_dp == NULL ) return;

	CHECK_DPYP("do_sel_lintbl")
#ifdef HAVE_X11
	DPA_LINTBL_OBJ(current_dpyp) = lt_dp;
#endif /* HAVE_X11 */
}
Example #14
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_const_cmap )
{
	int r,g,b;
	int base,n;

	base=(int)HOW_MANY("start color");
	n=(int)HOW_MANY("number of colors");
	r=(int)HOW_MANY("red");
	g=(int)HOW_MANY("green");
	b=(int)HOW_MANY("blue");
	CHECK_DPYP("do_const_cmap")
	const_cmap(base,n,r,g,b);
}
Example #15
0
static COMMAND_FUNC( do_new_lintbl )
{
	Data_Obj *lt_dp;
	const char *s;

	s=nameof("name for new linearization table");
	lt_dp = new_lintbl(s);
	if( lt_dp == NULL ) return;

	CHECK_DPYP("do_new_lintbl")
#ifdef HAVE_X11
	DPA_LINTBL_OBJ(current_dpyp) = lt_dp;
#endif /* HAVE_X11 */
	do_default_lin(SINGLE_QSP_ARG);
}
Example #16
0
File: cmmenu.c Project: nasa/QuIP
static COMMAND_FUNC( do_update_all )
{
	CHECK_DPYP("do_update_all")
	update_all();
}