/*   EXTRAITS DE LA LICENCE
	Copyright CEA, contributeurs : Luc BILLARD et Damien
	CALISTE, laboratoire L_Sim, (2001-2005)
  
	Adresse mèl :
	BILLARD, non joignable par mèl ;
	CALISTE, damien P caliste AT cea P fr.

	Ce logiciel est un programme informatique servant à visualiser des
	structures atomiques dans un rendu pseudo-3D. 

	Ce logiciel est régi par la licence CeCILL soumise au droit français et
	respectant les principes de diffusion des logiciels libres. Vous pouvez
	utiliser, modifier et/ou redistribuer ce programme sous les conditions
	de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA 
	sur le site "http://www.cecill.info".

	Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
	pris connaissance de la licence CeCILL, et que vous en avez accepté les
	termes (cf. le fichier Documentation/licence.fr.txt fourni avec ce logiciel).
*/

/*   LICENCE SUM UP
	Copyright CEA, contributors : Luc BILLARD et Damien
	CALISTE, laboratoire L_Sim, (2001-2005)

	E-mail address:
	BILLARD, not reachable any more ;
	CALISTE, damien P caliste AT cea P fr.

	This software is a computer program whose purpose is to visualize atomic
	configurations in 3D.

	This software is governed by the CeCILL  license under French law and
	abiding by the rules of distribution of free software.  You can  use, 
	modify and/ or redistribute the software under the terms of the CeCILL
	license as circulated by CEA, CNRS and INRIA at the following URL
	"http://www.cecill.info". 

	The fact that you are presently reading this means that you have had
	knowledge of the CeCILL license and that you accept its terms. You can
	find a copy of this licence shipped with this software at Documentation/licence.en.txt.
*/
#ifndef AXES_H
#define AXES_H

#include <visu_extension.h>
#include <visu_tools.h>
#include <visu_data.h>

/**
 * initExtensionAxes
 *
 * It initialises all variables of the OpenGL extension.
 * It creates all resources and parameters introduced by
 * this extension.
 * This method should be added in the #listInitExtensionFunc to
 * be called automatically by the initOpenGLExtensions() at V_Sim
 * startup.
 *
 * Returns a pointer to the OpenGLExtension it created or
 * NULL otherwise.
 */
OpenGLExtension* initExtensionAxes();

/**
 * axesSet_RGBValues:
 * @rgb: a three floats array with values (0 <= values <= 1) for the
 * red, the green and the blue color. Only values specified by the mask
 * are really relevant.
 * @mask: use #MASK_RGB_R, #MASK_RGB_G, #MASK_RGB_B, #MASK_RGB_ALL or a
 * combinaison to indicate what values in the rgb array must be taken
 * into account.
 *
 * Method used to change the value of the parameter axes_color.
 *
 * Returns: 1 if axesDraw() should be called and then 'OpenGLAskForReDraw'
 *          signal be emitted.
 */
int axesSet_RGBValues(float rgb[3], int mask);
/**
 * axesSet_lineWidth:
 * @width: value of the desired axe width.
 *
 * Method used to change the value of the parameter axes_line_width.
 *
 * Returns: 1 if axesDraw() should be called and then 'OpenGLAskForReDraw'
 *          signal be emitted.
 */
int axesSet_lineWidth(float width);
/**
 * axesSet_areOn:
 * @value: 1 if axes must be drawn, 0 otherwise.
 *
 * Method used to change the value of the parameter axes_are_on.
 *
 * Returns: 1 if axesDraw() should be called. In all cases, 'OpenGLAskForReDraw'
 *          signal should then be emitted.
 */
int axesSet_areOn(int value);

/**
 * axesGet_redValue:
 *
 * Returns: the red value of the current axes color.
 */
float axesGet_redValue();
/**
 * axesGet_greenValue:
 *
 * Returns: the green value of the current axes color.
 */
float axesGet_greenValue();
/**
 * axesGet_blueValue:
 *
 * Returns: the blue value of the current background color.
 */
float axesGet_blueValue();
/**
 * axesGet_areOn:
 *
 * Returns: 1 if axes are drawn, 0 otherwise.
 */
int axesGet_areOn();
/**
 * axesGet_LineWidth:
 *
 * Returns: the value of current axes width.
 */
float axesGet_LineWidth();
/**
 * axesDraw:
 * @dataObj: the #VisuData object to build axes for.
 *
 * This method create a compile list that draw a box for the given @data.
 */
void axesDraw(VisuData *dataObj);



/****************/
/* Private part */
/****************/

OpenGLExtension* extensionAxes;


#endif


syntax highlighted by Code2HTML, v. 0.9.1